単に変形するのではなく、アニメーション化しようとしていると思います。変換はアニメーションではなく、最終結果を表示するだけです。
CSS を使用したキーフレーム アニメーションの概要は次のとおりです: http://css-tricks.com/snippets/css/webkit-keyframe-animation-syntax/
アニメーションを div に適用する方法を示すために、すぐにモックアップしたバージョンを次に示します: http://jsfiddle.net/donovanh/rhEnY/
注: プレフィックス
^ 上記には、主要なブラウザーのプレフィックスと、プレフィックスが削除された場合のプレフィックスなしのバージョンが含まれています。特定のプレフィックス (-moz など) に依存しないことが重要です。これは、CSS が適切にサポートされ、プレフィックスが削除されるまでの一時的な手段としてのみ使用されるためです。
JSFiddle が例を削除した場合の CSS は次のとおりです。
#sun {
background-color: yellow;
border: 5px solid black;
border-radius: 20px;
width:50px;
height:50px;
margin:20px;
-webkit-animation: rotateAnimation 5s infinite linear;
-moz-animation: rotateAnimation 5s infinite linear;
-ms-animation: rotateAnimation 5s infinite linear;
-o-animation: rotateAnimation 5s infinite linear;
animation: rotateAnimation 5s infinite linear;
}
@-webkit-keyframes rotateAnimation {
0% { -webkit-transform:rotate(0);}
100% { -webkit-transform:rotate(360deg);}
}
@-moz-keyframes rotateAnimation {
0% { -moz-transform:rotate(0);}
100% { -moz-transform:rotate(360deg);}
}
@-ms-keyframes rotateAnimation {
0% { -ms-transform:rotate(0);}
100% { -ms-transform:rotate(360deg);}
}
@-o-keyframes rotateAnimation {
0% { -o-transform:rotate(0);}
100% { -o-transform:rotate(360deg);}
}
@keyframes rotateAnimation {
0% { transform:rotate(0);}
100% { transform:rotate(360deg);}
}