MyBB Community Forums

Full Version: [jQuery] Fade-in Page Load
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
This can be executed better. Instead of making the "display:none" edit to #content you can just do it in one blow using .hide();.
display: none; is CSS, .hide(); is js. result is same.
* effone finds where better part is lying ...
(2013-01-15, 03:49 AM)effone Wrote: [ -> ]display: none; is CSS, .hide(); is js. result is same.
* effone finds where better part is lying ...

I didn't think it was that hard to understand
It's much easier to add one snippet of Js (fade&hide) then it is to do an HTML edit and Js edit
OK. got the point.
Will add as an alternate method. Thanx.
So what happens if you visit the page with javascript disabled?
It will not work. That is the good point of Jason L. as per my understanding.

If we hide it through js and fade in show on page load, in case of js disabled the whole thing will not work and the site will appear as normal.

But if we hide it through CSS, js disabled case will fail to set it visible and the site will remain content hidden after page load - which is not expected.
Pages: 1 2