jQuery plugin animsition使用小結(jié)
用法整理
下載地址:https://github.com/blivesta/animsition
文檔地址:http://git.blivesta.com/animsition/
實(shí)現(xiàn)的效果是,各種不同效果的轉(zhuǎn)場效果
<div class="animsition"> <div class="item bg-indigo"> <h1>Animsition: Sandbox</h1> </div> <h2>Defaults</h2> <ol> <li><a class="animsition-link" data-animsition-out-class="rotate-out" data-animsition-out-duration="500" href="page1.html" rel="external nofollow" >Basic</a></li> <li><a class="animsition-link" data-animsition-out-class="rotate-out" data-animsition-out-duration="500" href="page2.html" rel="external nofollow" >Options</a></li> </ol> </div> <script src="jquery-3.2.1.min.js"></script> <script src="js/animsition.js"></script> <script> $(document).ready(function() { $(".animsition").animsition({ inClass: 'flip-in-y', outClass: 'flip-out-y', inDuration: 1500, // outDuration: 800, linkElement: '.animsition-link', // e.g. linkElement: 'a:not([target="_blank"]):not([href^="#"])' loading: false, loadingParentElement: 'body', //animsition wrapper element loadingClass: 'animsition-loading', loadingInner: '', // e.g '<img src="loading.svg" />' timeout: false, timeoutCountdown: 5000, onLoadEvent: true, browser: [ 'animation-duration', '-webkit-animation-duration'], // "browser" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser. // The default setting is to disable the "animsition" in a browser that does not support "animation-duration". overlay : false, overlayClass : 'animsition-overlay-slide', overlayParentElement : 'body', // transition: function(url){ window.location.href = url;} }); }); </script>
注意?。。ss文件的.animistion類的opacity設(shè)置了為0;需要改過來,要不然頁面元素看不到!??!
總結(jié)
以上所述是小編給大家介紹的jQuery plugin animsition使用小結(jié),希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
JSONP 跨域訪問代理API-yahooapis實(shí)現(xiàn)代碼
介紹一個(gè)JSONP 跨域訪問代理API-yahooapis,需要的朋友可以參考下2012-12-12jQuery基于toggle實(shí)現(xiàn)click觸發(fā)DIV的顯示與隱藏問題分析
這篇文章主要介紹了jQuery基于toggle實(shí)現(xiàn)click觸發(fā)DIV的顯示與隱藏,結(jié)合實(shí)例形式分析了toggle方法用于切換頁面元素樣式的相關(guān)使用技巧,需要的朋友可以參考下2016-06-06jquery實(shí)現(xiàn)上下左右滑動(dòng)的方法
這篇文章主要介紹了jquery實(shí)現(xiàn)上下左右滑動(dòng)的方法,是jQuery特效中非常典型的應(yīng)用,需要的朋友可以參考下2015-02-02多種方法實(shí)現(xiàn)360瀏覽器下禁止自動(dòng)填寫用戶名密碼
這篇文章主要介紹了多種方法實(shí)現(xiàn)360瀏覽器下禁止自動(dòng)填寫用戶名密碼,需要的朋友可以參考下2014-06-06jQueryMobile之窗體長內(nèi)容的缺陷與解決方法實(shí)例分析
這篇文章主要介紹了jQueryMobile之窗體長內(nèi)容的缺陷與解決方法,結(jié)合具體實(shí)例形式分析了jQueryMobile底部懸浮層遮擋情況下的解決方法,非常簡單實(shí)用,需要的朋友可以參考下2017-09-09PageSwitch插件實(shí)現(xiàn)100種不同圖片切換效果
這篇文章主要介紹了PageSwitch插件實(shí)現(xiàn)100種不同圖片切換效果,需要的朋友可以參考下2015-07-07jquery判斷RadioButtonList和RadioButton中是否有選中項(xiàng)示例
用jquery判斷RadioButtonList和RadioButton中是否有選中項(xiàng),下面有個(gè)不錯(cuò)的示例,感興趣的朋友可以參考下2013-09-09