{"id":211,"date":"2016-01-12T08:54:22","date_gmt":"2016-01-12T08:54:22","guid":{"rendered":"http:\/\/codebee.co.th\/labs\/?p=211"},"modified":"2016-10-23T11:56:24","modified_gmt":"2016-10-23T11:56:24","slug":"%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%97%e0%b8%b3-html-animation-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-greensock-tween-js","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%97%e0%b8%b3-html-animation-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-greensock-tween-js\/","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 html animation \u0e14\u0e49\u0e27\u0e22 greensock tween js"},"content":{"rendered":"<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 html animation \u0e14\u0e49\u0e27\u0e22 greensock tween js<\/strong><\/p>\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 <a href=\"http:\/\/codebee.co.th\/labs\/examples\/greensock-tween-js\/\" title=\"\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33 html animation &#038; movement\" target=\"_blank\">http:\/\/codebee.co.th\/labs\/examples\/greensock-tween-js\/<\/a><\/p>\n<p>Greensock Tween \u0e40\u0e1b\u0e47\u0e19 tween engine \u0e17\u0e35\u0e48\u0e41\u0e15\u0e48\u0e40\u0e14\u0e34\u0e21\u0e40\u0e01\u0e34\u0e14\u0e08\u0e32\u0e01\u0e20\u0e32\u0e29\u0e32 action script \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e1a\u0e19\u0e41\u0e1f\u0e23\u0e0a<br \/>\n\u0e15\u0e48\u0e2d\u0e21\u0e32\u0e44\u0e14\u0e49\u0e16\u0e39\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e01\u0e31\u0e1a\u0e20\u0e32\u0e29\u0e32 javascript \u0e08\u0e36\u0e07\u0e40\u0e23\u0e35\u0e22\u0e01\u0e27\u0e48\u0e32 greensock tween js<br \/>\n<!--more--><\/p>\n<p>\u0e08\u0e38\u0e14\u0e40\u0e14\u0e48\u0e19\u0e02\u0e2d\u0e07 Greensock tween \u0e04\u0e37\u0e2d \u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e07\u0e48\u0e32\u0e22 \u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e25\u0e32\u0e01\u0e2b\u0e25\u0e32\u0e22\u0e41\u0e25\u0e30\u0e22\u0e37\u0e14\u0e2b\u0e22\u0e38\u0e48\u0e19\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e21\u0e32\u0e01 \u0e46<br \/>\n\u0e41\u0e25\u0e30\u0e17\u0e35\u0e48\u0e2a\u0e33\u0e04\u0e31\u0e0d \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e41\u0e1a\u0e1a\u0e1f\u0e23\u0e35 \u0e46 \u0e44\u0e21\u0e48\u0e21\u0e35\u0e04\u0e48\u0e32\u0e43\u0e0a\u0e49\u0e08\u0e48\u0e32\u0e22<\/p>\n<p><strong>\u0e40\u0e23\u0e34\u0e48\u0e21\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Greensock Tween <\/strong><\/p>\n<p>1. download greensock tween js \u0e44\u0e14\u0e49\u0e17\u0e35\u0e48 <a href=\"https:\/\/greensock.com\" title=\"greensock tween js\" target=\"_blank\">https:\/\/greensock.com<\/a><\/p>\n<p>2. \u0e2a\u0e23\u0e49\u0e32\u0e07\u0e44\u0e1f\u0e25\u0e4c index.html \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e04\u0e23\u0e31\u0e1a\u0e41\u0e25\u0e49\u0e27\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 TweenMax.min.js \u0e41\u0e25\u0e30 \u0e44\u0e1f\u0e25\u0e4c jquery.min.js<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 greensock tween js\" >&lt;script type=\"text\/javascript\" src=\"js\/greensock\/TweenMax.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.1\/jquery.min.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>3. \u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e40\u0e23\u0e32\u0e08\u0e30\u0e25\u0e2d\u0e07\u0e17\u0e33 tween \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a\u0e23\u0e39\u0e1b\u0e14\u0e39\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e2a\u0e23\u0e49\u0e32\u0e07 tag img \u0e21\u0e32\u0e43\u0e19 body \u0e41\u0e25\u0e30\u0e15\u0e31\u0e49\u0e07\u0e0a\u0e37\u0e48\u0e2d class \u0e27\u0e48\u0e32 myimg<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 greensock tween js\" ><img decoding=\"async\" class=\"myimg\" src=\"greensock-tween-js.png\"\/><\/pre>\n<p>4. \u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 javascript \u0e43\u0e2b\u0e49\u0e04\u0e25\u0e32\u0e2a myimg \u0e21\u0e35 rotation \u0e2b\u0e21\u0e38\u0e19\u0e44\u0e1b\u0e17\u0e35\u0e48 50 \u0e2d\u0e07\u0e28\u0e32 \u0e41\u0e25\u0e30\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e17\u0e35\u0e48 0 \u0e2d\u0e07\u0e28\u0e32\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e40\u0e14\u0e34\u0e21<br \/>\n   \u0e08\u0e30\u0e44\u0e14\u0e49\u0e42\u0e04\u0e4a\u0e14\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 greensock tween js\" ><script>\r\nstart();\r\nfunction start()\r\n{\r\n\tTweenLite.to($(\".myimg\"), 1, {css:{rotation:50},onComplete:repeat}); \t\r\n}\r\nfunction repeat()\r\n{\r\n\tTweenLite.to($(\".myimg\"), 1, {css:{rotation:-50},onComplete:start}); \t\r\n}\r\n\r\n<\/script><\/pre>\n<p>\u0e2b\u0e23\u0e37\u0e2d\u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e04\u0e25\u0e32\u0e2a myimg \u0e2b\u0e21\u0e38\u0e19\u0e41\u0e1a\u0e1a\u0e15\u0e48\u0e2d\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07 \u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e44\u0e1b\u0e43\u0e0a\u0e49 TweenMax \u0e41\u0e25\u0e30\u0e43\u0e0a\u0e49<br \/>\nproperty repeat \u0e02\u0e2d\u0e07 TweenMax \u0e40\u0e02\u0e49\u0e32\u0e21\u0e32\u0e0a\u0e48\u0e27\u0e22 \u0e08\u0e30\u0e44\u0e14\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 greensock tween js\" >\r\nstart();\r\nfunction start()\r\n{\r\n\tTweenMax.to($(\".myimg\"), 1, {repeatDelay:0,repeat:10,css:{rotation:360}}); \t\r\n}\r\n<\/pre>\n<p>\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23 tween \u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48 property ease \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a tween<br \/>\n\u0e40\u0e23\u0e34\u0e48\u0e21\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49 EasePack.min.js<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 greensock tween js\" >\r\n<script type=\"text\/javascript\" src=\"js\/greensock\/EasePack.min.js\"><\/script>\r\n<\/pre>\n<p>\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e27\u0e35\u0e19<\/p>\n<pre class=\"lang:default decode:true \" title=\"\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 greensock tween js\" >\r\nTweenMax.to($(\".myimg\"), 1, {repeatDelay:0,repeat:10,css:{rotation:360},ease:Back.easeInOut}); \t\r\n<\/pre>\n<p><strong>\u0e2a\u0e23\u0e38\u0e1b\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/strong><br \/>\n\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e04\u0e48 rotation \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16 tween \u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07 x,y \u0e2b\u0e23\u0e37\u0e2d scaleX, scaleY \u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<br \/>\n\u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e21\u0e49\u0e41\u0e15\u0e48 CSS properties \u0e1e\u0e27\u0e01 background-color, opacity \u0e41\u0e25\u0e30\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e27\u0e35\u0e19\u0e44\u0e14\u0e49\u0e40\u0e0a\u0e48\u0e19\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 <a href=\"http:\/\/codebee.co.th\/labs\/examples\/greensock-tween-js\/\" title=\"\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e17\u0e33 html animation &#038; movement\" target=\"_blank\">http:\/\/codebee.co.th\/labs\/examples\/greensock-tween-js\/<\/a><\/p>\n<p><strong>\u0e42\u0e04\u0e4a\u0e14\u0e17\u0e35\u0e48\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27<\/strong><\/p>\n<pre class=\"lang:default decode:true \" title=\"\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 greensock tween js\" >\r\n<html>\r\n<head>\r\n<title>Greensock Tween JS<\/title>\r\n\r\n<script type=\"text\/javascript\" src=\"js\/greensock\/TweenMax.min.js\"><\/script>\r\n<script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.1\/jquery.min.js\"><\/script>\r\n\r\n<\/head>\r\n<style>\r\nbody{\r\n\ttext-align:center;\r\n\tmargin-top:100px;\r\n}\r\n<\/style>\r\n<body>\r\n<img decoding=\"async\" width=\"300\" class=\"myimg\" src=\"greensock-tween-js.png\"\/>\r\n<\/body>\r\n\r\n<script>\r\nstart();\r\nfunction start()\r\n{\r\n\tTweenLite.to($(\".myimg\"), 1, {css:{rotation:50},onComplete:repeat}); \t\r\n}\r\nfunction repeat()\r\n{\r\n\tTweenLite.to($(\".myimg\"), 1, {css:{rotation:-50},onComplete:start}); \t\r\n}\r\n\r\n<\/script>\r\n<\/html>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33 html animation \u0e14\u0e49\u0e27\u0e22 greensock tween js \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 http:\/\/codebee.co.th\/labs\/examples\/greensock-tween-js\/ Greensock Tween \u0e40\u0e1b\u0e47\u0e19 tween engine \u0e17\u0e35\u0e48\u0e41\u0e15\u0e48\u0e40\u0e14\u0e34\u0e21\u0e40\u0e01\u0e34\u0e14\u0e08\u0e32\u0e01\u0e20\u0e32\u0e29\u0e32 action script \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e1a\u0e19\u0e41\u0e1f\u0e23\u0e0a \u0e15\u0e48\u0e2d\u0e21\u0e32\u0e44\u0e14\u0e49\u0e16\u0e39\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e01\u0e31\u0e1a\u0e20\u0e32\u0e29\u0e32 javascript&#8230;<\/p>\n","protected":false},"author":1,"featured_media":681,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[46],"tags":[134,34,33,933,371,614,43,44,549,501,837,935],"class_list":{"0":"post-211","1":"post","2":"type-post","3":"status-publish","4":"format-video","5":"has-post-thumbnail","6":"hentry","7":"category-website-development-","8":"tag-greensock-tween","9":"tag--html-animation","10":"tag--movement","11":"tag-933","12":"tag-371","13":"tag-614","14":"tag-43","15":"tag-44","16":"tag-549","17":"tag-501","19":"tag-935","20":"post_format-post-format-video"},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":12,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"predecessor-version":[{"id":301,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/211\/revisions\/301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/681"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}