1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 (function(){ if(typeof jQuery == 'undefined')return; jQuery.noConflict(); jQuery(function($){ //対象の要素を取得 var twObj = $('#obj'); twObj.text('クリック'); twObj.click(function(){ twObj.text('クリック'); //クリックしたら実行 init(); }); //要素をわかりやすくCSS適応 twObj.css({ 'position':
![【JavaScript】高機能アニメーションライブラリtween.jsの使い方](https://cdn-ak-scissors.b.st-hatena.com/image/square/e972fd308ce44286ec31ded753cdcd8c56cf60e3/height=288;version=1;width=512/https%3A%2F%2Fblog.cotapon.org%2Fimages%2Ftweenjs.jpg)