一些解释
CSS3 时代,动画不再必须依赖 js,变得更加简单、高效。
首先介绍一个常用动画库 animate.css,这里是它的 github 仓库
看看效果
先通过 cdn 方式引入
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
<style>
.target{
background: #f0f;
width: 100px;
height: 100px;
animation: bounceIn 1s;
}
</style>
<div class="target"></div