Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Loads and fades in image */
- function loadImage(image, callback) {
- if (typeof callback == 'undefined') { callback = function(){}; }
- if (image.attr("src") == "images/core/transparent.gif") {
- image.animate({opacity:0}, 50, function() {
- image.bind('load', function(){
- image.animate({opacity:1}, 1000).css({height:'auto'});
- callback();
- });
- image.attr("src", image.attr("data-original"));
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement