https://github.com/helti/parabola-animation
:+1: javascript parabola animation
https://github.com/helti/parabola-animation
animation buy-cart-animation parabola
Last synced: 9 months ago
JSON representation
:+1: javascript parabola animation
- Host: GitHub
- URL: https://github.com/helti/parabola-animation
- Owner: HelTi
- Created: 2018-07-01T08:29:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T14:58:58.000Z (almost 8 years ago)
- Last Synced: 2025-03-10T13:49:39.951Z (about 1 year ago)
- Topics: animation, buy-cart-animation, parabola
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parabolaAnimation.js
#### 项目介绍
js 抛物线动画 for mobile
##### install
```js
npm i parabola-animation
import parabolaAnimation from 'parabola-animation'
//or
```
##### use
```js
/**
* element:dom (如果是null,则默认使用圆形dom; 自定义dom:htmlString:'
...' )
* /
parabolaAnimation(element,options)
let p = new parabolaAnimation(null,{
startPos:{
left:10, //相对屏幕的left
top:10 //相对屏幕的top
},
endPos:{
left:100,
top:100
},
endFunc:function(){
p.destroy(); //结束时的callback
}
})
```