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.
easie
, but that's just personal preference. You might want to tryease-in-out
in your CSS3 for a swing-ish animation. – Levitanswing
with CSS3. How does using a jQuery plugin to "simulate" CSS easing help you, when you could just use the original jQueryswing
in the first place? – Impermanentswing
in CSS3 so that's the reason I wrote about these plugins in comments. – Teetotumswing
in CSS3 would be theease-out
built into the CSS3transition-timing-function
property. – Impermanentswing
that can be used both with jQuery and CSS3, with links to any relevant plugins. – Teetotum