Is there a way to customize transforms and transitions in CSS? For example, in this Jsfiddle, I'd like to for the first 2 seconds, transform 110 degrees, then for 4 seconds, transform 200 degrees.
http://jsfiddle.net/jzhang172/b5zun436/
.box {
border-style: solid;
border-width: 1px;
display: block;
width: 100px;
height: 100px;
background-color: #0000FF;
-webkit-transition: width 2s, height 2s, background-color 2s, -webkit-transform 2s;
transition: width 2s, height 2s, background-color 2s, transform 2s;
}
.box:hover {
background-color: #FFCCCC;
width: 200px;
height: 200px;
-webkit-transform: rotate(110deg);
transform: rotate(110deg);
}
<p>CSS question: IS there a way to customize the transform? (i.e., transform box to 110 deg, duration 2 seconds and then transform box another 180 degrees, duration 5 seconds. </p>
<div class="box"></div>