一些很酷的CSS3页面过渡效果,你也可以定制自己的过渡效果。
依赖库有这些
Css库
<link rel="stylesheet" type="text/css" href="css/animations.css"/>
Javascript库
<script src="./js/jquery.min.js"></script> <script src="js/transition.js"></script>
Html
<div class="pt-page pt-page-4"></div>
选项:
Name | Type | Description | Need |
---|---|---|---|
$main | Object | The container of transition pages | true |
loop | Bool | Whether the list list of transition pages can be recycledthe | false |
callback | Function | Callback for page changed | false |
方法
Name | Description | Args |
---|---|---|
nextPage(x) | Do transition pages method | transition type(int) |
prevPage(x) | Do transition pages method | transition type(int) |
appendPage(html) | Append pages to main container | append content(string) |