Checking CSS transitions
by Anton
HTML
<div class="status">
<span class="pointer" style="left:60px;"></span>
</div>
CSS
.status
{
position: relative;
height: 25px;
width: 120px;
background: #ccc;
cursor: default;
}
.status .pointer
{
position: absolute;
height: 9px;
width: 15px;
background: #444;
bottom: 5px;
-webkit-transition: left 1.5s;
-moz-transition: left 1.5s;
-ms-transition: left 1.5s;
-o-transition: left 1.5s;
transition: left 1.5s;
}
.status:hover .pointer {
left: 0 !important;
}
JavaScript
// How can I initiate transition on page load?