- .htaccess
- 404エラー
- All-in-One WP Migration
- API Key
- background
- Bootstrap4
- border
- Canonet
- Contact Form 7
- Contact Form7
- css
- Easy FancyBox
- fixed
- flex
- font
- Font−family
- googlemap
- header.php
- Intuitive Custom Post Order
- Lightbox
- MW WP Form
- ol
- PHP
- reCAPTCHA
- SSL
- SVG
- text-shadow
- the_content
- wordpress削除
- youtube
- アイキャッチ
- アコーディオン
- アコーディオンメニュー
- アニメーション
- アンカーリンク
- エックスドメイン
- エディター
- エフェクト
- カスタムフィールド
- カテゴリー
- カラー
- カレント
- かんたんインストール
- サーバー移行
- さくらのレンタルサーバー
- スクロール
- スパムメール
- スムーススクロール
- タグ
- ツイッター
- データベース
- ドメイン
- ドメイン移管
- トリミング
- ドロップダウン
- にゅるっと
- ネームサーバー
- パーミッション
- パスワード保護
- バックアップ
- ハンバーガー
- ハンバーガーメニュー
- ファイルサイズ
- フォント
- プレビュー
- マウスオーバー
- ムームー
- ラベル
- リスト
- リスト横並び
- リダイレクト
- レスポンシブ
- ローディング
- ロリポップ
- 並び替え
- 名刺
- 固定ページ
- 投稿記事
- 投稿詳細ページ
- 擬似クラス
- 文字制限
- 条件分岐
- 無料のレンタルサーバー
- 背景画像
- 記事一覧
- 記事一覧ページ
- 記事詳細ページ
参考ページ https://haniwaman.com/header-fixed/
[ html]
<div class=”conversion_fixed”>
<div class=”conversion_bottom”>
<div class=”innerBox”>
<div class=”tp_conversionContents”>
<div class=”tp_conversionBox”>
<div class=”tp_conversion_left tp_conv_btn”>
<img src=”img/btn_blue.png” class=”hidden_md”>
<img src=”img/btn_blue_sp.png” class=”hidden_xs”>
</div>
<div class=”tp_conversion_right tp_conv_btn”>
<img src=”img/btn_orange.png” class=”hidden_md”>
<img src=”img/btn_orange_sp.png” class=”hidden_xs”>
</div>
</div>
</div>
</div>
</div>
</div>
[js]
jQuery( window ).on( ‘scroll’, function() {
if ( 1000 < jQuery( this ).scrollTop() ) { // 1000px以上スクロールしたら
jQuery( ‘.conversion_fixed’ ).addClass( ‘conversion_bottom’ );
} else {
jQuery( ‘.conversion_fixed’ ).removeClass( ‘conversion_bottom’ );
}
});
[css]
.conversion_fixed {
position: static;
bottom: -30px;
transition: all 0.3s ease 0s;
}
.conversion_fixed.conversion_bottom{
width: 100%;
padding: 20px 0 10px;
background: rgba(0, 0, 0, 0.35);
position: fixed;
left: 0;
bottom: 0;
z-index: 999;
}