这是一个不使用jQuery小巧的框架 不到9KB

网友投稿 529 2022-10-12

这是一个不使用jQuery小巧的框架 不到9KB

这是一个不使用jQuery小巧的框架 不到9KB

fullpage

for desktop(ie5.5+) and mobile

You can use it for creating your personal pages and webApp.

Without jQuery.Less than 9KB.

兼容桌面端(ie5.5+) 和 手机端

你可以用它来构建你的个人主页或者网页应用

这是一个不使用jQuery小巧的框架 不到9KB

This is a Demo.

Help! I want to make it AUTOPLAY! Demo like this I want a SPECIFIC example! Demo like this

Here are some examples which use fullpage.

PC Mobile

Enjoy!

Usage

Fullpage only needs to follow a simple pattern. Here is an example:

Above is the initial required structure– a series of elements wrapped in two containers. Place any content you want within the items. The containing div will need to be passed to the Fullpage function like so:

runPage = new FullPage({ id : 'pageContain', // id of contain slideTime : 800, // time of slide(ms) continuous true, // create an infinite feel with no endpoints effect : { // slide effect transform : { // tranform translate : 'Y', // 'X'|'Y'|'XY'|'none' scale : [.1, 1], // [scalefrom, scaleto] rotate : [90, 0] // [rotatefrom, rotateto] }, opacity : [0, 1] // [opacityfrom, opacityto] }, mode : 'wheel,touch,nav:navBar', // mode of fullpage easing : 'ease' // easing('ease','ease-in','ease-in-out' or use // cubic-bezier like [.33, 1.81, 1, 1]) // callback : function(index, thisPage) { // callback when pageChange // }});

I always place this at the bottom of the page, externally, to verify the page is ready.

设置

id String - 外层包裹id slideTime Integer (default:800) - 每页切换时间(毫秒) effect Object (default:{}) - 效果参数 continuous Boolean (default:false) - 是否循环(即能从最后页跳到第一页面) transformtranslate String 切换方向 'X'|'Y'|'XY'|'none' 表示 X轴|Y轴|XY轴|无scale Array 缩放 [scalefrom, scaleto] 表示 [起始缩放比例, 结束时缩放比例]rotate Array 旋转 [rotatefrom, rotateto] 表示 [起始旋转角度, 结束时旋转角度] opacity Array 透明度 [opacityfrom, opacityto] 表示 [起始透明度, 结束时透明度] mode String (default:'') - 转换模式 'wheel,touch,nav:navBar' 表示 '滚轮,触摸,导航条:导航条id' callback Function - 滑动结束后的回调函数

Fullpage API

Fullpage exposes a few functions that can be useful for script control of your pages.

prev() slide to prev

next() slide to next

thisPage() returns current page position

go(num) slide to set page position (num:the page you want to slide to)

接口

Fullpage也提供了一些借口供使用此插件的开发者调用:

prev() 直接滑向上一页

next() 直接滑入下一页

thisPage() 返回当前的页码

go(num) 直接滑到第num页

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:iOS OCR 之银行卡/身份证信息识别小知识
下一篇:PMP-5.项目范围管理-5.1规划范围管理
相关文章

 发表评论

暂时没有评论,来抢沙发吧~