I researched a couple different sites and have tried a few scripts, but is there a simple script I can add to a page to have the #content images fade in while they load?
instead of seeing the images jump around while they load?
I tried the css and got it to sort of work, but I'm not sure how to insert the html because it is for multiple photo posts. Is there a way to insert it properly into the {block:Photo} post area?
The concept I am going for is the page starts out almost hidden then fades in to opacity:1 while loading, but whenever I try adding a script it just doesn't apply to the layout. Is there something overriding it...maybe?
This has been the closest anyone has come to getting this to work, when the page loads i see the fadein effect on one of the elements see here, but the actual photos still aren't showing up once the page loads.
instead of seeing the images jump around while they load?
html:
http://jsfiddle.net/UtnHS/
Just set the content's opacity to zero, then in your Masonry callback set it to 1.
You'll need to change the selectors to whatever you are using - this is just from a theme I did.
what cms/blog are you using?
This what I have:
The concept I am going for is the page starts out almost hidden then fades in to opacity:1 while loading, but whenever I try adding a script it just doesn't apply to the layout. Is there something overriding it...maybe?
.show(), when the image has been loaded, trigger the masonry:PS:Add
clear:bothto your pagination:This has been the closest anyone has come to getting this to work, when the page loads i see the fadein effect on one of the elements see here, but the actual photos still aren't showing up once the page loads.
so does that mean this is right?
I can't get this code to work. (please correct it for me, I'm not sure which part needs changing, I'v followed everything here!)
:)
I can't even paste it in here properly. :/
$(document).imagesLoaded(function(){ $(".post").css("opacity", "0.01"); $(".post").fadeTo(500, 1).show(); } #pagination { ... clear:both; });