Skip to content

Latest commit

 

History

History
executable file
·
30 lines (22 loc) · 766 Bytes

README.md

File metadata and controls

executable file
·
30 lines (22 loc) · 766 Bytes

bounce-in-animation

Polymer web component for a bounce in effect.

Install

bower install --save mbykovskyy/bounce-in-animation

Usage

<link rel="import" href="bounce-in-animation.html">

<div id="box"></div>
<bounce-in-animation id="bounce-in" duration="500" easing="ease-out"></bounce-in-animation>

<script>
  document.addEventListener('polymer-ready', function() {
    var animation = document.getElementById('bounce-in');
    animation.target = document.getElementById('box');
    animation.play();
  });
</script>

See component page for details and demo.