I am trying to avoid using animation because it is slower than CSS3 animations.
I was just wondering if using css method still being faster than animation but slower than a direct CSS3 animation with transform3d.
$(this).animate({'opacity' : 'show', 'top' : topPosition+'px'});
vs
$(this).css('top', topPosition+'px');
As you can see, I can not directly use css3 transform3d because i need the position parameter, which is dynamically generated.
CSS
#flashMessage{
position: relative;
transition: all 1.4s ease-in-out;
-webkit-transition: all 1.4s ease-in-out; /** Chrome & Safari **/
-moz-transition: all 1.4s ease-in-out; /** Firefox **/
-o-transition: all 1.4s ease-in-out; /** Opera **/
}