![]() Capt. Horatio T.P. Webb |
Cubic-Bezier Transitions SUMMER 2015 |
cubic-Bezier(p1,p2,p3,p4)
Currently: p1, p2, p3, p4 would be:
ball 2's horizontal coordinate
ball 2's vertical coordinate
ball 3's horizontal coordinate
ball 3's vertical coordinate
the current CSS property is:
cubic-Bezier(,,,)
img.captain {transition-property: width; transition-duration: 4s; width:50px;} img.captain:hover {width:250px;}
The HTML for the image above is:
<img src="captsm.gif" id="gb" class="captain" style="position: absolute;top:500px;left:300px;">
document.getElementById("gb").style.transitionTimingFunction="cubic-Bezier(,,,)";You can use the cubic-Bezier property value in CSS for the HTML element to be transitioned.
transition-timing-function:cubic-Bezier(,,,);