animate.css
animate.css是一个css3动画库
今天上网搜了一下,对animate.css有一个简单的了解
1、怎么使用animate.css
首先下载animate.css https://daneden.github.io/animate.css/
其次:<head>
<link rel="stylesheet" href="animate.css">
</head>
接下来<script>
$("button").addClass("animated shake");
</script>
<body>
<button>#target1</button>
</body>
我最近在学jquery,所以拿这个当做例子,大家在写的时候不要忘记写 <script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
animated是必须要写的,shake是animate.css提供的动画,动画名就是类名,除了shake,还有bounce,flash,swing等等。