[TOC] >[animate github](https://github.com/daneden/animate.css) ## 安装 npm ` npm install animate.css --save` link ` <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css"> ` ## 基础用法 `<h1 class="animated infinite bounce delay-2s">Example</h1>` ``` .yourElement { animation-duration: 3s; animation-delay: 2s; animation-iteration-count: infinite; } ``` ## 使用js