Biblioteca JavaScript para animaciones de desplazamiento CSS3-Kissui. scrollanim
| Autor: | usablica |
|---|---|
| Views Total: | 2,307 |
| Sitio oficial: | Ir a la web |
| Actualizado: | August 10, 2016 |
| Licencia: | MIT |
Vista prévia
Descripción
Kissui. scrollanim es una biblioteca de JavaScript ligera y de dependencia cero que le permite agregar más de 75 animaciones con tecnología CSS3 a un determinado elemento dependiendo de su posición actual en relación con la ventana del navegador cuando se desplaza.
Funcionamiento
Agregue scrollanim. min. CSS y scrollanim. min. js a su página web.
<link rel="stylesheet" href="build/scrollanim.min.css"> <script src='build/scrollanim.js'></script>
Utilice el atributo ' Data-Kui-Anim ' para especificar el tipo de animación cuando el elemento se desplaza a la vista.
<div data-kui-anim="fadeIn">Show this with fade-in</div>
O usa JavaScript como sigue:
kissuiScrollAnim.add(element, {
'in': 'fadeIn'
}); Determine en qué posición debe activarse la animación.
/*
in - in the viewport
out - ot in the viewport
middle - center aligned element (vertically)
center - center aligned element (horizontally)
top - at the top of the page
bottom - at the bottom of the page
left - at the left side of the page
right - at the right side of the page
*/
kissuiScrollAnim.add(element, {
'center middle': 'fadeIn'
}); Animaciones admitidas:
- bounce
- flash
- pulse
- rubberBand
- shake
- headShake
- swing
- tada
- wobble
- jello
- bounceIn
- bounceInDown
- bounceInLeft
- bounceInRight
- bounceInUp
- bounceOut
- bounceOutDown
- bounceOutLeft
- bounceOutRight
- bounceOutUp
- fadeIn
- fadeInDown
- fadeInDownBig
- fadeInLeft
- fadeInLeftBig
- fadeInRight
- fadeInRightBig
- fadeInUp
- fadeInUpBig
- fadeOut
- fadeOutDown
- fadeOutDownBig
- fadeOutLeft
- fadeOutLeftBig
- fadeOutRight
- fadeOutRightBig
- fadeOutUp
- fadeOutUpBig
- flipInX
- flipInY
- flipOutX
- flipOutY
- lightSpeedIn
- lightSpeedOut
- rotateIn
- rotateInDownLeft
- rotateInDownRight
- rotateInUpLeft
- rotateInUpRight
- rotateOut
- rotateOutDownLeft
- rotateOutDownRight
- rotateOutUpLeft
- rotateOutUpRight
- hinge
- rollIn
- rollOut
- zoomIn
- zoomInDown
- zoomInLeft
- zoomInRight
- zoomInUp
- zoomOut
- zoomOutDown
- zoomOutLeft
- zoomOutRight
- zoomOutUp
- slideInDown
- slideInLeft
- slideInRight
- slideInUp
- slideOutDown
- slideOutLeft
- slideOutRight
- slideOutUp





