さまざまな効果のスクロール・アニメーションを実装するプラグイン「rlSmooth」を紹介します。
jQueryプラグイン「rlSmooth」
このプラグインを使えば、スライド・フェイド・ショーアップ・スライドアップなどのスクロール・アニメーションを簡単に実装することができます。
また、アニメーションを登場させるy座標を指定することができるので、おもしろいスクロール・アニメーションをつくることができそうです!
デモを上下にスクロールしてみてください。
「rlSmooth」のデモ
ソース(HTML + jQuery)
< meta name = "description" content = "RLSmooth のデモでーす。" > |
< title >RLSmooth - jQuery Plugin Demo</ title > |
< link rel = "stylesheet" type = "text/css" href = "css/normalize.css" > |
< link rel = "stylesheet" type = "text/css" href = "css/style.css" media = "all" /> |
< script src = "js/jquery.min.js" ></ script > |
< script src = "js/html5shiv.js" ></ script > |
< script src = "js/rlsmooth.js" ></ script > |
$(".slide-option").rlSmooth(); |
$(".slideOut-option").rlSmooth('slideOut',{ |
$(".slideHide-option").rlSmooth('slideHide',{ |
$(".fade-option").rlSmooth('fade',{ |
$(".showUp-option").rlSmooth('showUp',{ |
$(".showOut-option").rlSmooth('showOut',{ |
< div class = "smooth-style slide-option" >オプション:slide</ div > |
< div class = "smooth-style slideOut-option" >オプション:slideOut</ div > |
< div class = "smooth-style fade-option" >オプション:fade</ div > |
< div class = "smooth-style showUp-option" >オプション:showUp</ div > |
< div class = "smooth-style showOut-option" >オプション:showOut</ div > |
< footer style = "margin-top:20px" > |
< a href = "https://webkaru.net/jquery-plugin/rlsmooth/" >「jQueryプラグインまとめ」に戻る</ a > |
jsファイルのダウンロード、その他のオプション詳細はこちらからどうぞ。