Skip to content
Projetos

bas2k/jquery.appear

Ver no GitHub

Sobre

Mimics a custom 'appear' event, which fires when an element scrolls into view or otherwise becomes visible to the user.

Ferramentas de desenvolvimento

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
-1
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

jQuery plugin to call a function when an element appears

Usage

Mimics a custom 'appear' event, which fires when an element scrolls into view or otherwise becomes visible to the user.

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

This plugin can be used to prevent unnecessary requests for content that's hidden or outside the viewable area.

Usage with additional options

$('#foo').appear(function() {
  $(this).text('Hello world');
},{accX: 50, accY: 100});

Will fire 'appear' event with accuracy 50px in X and 100px in Y

http://bas2k.ru/

Explore projetos relacionados

Carregando…