自分の練習用です。 ボタンを押すと、回転点が増えます。 いっぱい作ると、沢山の点がウネウネ動いて気持ち悪いですww /*参考サイト:http://amachang.sakura.ne.jp/misc/ut/*/ var el = document.getElementById('obj'); el.style.position = 'absolute'; el.style.top = '0px'; var sineWaveX = function(x) { return (Math.sin(x * Math.PI) / 2) + 0.5; }; var sineWaveY = function(y){ return (Math.cos(y * Math.PI) / 2) + 0.5; }; function circleMove(w,h,element) { var x = 0; var
![三角関数を使ったjavascriptアニメーション - jsdo.it - Share JavaScript, HTML5 and CSS](https://cdn-ak-scissors.b.st-hatena.com/image/square/31b26c760c7a5a17aeca9678da7c84da96f13d89/height=288;version=1;width=512/http%3A%2F%2Fjsdo-static-contents.s3.amazonaws.com%2Fimages%2Fcapture%2Fw%2Fk%2FA%2FwkAPf.jpg%3Ft%3D1343018402)