1.1.4 ā¢ Published 3 years ago
m4gixjs v1.1.4
š§āāļø Introduction
šŖāØ Fast annimation creation only with javascript šŖāØ
š§āāļø Install
āļø
npm i m4gixjs --save
š§āāļø Usage
Import module:
import { Magix } from 'm4gixjs'
Example basic usage:
Magix({
event:'click',
target:'#button'
animes:[
{
target:'#test',
css:{
'background-color':['#00ff0c','#ffff00']
},
}
],
})
šŖ Base
Name object | Info | required |
---|---|---|
event | Event ('click','hover') | true |
target | Dom target event | false |
animes | Array of object animes | true |
click | Object click options | false |
hover | Object hover options | false |
scroll | Object scroll options | false |
šŖ Options
click
Name object | Info | Default value |
---|---|---|
toggleOut | Toggle when click out element | true |
hover
Name object | Info | Default value |
---|
scroll
Name object | Info | Default value |
---|
šŖ animes
Name object | Info | required |
---|---|---|
target | Dom target animation | true |
css | Css event | false |
Class | class event | false |
order | Order timeline animation | false |
time | Time of animation | false |
<!-- child | Content from cell 2 | false --> |