{"id":30135,"date":"2024-11-25T14:24:37","date_gmt":"2024-11-25T06:24:37","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30135\/"},"modified":"2024-11-25T14:24:37","modified_gmt":"2024-11-25T06:24:37","slug":"%e8%ae%a9%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e7%9a%84%e7%99%bb%e9%99%86%e9%a1%b5%e9%9d%a2%e6%9c%89%e4%ba%91%e6%9c%b5%e6%82%ac%e6%b5%ae%e7%9a%84%e5%8a%a8%e6%80%81%e6%95%88%e6%9e%9c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30135\/","title":{"rendered":"\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c"},"content":{"rendered":"<p><strong>\u6458\u8981<\/strong>: \u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u76ee\u524d\u7684\u706b\u70ed\u7a0b\u5ea6\u76f8\u4fe1\u4e0d\u7528\u591a\u8a00\uff0c\u5c24\u5176\u662f\u8fd1\u671f\u5fae\u4fe1\u56e2\u961f\u5f00\u53d1\u5c0f\u7a0b\u5e8f\u5f88\u591a\u4e4b\u524d\u88ab\u8bdf\u75c5\u7684\u529f\u80fd\uff1a\u6a21\u7cca\u641c\u7d22\uff0c\u9644\u8fd1\u5c0f\u7a0b\u5e8f\u7b49\u3002\u6700\u8fd1\u6709\u7f51\u53cb\u5229\u7528\u7a7a\u4f59\u65f6\u95f4\u7528\u5c0f\u7a0b\u5e8f\u5b9e\u73b0\u4e86\u4e2a\u52a8\u6001\u7684\u767b\u5f55\u9875\u6548\u679c\uff0c\u6240\u4ee5\u4e0b\u9762\u6211\u4eec51\u5c0f\u7a0b\u5e8f\u5c31\u5427\u8fd9\u7bc7\u6587\u7ae0 &#8230;<\/p>\n<table>\n<tbody>\n<tr>\n<td> <span style=\"font-family:\">\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u76ee\u524d\u7684\u706b\u70ed\u7a0b\u5ea6\u76f8\u4fe1\u4e0d\u7528\u591a\u8a00\uff0c\u5c24\u5176\u662f\u8fd1\u671f\u5fae\u4fe1\u56e2\u961f\u5f00\u53d1\u5c0f\u7a0b\u5e8f\u5f88\u591a\u4e4b\u524d\u88ab\u8bdf\u75c5\u7684\u529f\u80fd\uff1a\u6a21\u7cca\u641c\u7d22\uff0c\u9644\u8fd1\u5c0f\u7a0b\u5e8f\u7b49\u3002\u6700\u8fd1\u6709\u7f51\u53cb\u5229\u7528\u7a7a\u4f59\u65f6\u95f4\u7528\u5c0f\u7a0b\u5e8f\u5b9e\u73b0\u4e86\u4e2a\u52a8\u6001\u7684\u767b\u5f55\u9875\u6548\u679c\uff0c\u6240\u4ee5\u4e0b\u9762\u6211\u4eec51\u5c0f\u7a0b\u5e8f\u5c31\u5427\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u5229\u7528\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5b9e\u73b0\u767b\u5f55\u9875\u4e91\u5c42\u6f02\u6d6e<\/span><span style=\"color:#005a94;font-family:helvetica neue, hiragino sans gb, ST HeiTi, microsoft yahei, \u5fae\u8f6f\u96c5\u9ed1, tahoma, sans-serif\"><span style=\"cursor: pointer;font-size: 16px\">\u52a8\u753b<\/span><\/span><span style=\"font-family:\">\u6548\u679c\u7684\u76f8\u5173\u8d44\u6599\u5206\u4eab\u7ed9\u5927\u5bb6\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u501f\u9274\uff0c\u4e0b\u9762\u6765\u4e00\u8d77\u770b\u770b\u5427\u3002<\/span><\/p>\n<p style=\"margin: 0px 0px 1em;padding: 0px;font-family:\"><\/p>\n<p style=\"margin: 0px 0px 1em;padding: 0px;font-family:\"><span><strong>\u524d\u8a00<\/strong><\/span><\/p>\n<p style=\"margin: 0px 0px 1em;padding: 0px;font-family:\">2017\u5e74\u524d\u7aef\u706b\u4e86\uff0c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u3001weex\u3001reactnative\uff0c\u5c31\u8fde\u652f\u4ed8\u5b9d\u4e5f\u641e\u8d77\u4e86\u5c0f\u7a0b\u5e8f\uff0c\u603b\u611f\u89c9\u8fd9\u662f\u539f\u751f\u8981\u6bc1\u706d\u7684\u8282\u594f\u554a\uff0c\u6211\u4e5f\u4e58\u70ed\u4e0a\u8f66\u4e07\u4e00\u6ce2\u3002<\/p>\n<p style=\"margin: 0px 0px 1em;padding: 0px;font-family:\"><strong>\u4e0a\u6548\u679c\u56fe(GIF\u52a8\u6001\u56fe)<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/007\/ae6562a1f0c60c88b54eadf4df4f7900-0.gif\" class=\"aligncenter\" title=\"\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c\u63d2\u56fe\" alt=\"\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c\u63d2\u56fe\" \/><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px;font-family:\">\u5f53\u6211\u770b\u5230\u8fd9\u5f20\u80cc\u666f\u56fe\u7684\u65f6\u5019\uff0c\u5f3a\u8feb\u75c7\u7acb\u9a6c\u6765\u4e86\uff0c\u8fd9\u4e91\u6735\u4e3a\u4ec0\u4e48\u4e0d\u52a8\uff0c\u4e8e\u662f\u5f00\u59cb\u4e86\u4e00\u6ce2\u6298\u817e\u3002<\/p>\n<h1>\u77e5\u8bc6\u70b9<\/h1>\n<h2>\u8ba4\u8bc6animation<\/h2>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px;font-family:\">animation \u5c5e\u6027\u662f\u4e00\u4e2a\u7b80\u5199\u5c5e\u6027\uff0c\u7528\u4e8e\u8bbe\u7f6e\u516d\u4e2a\u52a8\u753b\u5c5e\u6027\uff1a<\/p>\n<p>\u503c\u63cf\u8ff0animation-name\u89c4\u5b9a\u9700\u8981\u7ed1\u5b9a\u5230\u9009\u62e9\u5668\u7684 keyframe \u540d\u79f0animation-duration\u89c4\u5b9a\u5b8c\u6210\u52a8\u753b\u6240\u82b1\u8d39\u7684\u65f6\u95f4\uff0c\u4ee5\u79d2\u6216\u6beb\u79d2\u8ba1animation-timing-function\u89c4\u5b9a\u52a8\u753b\u7684\u901f\u5ea6\u66f2\u7ebfanimation-delay\u89c4\u5b9a\u5728\u52a8\u753b\u5f00\u59cb\u4e4b\u524d\u7684\u5ef6\u8fdfanimation-iteration-count\u89c4\u5b9a\u52a8\u753b\u5e94\u8be5\u64ad\u653e\u7684\u6b21\u6570animation-direction\u89c4\u5b9a\u662f\u5426\u5e94\u8be5\u8f6e\u6d41\u53cd\u5411\u64ad\u653e\u52a8\u753b<\/p>\n<h2>\u8ba4\u8bc6translate<\/h2>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px;font-family:\">\u65b9\u6cd5\u7279\u522b\u591a\uff0c\u672c\u6587\u4e3b\u8981\u75282\u4e2a\u3002&nbsp;<br \/>+ translate3d(x,y,z)\u5b9a\u4e49 3D \u7f29\u653e\u8f6c\u6362\u3002&nbsp;<br \/>+ rotate3d(x,y,z,angle) \u5b9a\u4e49 3D \u65cb\u8f6c\u3002<\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px;font-family:\">translate3d(1,1,0)&nbsp;<br \/>\u4f60\u53ef\u4ee5\u7406\u89e3\u4e3a\uff08\u5de6\u53f3\uff0c\u4e0a\u4e0b\uff0c\u5927\u5c0f\uff09\u53d8\u5316\u3002&nbsp;<br \/>rotate3d(1,1,0,45deg)&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/007\/30e877963f9d731f27a36168088f6f7d-1.png\" class=\"aligncenter\" title=\"\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c\u63d2\u56fe1\" alt=\"\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c\u63d2\u56fe1\" \/><\/p>\n<h1>\u5b9e\u73b0<\/h1>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px;font-family:\">1.\u4e24\u6735\u4e91\u9664\u4e86\u5927\u5c0f\u548c\u521d\u59cb\u4f4d\u7f6e\u4e0d\u901a\uff0c\u5176\u4ed6\u90fd\u76f8\u540c\u3002<\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">.cloud {<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; position: absolute;<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; z-index: 3;<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; width:99px;height:64px; top: 0;&nbsp;<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; right: 0;<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; bottom: 0;<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; animation: cloud 5s linear infinite;<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">}<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\"><br \/><\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">@keyframes cloud {<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; from {<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; &nbsp; transform: translate3d(-125rpx, 0, 0);<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; }<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\"><br \/><\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; to {<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; &nbsp; transform: translate3d(180rpx, 0, 0);<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">&nbsp; }<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">}<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"font-family:\">\u5176\u4e2drpx\u662f\u5fae\u4fe1\u7279\u6709\u7684\u5c5e\u6027\uff0c\u4e0d\u53d7\u5c4f\u5e55\u5927\u5c0f\u7684\u5f71\u54cd\uff0c\u7c7b\u4f3c\u4e8e<\/span>\u5b89\u5353<span style=\"font-family:\">\u91cc\u7684dp\u5355\u4f4d\u3002keyframes\u662f\u5300\u901f\u79fb\u52a8\uff0c\u4ececss\u91cc\u53ef\u4ee5\u770b\u5230\u53ea\u6539\u53d8\u4e86\u5de6\u53f3\u65b9\u5411\u3002&nbsp;<\/span><br \/><span style=\"font-family:\">2.\u5934\u50cf\u672c\u6765\u60f3\u52a0\u4e2a\u540a\u7bee\uff0c\u50cf\u8361\u79cb\u5343\u4e00\u6837\u7684\u8361\u6f3e\uff0c\u4f46\u662f\u6ca1\u6709\u6210\u529f\uff0c\u53ea\u662f\u968f\u4fbf\u641e\u4e86\u4e2a\u98d8\u6765\u98d8\u53bb\u7684\u52a8\u753b\u3002&nbsp;<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/007\/4ede9c30fedbf9dc361e03a0c559d23b-2.png\" class=\"aligncenter\" title=\"\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c\u63d2\u56fe2\" alt=\"\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c\u63d2\u56fe2\" \/><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"color:#555555;font-family:microsoft yahei\">\u4ee3\u7801\u5982\u4e0b\uff1a<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px\"><span style=\"font-family:\">@<span>keyframes<\/span> pic <\/span><span style=\"font-family:\">{ &nbsp;0% <\/span><span style=\"font-family:\">{ &nbsp; &nbsp;<span><span>transform<\/span>:<span> <span>translate3d(<span>0<\/span>, <span>20<\/span>rpx, <span>0<\/span>)<\/span> <span>rotate(-<span>15<\/span>deg)<\/span><\/span><\/span>; &nbsp;<span>}<\/span><\/span><span style=\"font-family:\"> &nbsp;15% <\/span><span style=\"font-family:\">{ &nbsp; &nbsp;<span><span>transform<\/span>:<span> <span>translate3d(<span>0<\/span>, <span>0<\/span>rpx, <span>0<\/span>)<\/span> <span>rotate(<span>25<\/span>deg)<\/span><\/span><\/span>; &nbsp;<span>}<\/span><\/span><span style=\"font-family:\"> &nbsp;36% <\/span><span style=\"font-family:\">{ &nbsp; &nbsp;<span><span>transform<\/span>:<span> <span>translate3d(<span>0<\/span>, &#8211;<span>20<\/span>rpx, <span>0<\/span>)<\/span> <span>rotate(-<span>20<\/span>deg)<\/span><\/span><\/span>; &nbsp;<span>}<\/span><\/span><span style=\"font-family:\"> &nbsp;50% <\/span><span style=\"font-family:\">{ &nbsp; &nbsp;<span><span>transform<\/span>:<span> <span>translate3d(<span>0<\/span>, &#8211;<span>10<\/span>rpx, <span>0<\/span>)<\/span> <span>rotate(<span>15<\/span>deg)<\/span><\/span><\/span>; &nbsp;<span>}<\/span><\/span><span style=\"font-family:\"> &nbsp;68% <\/span><span style=\"font-family:\">{ &nbsp; &nbsp;<span><span>transform<\/span>:<span> <span>translate3d(<span>0<\/span>, <span>10<\/span>rpx, <span>0<\/span>)<\/span> <span>rotate(-<span>25<\/span>deg)<\/span><\/span><\/span>; &nbsp;<span>}<\/span><\/span><span style=\"font-family:\"> &nbsp;85% <\/span><span style=\"font-family:\">{ &nbsp; &nbsp;<span><span>transform<\/span>:<span> <span>translate3d(<span>0<\/span>, <span>15<\/span>rpx, <span>0<\/span>)<\/span> <span>rotate(<span>15<\/span>deg)<\/span><\/span><\/span>; &nbsp;<span>}<\/span><\/span><span style=\"font-family:\"> &nbsp;100% <\/span><span style=\"font-family:\">{ &nbsp; &nbsp;<span><span>transform<\/span>:<span> <span>translate3d(<span>0<\/span>, <span>20<\/span>rpx, <span>0<\/span>)<\/span> <span>rotate(-<span>15<\/span>deg)<\/span><\/span><\/span>; &nbsp;<span>}<\/span><\/span><span style=\"font-family:\">}<\/span><\/p>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px;font-family:\">\u6ca1\u60f3\u5230keyframes\u4e0d\u4ec5\u6709\u652f\u6301from to\u8fd8\u652f\u6301\u767e\u5206\u6bd4\uff0c\u4e0d\u9519\u3002\u8fd9\u91cc\uff0c\u53ea\u8981\u63a7\u5236\u597d\u5c42\u7ea7\u5173\u7cfb\u3001\u52a8\u753b\u65f6\u957f\u3001\u900f\u660e\u5ea6\u5373\u53ef\u5b9e\u73b0\u4e91\u5c42\u6f02\u6d6e\u3002<\/p>\n<h1>\u603b\u7ed3<\/h1>\n<p style=\"margin: 0px 0px 1.1em;padding: 0px;font-family:\">\u4e0d\u5f97\u4e0d\u8bf4css\u8fd8\u662f\u6709\u5f88\u591a\u52a8\u753b\u7684\uff0c\u4e5f\u6709\u5f88\u591a\u7279\u6548\uff0c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u91cc\u52a0\u4e00\u70b9\u52a8\u753b\uff0c\u80fd\u4f7f\u9875\u9762\u7a0d\u5fae\u7f8e\u89c2\u70b9\u3002\u5f53\u7136\uff0c\u590d\u6742\u70b9\u7684\u52a8\u753b\uff0c\u53ea\u80fd\u6709\u673a\u4f1a\u518d\u66f4\u65b0\u3002<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0a\u5c31\u662f\u8ba9\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u7684\u767b\u9646\u9875\u9762\u6709\u4e91\u6735\u60ac\u6d6e\u7684\u52a8\u6001\u6548\u679c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981: \u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u76ee\u524d\u7684\u706b\u70ed\u7a0b\u5ea6\u76f8\u4fe1\u4e0d\u7528\u591a\u8a00\uff0c\u5c24\u5176\u662f\u8fd1\u671f\u5fae\u4fe1\u56e2\u961f\u5f00\u53d1\u5c0f\u7a0b\u5e8f\u5f88\u591a\u4e4b\u524d\u88ab\u8bdf\u75c5\u7684\u529f\u80fd\uff1a\u6a21\u7cca\u641c\u7d22\uff0c\u9644\u8fd1\u5c0f\u7a0b\u5e8f\u7b49\u3002\u6700\u8fd1\u6709\u7f51\u53cb\u5229\u7528\u7a7a\u4f59\u65f6\u95f4\u7528\u5c0f\u7a0b\u5e8f\u5b9e\u73b0\u4e86\u4e2a\u52a8\u6001\u7684\u767b\u5f55\u9875\u6548\u679c\uff0c\u6240\u4ee5\u4e0b\u9762\u6211\u4eec51\u5c0f\u7a0b\u5e8f\u5c31\u5427\u8fd9\u7bc7\u6587\u7ae0 &#8230; \u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u76ee\u524d\u7684\u706b\u70ed\u7a0b\u5ea6\u76f8\u4fe1\u4e0d\u7528\u591a\u8a00\uff0c\u5c24\u5176\u662f\u8fd1\u671f\u5fae\u4fe1\u56e2\u961f\u5f00\u53d1\u5c0f\u7a0b\u5e8f\u5f88\u591a\u4e4b\u524d\u88ab\u8bdf\u75c5\u7684\u529f\u80fd\uff1a\u6a21\u7cca\u641c\u7d22\uff0c\u9644\u8fd1\u5c0f\u7a0b\u5e8f\u7b49\u3002\u6700\u8fd1\u6709\u7f51\u53cb\u5229\u7528\u7a7a\u4f59\u65f6\u95f4\u7528\u5c0f\u7a0b\u5e8f\u5b9e\u73b0\u4e86\u4e2a\u52a8\u6001\u7684\u767b\u5f55\u9875\u6548\u679c\uff0c\u6240\u4ee5\u4e0b\u9762\u6211\u4eec51\u5c0f\u7a0b\u5e8f\u5c31\u5427\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86\u5229\u7528\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5b9e\u73b0\u767b\u5f55\u9875\u4e91\u5c42\u6f02\u6d6e\u52a8\u753b\u6548\u679c\u7684\u76f8\u5173\u8d44\u6599\u5206\u4eab\u7ed9\u5927\u5bb6\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u501f\u9274\uff0c\u4e0b\u9762\u6765\u4e00\u8d77\u770b\u770b\u5427\u3002 \u524d\u8a00 2017\u5e74\u524d\u7aef\u706b\u4e86\uff0c\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u3001weex\u3001reactnative\uff0c\u5c31\u8fde\u652f\u4ed8\u5b9d\u4e5f\u641e\u8d77\u4e86\u5c0f\u7a0b\u5e8f\uff0c\u603b\u611f\u89c9\u8fd9\u662f\u539f\u751f\u8981\u6bc1\u706d\u7684\u8282\u594f\u554a\uff0c\u6211\u4e5f\u4e58\u70ed\u4e0a\u8f66\u4e07\u4e00\u6ce2\u3002 \u4e0a\u6548\u679c\u56fe(GIF\u52a8\u6001\u56fe) \u5f53\u6211\u770b\u5230\u8fd9\u5f20\u80cc\u666f\u56fe\u7684\u65f6\u5019\uff0c\u5f3a\u8feb\u75c7\u7acb\u9a6c\u6765\u4e86\uff0c\u8fd9\u4e91\u6735\u4e3a\u4ec0\u4e48\u4e0d\u52a8\uff0c\u4e8e\u662f\u5f00\u59cb\u4e86\u4e00\u6ce2\u6298\u817e\u3002 \u77e5\u8bc6\u70b9 \u8ba4\u8bc6animation animation \u5c5e\u6027\u662f\u4e00\u4e2a\u7b80\u5199\u5c5e\u6027\uff0c\u7528\u4e8e\u8bbe\u7f6e\u516d\u4e2a\u52a8\u753b\u5c5e\u6027\uff1a \u503c\u63cf\u8ff0animation-name\u89c4\u5b9a\u9700\u8981\u7ed1\u5b9a\u5230\u9009\u62e9\u5668\u7684 keyframe \u540d\u79f0animation-duration\u89c4\u5b9a\u5b8c\u6210\u52a8\u753b\u6240\u82b1\u8d39\u7684\u65f6\u95f4\uff0c\u4ee5\u79d2\u6216\u6beb\u79d2\u8ba1animation-timing-function\u89c4\u5b9a\u52a8\u753b\u7684\u901f\u5ea6\u66f2\u7ebfanimation-delay\u89c4\u5b9a\u5728\u52a8\u753b\u5f00\u59cb\u4e4b\u524d\u7684\u5ef6\u8fdfanimation-iteration-count\u89c4\u5b9a\u52a8\u753b\u5e94\u8be5\u64ad\u653e\u7684\u6b21\u6570animation-direction\u89c4\u5b9a\u662f\u5426\u5e94\u8be5\u8f6e\u6d41\u53cd\u5411\u64ad\u653e\u52a8\u753b \u8ba4\u8bc6translate \u65b9\u6cd5\u7279\u522b\u591a\uff0c\u672c\u6587\u4e3b\u8981\u75282\u4e2a\u3002&nbsp;+ translate3d(x,y,z)\u5b9a\u4e49 3D \u7f29\u653e\u8f6c\u6362\u3002&nbsp;+ rotate3d(x,y,z,angle) \u5b9a\u4e49 3D \u65cb\u8f6c\u3002 translate3d(1,1,0)&nbsp;\u4f60\u53ef\u4ee5\u7406\u89e3\u4e3a\uff08\u5de6\u53f3\uff0c\u4e0a\u4e0b\uff0c\u5927\u5c0f\uff09\u53d8\u5316\u3002&nbsp;rotate3d(1,1,0,45deg)&nbsp; \u5b9e\u73b0 1.\u4e24\u6735\u4e91\u9664\u4e86\u5927\u5c0f\u548c\u521d\u59cb\u4f4d\u7f6e\u4e0d\u901a\uff0c\u5176\u4ed6\u90fd\u76f8\u540c\u3002 .cloud { &nbsp; position: absolute; &nbsp; z-index: 3; &nbsp; width:99px;height:64px; top: 0;&nbsp; &nbsp; right: 0; &nbsp; bottom: 0; &nbsp; animation: cloud 5s linear infinite; } @keyframes cloud { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-30135","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=30135"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30135\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}