J82
J82

Reputation: 2387

loading gif before while image loads, then image fades in

Here's the jsfiddle I've been messing around with: http://jsfiddle.net/Hrs2a/

Basically, I'm trying to get the loading image to come up while the image is loading and then have the image fade in when it's fully loaded.

I tried to follow the tutorial here but couldn't get it to work. What am I doing wrong?

Upvotes: 0

Views: 3197

Answers (1)

mattsven
mattsven

Reputation: 23303

How is this supposed to work, when the img never gets into the DOM?

EDIT:

Look at this fiddle I made: http://jsfiddle.net/9VmWA/ I think it does what you want.

Upvotes: 1

Related Questions