🪄✨ Fast annimation creation only with javascript 🪄✨
⭐️
npm i m4gixjs --save
Import module:
import { Magix } from 'm4gixjs'
Example basic usage:
Magix({
event:'click',
target:'#button'
animes:[
{
target:'#test',
css:{
'background-color':['#00ff0c','#ffff00']
},
}
],
})
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 |
Name object | Info | Default value |
---|---|---|
toggleOut |
Toggle when click out element | true |
Name object | Info | Default value |
---|
Name object | Info | Default value |
---|
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 |