NeatShow.js : A jQuery plugin to fade in images beautifully on your website (stevepapa.com) 16 points by aniketpant 12y ago ↗ HN
[–] jffry 12y ago ↗ DOWNLOAD neatshow.js 1,335 bytes Could you find it in your heart to add two more bytes somewhere? [–] pearjuice 12y ago ↗ Sure, just slap two more bytes on it for the sake of meta. [–] jffry 12y ago ↗ It's not like you couldn't ensure that it got minified away or anything... [–] pearjuice 12y ago ↗ Then why bother? Do you have OCD?
[–] pearjuice 12y ago ↗ Sure, just slap two more bytes on it for the sake of meta. [–] jffry 12y ago ↗ It's not like you couldn't ensure that it got minified away or anything... [–] pearjuice 12y ago ↗ Then why bother? Do you have OCD?
[–] jffry 12y ago ↗ It's not like you couldn't ensure that it got minified away or anything... [–] pearjuice 12y ago ↗ Then why bother? Do you have OCD?
[–] philliphaydon 12y ago ↗ Does this load in only when they are visible in the viewable area, or do they fade in everywhere?
[–] marutib 12y ago ↗ jQuery lazy load does the same thing and has been around for long.http://jquery.eisbehr.de/lazy/index.php?c=effects [–] 4lun 12y ago ↗ Lazy load waits until the images are visible (or just about to be) in the viewport before loading the actual image, this doesn't appear to do that. [–] philliphaydon 12y ago ↗ In that case Lazy load is better IMO.
[–] 4lun 12y ago ↗ Lazy load waits until the images are visible (or just about to be) in the viewport before loading the actual image, this doesn't appear to do that. [–] philliphaydon 12y ago ↗ In that case Lazy load is better IMO.
[–] some1else 12y ago ↗ img { opacity: 0; transition: opacity .2s; }; img.loaded { opacity: 1; };$(function(){ $('img').load(function(){this.addClass('loaded')}) }); [–] rsiqueira 12y ago ↗ It works with $(this).addClass instead of this.addClass: $('img').load(function(){ $(this).addClass('loaded')});
[–] rsiqueira 12y ago ↗ It works with $(this).addClass instead of this.addClass: $('img').load(function(){ $(this).addClass('loaded')});
14 comments
[ 2.8 ms ] story [ 36.4 ms ] threadhttp://jquery.eisbehr.de/lazy/index.php?c=effects
$(function(){ $('img').load(function(){this.addClass('loaded')}) });