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

PhyTouch

> 前端框架
开源

Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - 丝般顺滑的触摸运动方案

3.0K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - 丝般顺滑的触摸运动方案

PhyTouch

丝般顺滑的触摸运动方案

Smooth scrolling, rotation, pull to refresh and any motion for the web.

Install

javascript
npm install phy-touch
  • https://unpkg.com/[email protected]/index.js

Usage

…

通过对象的实例可以自行运动DOM:

javascript
phyTouch.to(value, time, ease)
  • value是必填项
  • time是非必填项,默认值是600
  • ease是非必填项,默认值是先加速后减速的运动函数,CSS版本默认值是cubic-bezier(0.1, 0.57, 0.1, 1)

通过对象的实例可以自行停止DOM运动:

javascript
phyTouch.stop()

Demo(Mobile)

  • Pull To Refresh: http://alloyteam.github.io/PhyTouch/refresh/pull_refresh/
  • QQ KanDian: http://alloyteam.github.io/PhyTouch//refresh/infinite/kandian.html
  • Full Page Scroll : http://alloyteam.github.io/PhyTouch/full_page/
  • Simple : http://alloyteam.github.io/PhyTouch/example/simple.html
  • 3D : http://alloyteam.github.io/PhyTouch/example/3d.html
  • Rotate : http://alloyteam.github.io/PhyTouch/example/rotate.html
  • Carousel : http://alloyteam.github.io/PhyTouch/example/carousel.html
  • Carousel2 : http://alloyteam.github.io/PhyTouch/example/carousel2.html
  • Three.js : http://alloyteam.github.io/PhyTouch/example/threejs/

Related links

  • omi-touch: Omi /PhyTouch integration
  • PhyTouch Wiki

License

This content is released under the MIT License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

JavaScriptcss3transformmotionscrollscrolling

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架