My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
API  
A summary of the API
Phase-Implementation, Featured
Updated Jun 12, 2009 by michael.hixson@gmail.com

appear(fn)

Call a function fn when an element first appears.

$('#foo').appear(function() {
  $(this).text('Hello world');
});

appear(fn, options)

Call a function fn when an element appears, with the following options.

  • one whether to fire the event one time only, or every time it appears (default: true)
  • data arbitrary data to be passed as arguments to the function attached to the event (default: undefined)
$('#foo').appear(function(event, a, b, c) {
  $(this).text(a + ' ' + b + ' ' + c);
}, { 
  one: false,
  data: [1, 'bar', true]
});

appear()

Fire an element's appear event.

$('#foo').appear();
Comment by rafael.c...@gmail.com, Oct 14, 2009

ffssf

Comment by jslayba...@gmail.com, Apr 26, 2010

This is AWESOME! Perfect for a project I'm working on where tasks appear on a timeline (a huge timeline) as they move through it. THANKS!

Comment by Mustafa....@wellplayed.org, Aug 6, 2011

This is great! Now only if there was a corresponding disappear event!

Comment by gel...@gmail.com, Jan 5, 2012

looks very promising, but "disappear" is a must!

Comment by per.swan...@gmail.com, Jan 5, 2012

Very useful, but beware this is heavy on the CPU while scrolling

Comment by max.chir...@gmail.com, Apr 15, 2012

I'd be interested in a "disappeared" event being triggered as well.

Comment by arno.zw...@e-office.com, Apr 23, 2012

Great, please add the scrolling direction when appearing (move up/down/left/right)


Sign in to add a comment
Powered by Google Project Hosting