百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
F

fullpage

> 编程语言
开源

对于不使用 jQuery 的桌面 (ie5.5+) 或移动 Web 应用程序,可以快速、简单地创建全屏页面。

742 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

对于不使用 jQuery 的桌面 (ie5.5+) 或移动 Web 应用程序,可以快速、简单地创建全屏页面。

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:

xml

	
    

	
0

	

!新功能:

你可以在 page 的 div 上加上 data-step, 当含有这个属性时, 你可以创造出不切屏的逐桢动画, fullpage 会为你自动添上 step1,step2,step3 这些 class, 并且在step终止时切屏.(详见Demo)

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:

…

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) - 是否循环(即能从最后页跳到第一页面)

    • transform

      • translate 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'

  • onSwipeStart Function - 触摸开始时的回调函数

    • 当 return 'stop' 时,此次触摸将不会生效
  • beforeChange Function - 滑动开始时的回调函数

    • 当 return 'stop' 时,此次滑动将还原
  • callback Function - 滑动结束后的回调函数

  • start Integer - 初始化时被展示的页面页码

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页

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言