Wanky Pages是CSS3实现2D/3D页面过渡效果插件,支持从左至右过渡、从右到左过渡、文件夹形式过渡、3D立方体旋转等效果。
$(document).ready(function(){
$('#pages').wankyPages({
selector_prefix : 'wanky_', // Prefix to give all classes and ID's
default_page : 1, // Default/ first page to load
animation : 'moveUnfoldTopBottom', // Animation to used. Change to false to use overrides
leftInAnimation : 'pt-page-moveFromLeft', // Override left-in animation
leftOutAnimation : 'pt-page-moveToRight', // Override left-out animatino
rightInAnimation : 'pt-page-moveFromRight', // Override right-in animation
rightOutAnimation : 'pt-page-moveToLeft', // Override right-out animation
onBeforeChange : function(next_page, current_page){}, // Function to call before page changes
onAfterChange : function(){}, // Function to call after page changes
onBeforeLoad : function(){}, // Function to call before plugin loads
onInterval : function(current_page){} // Function to call on page checking interval
});
});
相关链接