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();
ffssf
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!
This is great! Now only if there was a corresponding disappear event!
looks very promising, but "disappear" is a must!
Very useful, but beware this is heavy on the CPU while scrolling
I'd be interested in a "disappeared" event being triggered as well.
Great, please add the scrolling direction when appearing (move up/down/left/right)