{"id":416,"date":"2016-04-11T21:30:30","date_gmt":"2016-04-11T13:30:30","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=416"},"modified":"2016-09-04T17:59:48","modified_gmt":"2016-09-04T09:59:48","slug":"css3%e5%8a%a8%e7%94%bb%e5%ba%93animate-css%e7%9a%84%e8%af%a6%e7%bb%86%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=416","title":{"rendered":"css3\u52a8\u753b\u5e93animate.css\u7684\u8be6\u7ec6\u4f7f\u7528\u6559\u7a0b"},"content":{"rendered":"<p>\n\t\u5728\u8fd9\u4e2a\u5e74\u4ee3\uff0c\u4f60\u8981\u662f\u4e0d\u61c2\u4e00\u70b9\u70b9css3\u7684\u77e5\u8bc6\uff0c\u4f60\u90fd\u4e0d\u597d\u610f\u601d\u8bf4\u4f60\u662f\u4e2a\u7f8e\u5de5\uff0c\u524d\u7aef\u5de5\u7a0b\u5e08\uff0c\u653b\u57ce\u5c38\u4e86\u3002\u5982\u679c\u8bf4\u90a3\u4e9b\u662f\u6211\u4eec\u7684\u5fc5\u5907\u6280\u80fd\uff0c\u5f53\u7136\u662fCSS3\u4e86\u3002<br \/>\n\t\u4ece\u5e7f\u4e49\u4e0a\u6765\u8bb2\uff0ccss3\u52a8\u753b\u53ef\u4ee5\u5206\u4e3a\u4e24\u79cd\u3002\u4e00\u79cd\u53eb\u8fc7\u6e21\uff08transition\uff09\u52a8\u753b\uff0c\u5c31\u662f\u4ece\u521d\u59cb\u72b6\u6001\u8fc7\u6e21\u5230\u7ed3\u675f\u72b6\u6001\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u6240\u4ea7\u751f\u7684\u52a8\u753b\u3002\u6240\u8c13\u7684\u72b6\u6001\u5c31\u662f\u6307\u5927\u5c0f\u3001\u4f4d\u7f6e\u3001\u989c\u8272\u3001\u53d8\u5f62\uff08transform\uff09\u7b49\u7b49\u8fd9\u4e9b\u5c5e\u6027\u3002css\u8fc7\u6e21\u53ea\u80fd\u5b9a\u4e49\u9996\u548c\u5c3e\u4e24\u4e2a\u72b6\u6001\uff0c\u6240\u4ee5\u662f\u6700\u7b80\u5355\u7684\u4e00\u79cd\u52a8\u753b\u3002<br \/>\n\t\u53e6\u5916\u4e00\u79cd\u53eb\u505a\u5173\u952e\u5e27\uff08keyframes\uff09\u52a8\u753b\u3002\u4e0d\u540c\u4e8e\u7b2c\u4e00\u79cd\u7684\u8fc7\u6e21\u52a8\u753b\u53ea\u80fd\u5b9a\u4e49\u9996\u5c3e\u4e24\u4e2a\u72b6\u6001\uff0c\u5173\u952e\u5e27\u52a8\u753b\u53ef\u4ee5\u5b9a\u4e49\u591a\u4e2a\u72b6\u6001\uff0c\u6216\u8005\u7528\u5173\u952e\u5e27\u6765\u8bf4\u7684\u8bdd\uff0c\u8fc7\u6e21\u52a8\u753b\u53ea\u80fd\u5b9a\u4e49\u7b2c\u4e00\u5e27\u548c\u6700\u540e\u4e00\u5e27\u8fd9\u4e24\u4e2a\u5173\u952e\u5e27\uff0c\u800c\u5173\u952e\u5e27\u52a8\u753b\u5219\u53ef\u4ee5\u5b9a\u4e49\u4efb\u610f\u591a\u7684\u5173\u952e\u5e27\uff0c\u56e0\u800c\u80fd\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u52a8\u753b\u6548\u679c\u3002\u5173\u952e\u5e27\u52a8\u753b\u7684\u5b9a\u4e49\u65b9\u5f0f\u4e5f\u6bd4\u8f83\u7279\u6b8a\uff0c\u5b83\u4f7f\u7528\u4e86\u4e00\u4e2a\u5173\u952e\u5b57@keyframes\u6765\u5b9a\u4e49\u52a8\u753b\u3002<br \/>\n\t\u8fd9\u4e24\u79cd\u52a8\u753b\u90fd\u53ef\u4ee5\u5728\u6211\u4eec\u7684\u535a\u5ba2\u4e2d\u627e\u5230\u76f8\u5173\u7684\u5b66\u4e60\u6587\u7ae0\u3002\u6211\u4eec\u4eca\u5929\u4e3b\u8981\u5b66\u4e60\u7684\u662fCSS3\u7684\u52a8\u753b\u5e93animate.css\u7684\u4f7f\u7528\u3002<br \/>\n\tAnimate.css\u662f\u4e00\u4e2a\u6709\u8da3\u7684\u6765\u81ea\u56fd\u5916\u7684CSS3\u52a8\u753b\u5e93\uff0c\u8de8\u6d4f\u89c8\u5668\u7684css3\u52a8\u753b\u5e93\u3002\u5f53\u7136\u662f\u53ea\u517c\u5bb9\u652f\u6301 CSS3 animate \u5c5e\u6027\u7684\u6d4f\u89c8\u5668\uff0c\u4ed6\u4eec\u5206\u522b\u662f\uff1aIE10+\u3001Firefox\u3001Chrome\u3001Opera\u3001Safari\u3002<br \/>\n\t\u4f7f\u7528\u6b65\u9aa4\u5982\u4e0b\uff1a<br \/>\n\t<strong>1.\u9996\u5148\u5f15\u5165animate.css\u6837\u5f0f\u6587\u4ef6<\/strong>\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;link href=&quot;http:\/\/cdn.bootcss.com\/animate.css\/3.5.1\/animate.min.css&quot; rel=&quot;stylesheet&quot;&gt;<\/pre>\n<p>\n\t<strong>2.\u5728\u5143\u7d20\u6807\u7b7e\u4e0a\u52a0\u5165class<\/strong><br \/>\n\t\u5982\u5728\u4e0b\u9762div\u4e0a\u52a0\u5165animated bounce\u5237\u65b0\u5373\u53ef\u4ea7\u751f\u52a8\u753b\u3002animated \u7c7b\u4f3c\u4e8e\u5168\u5c40\u53d8\u91cf\uff0c\u5b83\u5b9a\u4e49\u4e86\u52a8\u753b\u7684\u6301\u7eed\u65f6\u95f4\uff1bbounce\u662f\u52a8\u753b\u5177\u4f53\u7684\u52a8\u753b\u6548\u679c\u7684\u540d\u79f0\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4efb\u610f\u7684\u6548\u679c\u3002\u5982\u679c\u52a8\u753b\u662f\u65e0\u9650\u64ad\u653e\u7684\uff0c\u53ef\u4ee5\u6dfb\u52a0class infinite\u3002\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;div class=&quot;animated bounce&quot; id=&quot;xttblog&quot;&gt;&lt;\/div&gt;<\/pre>\n<p>\n\t\u4e5f\u53ef\u4ee5\u901a\u8fc7jQuery\u7b49\u63d2\u4ef6\u6dfb\u52a0\u52a8\u753b\n<\/p>\n<pre class=\"brush:jscript;\">\r\n$(function(){\r\n&nbsp; &nbsp; $(&#39;#xttblog&#39;).addClass(&#39;animated bounce&#39;);\r\n});<\/pre>\n<p>\n\t<strong>3.\u5982\u679c\u52a8\u753b\u6548\u679c\u6700\u540e\u4f1a\u8ba9\u5143\u7d20\u4e0d\u53ef\u89c1\uff0c\u6bd4\u5982\u6de1\u51fa\u3001\u5411\u5de6\u6ed1\u52a8\u7b49\u7b49\uff0c\u53ef\u80fd\u4f60\u53c8\u9700\u8981\u5c06class\u5220\u9664<\/strong>\uff0c\u6bd4\u5982\uff1a\n<\/p>\n<pre class=\"brush:jscript;\">\r\n$(function(){\r\n&nbsp; &nbsp; $(&#39;#xttblog&#39;).addClass(&#39;animated bounce&#39;);\r\n&nbsp; &nbsp; setTimeout(function(){\r\n&nbsp; &nbsp; &nbsp; &nbsp; $(&#39;#xttblog&#39;).removeClass(&#39;bounce&#39;);\r\n&nbsp; &nbsp; }, 1000);\r\n});<\/pre>\n<p>\n\tanimate.css\u7684\u9ed8\u8ba4\u8bbe\u7f6e\u4e5f\u8bb8\u6709\u4e9b\u65f6\u5019\u5e76\u4e0d\u662f\u6211\u4eec\u60f3\u8981\u7684\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u91cd\u65b0\u8bbe\u7f6e\uff0c\u6bd4\u5982\uff1a\n<\/p>\n<pre class=\"brush:xml;\">\r\n#xttblog{\r\n&nbsp; &nbsp; animate-duration: 2s; &nbsp; &nbsp;\/\/\u52a8\u753b\u6301\u7eed\u65f6\u95f4\r\n&nbsp; &nbsp; animate-delay: 1s; &nbsp; &nbsp;\/\/\u52a8\u753b\u5ef6\u8fdf\u65f6\u95f4\r\n&nbsp; &nbsp; animate-iteration-count: 2; &nbsp; &nbsp;\/\/\u52a8\u753b\u6267\u884c\u6b21\u6570\r\n}<\/pre>\n<p>\n\t<strong>4\u3001\u5982\u679c\u9700\u8981\u5728\u52a8\u753b\u6548\u679c\u6267\u884c\u5b8c\u6210\u540e\u8fdb\u884c\u5176\u4ed6\u64cd\u4f5c\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u65b9\u5f0f\u6dfb\u52a0\u4e8b\u4ef6\u548c\u65b9\u6cd5<\/strong>\n<\/p>\n<pre class=\"brush:jscript;\">\r\n$(&#39;#xttblog&#39;).one(&#39;webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend&#39;, function(){\r\n&nbsp;&nbsp; &nbsp;\/\/\u52a8\u753b\u6267\u884c\u5b8c\u6210\u4e86\r\n});<\/pre>\n<p>\n\t\u6ce8\u610f\u6dfb\u52a0\u6d4f\u89c8\u5668\u524d\u7f00\u3002\u4ee5\u4e0b\u5217\u4e3e\u4e86animate.css\u7684\u6240\u6709\u52a8\u753b\uff1a<br \/>\n\tshake\u3001flash\u3001swing\u3001bounce\u3001tada\u3001wobble\u3001pulse<br \/>\n\tflip\u3001flipInX\u3001flipOutX\u3001flipInY\u3001flipOutY<br \/>\n\tfadeIn\u3001fadeInUp\u3001fadeInDown\u3001fadeInLeft\u3001fadeInRight\u3001fadeInUpBig\u3001fadeInDownBig\u3001fadeInLeftBig\u3001fadeInRightBig<br \/>\n\tfadeOut\u3001fadeOutUp\u3001fadeOutDown\u3001fadeOutLeft\u3001fadeOutRight\u3001fadeOutUpBig\u3001fadeOutDownBig\u3001fadeOutLeftBig\u3001fadeOutRightBig<br \/>\n\tslideInDown\u3001slideInLeft\u3001slideInRight\u3001slideOutUp\u3001slideOutLeft\u3001slideOutRight<br \/>\n\tbounceIn\u3001bounceInDown\u3001bounceInUp\u3001bounceInLeft\u3001bounceInRight<br \/>\n\tbounceOut\u3001bounceOutDown\u3001bounceOutUp\u3001bounceOutLeft\u3001bounceOutRight<br \/>\n\trotateIn\u3001rotateInDownLeft\u3001rotateInDownRight\u3001rotateInUpLeft\u3001rotateInUpRight<br \/>\n\trotateOut\u3001rotateOutDownLeft\u3001rotateOutDownRight\u3001rotateOutUpLeft\u3001rotateOutUpRight<br \/>\n\tlightSpeedIn\u3001lightSpeedOut\u3001hinge\u3001rollIn\u3001rollOut\n<\/p>\n<p>\n\t<strong>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3a\u535a\u4e3b\u539f\u521b\u6587\u7ae0\uff0c\u672a\u7ecf\u535a\u4e3b\u5141\u8bb8\u4e0d\u5f97\u8f6c\u8f7d\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=416\">css3\u52a8\u753b\u5e93animate.css\u7684\u8be6\u7ec6\u4f7f\u7528\u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u5728\u8fd9\u4e2a\u5e74\u4ee3\uff0c\u4f60\u8981\u662f\u4e0d\u61c2\u4e00\u70b9\u70b9css3\u7684\u77e5\u8bc6\uff0c\u4f60\u90fd\u4e0d\u597d\u610f\u601d\u8bf4\u4f60\u662f\u4e2a\u7f8e\u5de5\uff0c\u524d\u7aef\u5de5\u7a0b\u5e08\uff0c\u653b\u57ce\u5c38\u4e86\u3002\u5982\u679c\u8bf4\u90a3\u4e9b\u662f\u6211\u4eec\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[158,117,159],"class_list":["post-416","post","type-post","status-publish","format-standard","hentry","category-html5","tag-animate-css","tag-css3","tag-159"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=416"}],"version-history":[{"count":2,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":779,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions\/779"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}