News for hackers. Stuff that matters.
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by jffry on Friday November 08, 2013 @07:16AM (#6695673)

  DOWNLOAD 
  neatshow.js 1,335 bytes
Could you find it in your heart to add two more bytes somewhere?
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by pearjuice on Friday November 08, 2013 @08:00AM (#6695798)
Sure, just slap two more bytes on it for the sake of meta.
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by jffry on Friday November 08, 2013 @08:04AM (#6695813)
It's not like you couldn't ensure that it got minified away or anything...
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by pearjuice on Friday November 08, 2013 @10:50AM (#6696763)
Then why bother? Do you have OCD?
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by some1else on Friday November 08, 2013 @08:08AM (#6695820)
img { opacity: 0; transition: opacity .2s; }; img.loaded { opacity: 1; };

$(function(){ $('img').load(function(){this.addClass('loaded')}) });

Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by rsiqueira on Friday November 08, 2013 @01:18PM (#6697990)
It works with $(this).addClass instead of this.addClass: $('img').load(function(){ $(this).addClass('loaded')});
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by venticco on Friday November 08, 2013 @07:30AM (#6695706)
Why no CSS transitions?
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by Kiro on Friday November 08, 2013 @07:16AM (#6695674)
The fade is lagging for me (Macbook Pro, Chrome).
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by philliphaydon on Friday November 08, 2013 @07:36AM (#6695725)
Does this load in only when they are visible in the viewable area, or do they fade in everywhere?
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by marutib on Friday November 08, 2013 @07:41AM (#6695742)
jQuery lazy load does the same thing and has been around for long.

http://jquery.eisbehr.de/lazy/index.php?c=effects

Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by 4lun on Friday November 08, 2013 @07:59AM (#6695797)
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.
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by philliphaydon on Friday November 08, 2013 @09:29AM (#6696157)
In that case Lazy load is better IMO.
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by splatzone on Friday November 08, 2013 @07:25AM (#6695696)
Nice work :)
Re:NeatShow.js : A jQuery plugin to fade in images beautiful... by JensRantil on Friday November 08, 2013 @06:46AM (#6695579)
Why not just use CSS3 animation?