<div class="container">
<img src="bg_img.jpg" />
<div class="header">Title Text</div>
<div class="bottom">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, to...
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, to...
</div>
</div>
jQuery is simply a javascript library. Yes, there are scripts which do things which are not easily done in css and/or html. But it’s not intended to do the same thing. Especially with the advances in css that have occurred the last couple years. I’d argue that jQuery really is over engineered in modern terms.
I have no problems with you learning jQuery - I’m just saying to learn to use it for what it’s intended. And not to do something you can do with base functionality without scripting. It’s faster, more accessible, and less maintenance in the long run.
And, I did see the performance of the css vs the jQuery version. The css version was smooth and accurate, where the jQuery version was not. Granted, the script isn’t correct, but I doubt you’re going to get it to a state which will overtake the native css version.
But these browsers are reall buggy. You said that CSS version is smoother than the Jquery version. But in my latest Chrome (Win 7) the Jquery version is butter smooth and the CSS version is chirpy.
All my browsers show the complete opposite and the CSS version is ultra smooth and the js version is choppy. JS can never really compete with css animations as the CSS animations are hardware accelerated.
There are of course exceptions and generalisations but 9 times out of 10 a css animation will be smoother if done properly.
All the jquery animations are really choppy and I tend to use velocity.js instead for smoother animation but css still wins out if it can do the required effect.