Java Reference
In-Depth Information
#square {
margin: 100px;
width: 100px;
height: 100px;
background: #cc0;
animation: spin 4s linear infinite;
@keyframes spin { from {
transform:rotate(360deg); } to
{ transform:rotate(0deg); } }
In general, it is typically better to use CSS for any animation effects, al-
though there are times when JavaScript will be the better solution.
Search WWH ::

Custom Search