Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Good or bad practice to hide elements with CSS, as opposed to doing it with jQuery… Re: Good or bad practice to hide elements with CSS, as opposed to doing it with jQuery…

#135371
Anonymous
Inactive

coincidentally i was just thinking about this exact same thing a few days ago. I personally think it’s best to do anything with CSS as apposed to Jquery. I found out that CSS animations and transitions run a little smoother than Jquery’s .animate(). And CSS also has shorter code to do the same thing jQuery does. Not that it will mean much of a difference but the browser reads shorter code faster. So go with CSS whenever possible, and if not go with jQuery.