简单,只需将mimic.css样式表添加到HTML文档的<head>中即可:
<head> <link rel="stylesheet" href="/path/to/mimic.css"> </head>
或者你可以使用最小化的版本!
<head> <link rel="stylesheet" href="/path/to/mimic.min.css"> </head>
接下来, 要进行动画处理, 您需要将类动画添加到您的元素中, 并使用mimic.css类。
类名称 | 模拟 |
---|---|
boomerang
| a boomerang |
swivelChair
| a swivel chair |
gettinInYoFace
| someone gettin' in yo' face |
airplanePropeller
| an airplane propeller |
pulsate
| something pulsating |
candleInTheWind
| a candle in the wind |
highlighter
| a highlighter |
lawnMower
| a lawn mower blade |
bungee
| a bungee jump |
nope
| a head shaking nope |
heartBeat
| a heartbeat |
sleepyEyes
| sleepy eyes |
plummit
| plummiting |
dropItLikeItsHot
| droping something like it's hot |
gettinLifted
| gettin' lifted |
glaucoma
| how a person with glaucoma sees (or doesn't) |
chameleon
| a chameleon |
backdrop
| a stage backdrop |