I have to perform two animations on an object simultaneously.
For a number of reasons, I want to use jQuery for the vertical animation and CSS3 for the horizontal one.
On jQuery side, swing
easing works great:
swing: function (a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}
I'm looking for a way to express this easing function in CSS3 transition.
If it is impossible, I'm looking for an easing function (e.g. a Bézier curve) that is most similar to swing
and can be used both in jQuery and CSS3. Please include link to any required plugins.