2013-01-15, 01:44 AM
This can be executed better. Instead of making the "display:none" edit to #content you can just do it in one blow using .hide();.
[jQuery] Fade-in Page Load
|
2013-01-15, 01:44 AM
This can be executed better. Instead of making the "display:none" edit to #content you can just do it in one blow using .hide();.
2013-01-15, 03:49 AM
display: none; is CSS, .hide(); is js. result is same.
* effone finds where better part is lying ...
2013-01-15, 05:01 PM
2013-01-15, 05:04 PM
OK. got the point.
Will add as an alternate method. Thanx.
2013-01-15, 05:06 PM
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. |
« Next Oldest | Next Newest »
|