Reputation: 29484
I am using jQuery animate together with CSS3 transition.
The problem is I couldn't find an equivalent smoothing animation. Is there any?
The closest I got is this (jQuery easeOutQuad and CSS3 default easing).
CSS:
#div1 { transition: width 0.5s; }
jQuery:
$('#div2').animate({'width': 200}, 500, 'easeOutQuad');
But they are still different.
I want both to animate together at the same time (using any good easing algorithm). Is that possible?
Upvotes: 6
Views: 2451
Reputation: 61
Try with swing
and ease-in-out
> http://jsfiddle.net/et6Hg/
I think you have better chances :)
Upvotes: 2