使用Element.animate添加文字与图片动画

📝

内容提要

在网页添加一些简单的切换动画一般使用CSS3的animate或者transition实现,而Element.animate是新的原生Javascript Api,能使用JS快速为Dom添加动画。

➡️

继续阅读