【文件属性】:
文件名称:Keyframes.Pathfinder:jQuery.Keyframes插件,可生成复杂的运动路径
文件大小:63KB
文件格式:ZIP
更新时间:2021-05-06 20:41:05
JavaScript
关键帧。探路者
这个用于关键帧的插件会生成复杂的移动路径。
安装
import Pathfinder from '@keyframes/pathfinder' ;
Keyframes . plugin ( Pathfinder ) ;
用法
简单贝塞尔曲线
Keyframes.bezierPath( rules, [startX,startY], [endX,endY], [pullX,pullY] );
超级简单的例子:
var rules = Keyframes . bezierPath ( { name : 'curvy' } , [ 1 , 1 ] , [ 400 , 1 ] , [ 200 , 300 ] ) ;
Keyframes . define ( [ rules ] ) ;
window . onload = ( ) => {
const block = doc
【文件预览】:
Keyframes.Pathfinder-master
----.eslintrc(296B)
----example()
--------example.dist.js(12KB)
--------twitter.png(3KB)
--------example.html(336B)
--------example.js(1KB)
----.babelrc(144B)
----package.json(1KB)
----screenshots()
--------a.png(2KB)
--------b.png(2KB)
----LICENSE(1KB)
----package-lock.json(208KB)
----src()
--------keyframes.pathfinder.js(3KB)
----.gitignore(199B)
----README.md(2KB)
----.eslintignore(4B)