Open summerflowerying opened 7 years ago
animation-name: none animation-duration: 0s animation-timing-function: ease animation-delay: 0s animation-iteration-count: 1 animation-direction: normal animation-fill-mode: none animation-play-state: running
@keyframes fadein { 0% { opacity: 0; }
100% { opacity: 1; }
}
`
整理了css3的animation
keyframes定义动画序列:
animation
animation-name: none animation-duration: 0s animation-timing-function: ease animation-delay: 0s animation-iteration-count: 1 animation-direction: normal animation-fill-mode: none animation-play-state: running
animation-name(默认none)
animation-duration(默认0)
animation-timing-function (默认ease)
demo地址 step-start效果等于steps(1, start): 以下一帧的显示效果来填充动画 step-end效果等于steps(1, end): 以下一帧的显示效果来填充动画
animation-delay (默认0s)
animation-iteration-count : 动画播放的次数 (默认是1)
animation-direction (默认normal)
animation-play-state (默认 running)
animation-fill-mode (默认 none)
animate.css
mdn资料
博客
最终的css
@keyframes fadein { 0% { opacity: 0; }
}
`