We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
とりあえずカスタムブロックスタイルで実装する
https://patterns.vektor-inc.co.jp/wp-admin/post.php?post=13609&action=edit
selector{ transform: translateY(0); } /*ボタン*/ selector .vk_button_link.btn{ border-radius: 0 0 5px 5px; padding:0.375rem 0.875rem; } /*電話番号余白*/ selector .vkp_header-top-tel { margin-right:10px; } /*ここからスクロール時*/ /*縦ボタン*/ .scrolled selector .vk_button_link.btn{ min-width: fit-content; width: fit-content; writing-mode: vertical-rl; letter-spacing: 1px; border-radius: .25rem 0 0 .25rem; padding:0.875rem 0.375rem; } /*アイコン余白*/ .scrolled selector .vk_button_link.btn .vk_button_link_before{ margin-right:0; margin-bottom:0.5rem; } /*固定位置右付け*/ .scrolled selector{ z-index:10; flex-direction: column; position: fixed; left: calc(100% - 35.5px); top: 5vh; transform: translateY(10px); animation-name: scroll-anime; animation-timeline: scroll(); } @keyframes scroll-anime { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; transform: translateY(20px); } 100% { opacity: 1; } } /*電話番号非表示*/ .scrolled selector .vkp_header-top-tel { display:none; }
The text was updated successfully, but these errors were encountered:
忘れないうちにcssのメモ
left: calc(100% - 35.5px);
なぜ right:0; ではないのかというと、safariやfirefoxで見ると、スクロールバーの下にボタンが隠れてしまうため、ボタンの幅分35.5px引いている。ボタンの余白によってこの幅は変わってしまうので、その辺りのjsが必要になるのかもしれない
right:0;
それかright:0; でスクロールバー分をmargin-left や margin-right でずらしてCSSハックで、safari 、firefoxのCSSをそれぞれ書くか。。。
margin-left
margin-right
Sorry, something went wrong.
高度な設定を考えるとキリがないので、位置の変化によるデザインの変更は個別にCSSを書く
スクロールしたら固定されるブロック
発動条件は自分が表示領域から消えたら。。。
常に固定ブロック
mthaichi
sysbird
goutetsuguma
mtdkei
drill-lancer
No branches or pull requests
対象ブロック
横並びボタンButtonsスタイル実装参考
とりあえずカスタムブロックスタイルで実装する
https://patterns.vektor-inc.co.jp/wp-admin/post.php?post=13609&action=edit
スクロール識別用のクラスを body に出力する
The text was updated successfully, but these errors were encountered: