Sitelet https://web.archive.org/web/20201217125142im_/https://github.com/koffiisen/Animate.js
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

README.md

Animate.js

Every feedback is welcome!

animate.js is a simple javascript library to animate any html element

The inspiration come from this library Animate.css

Demo

Html Animator demo ***

Installation

Download animate.min.js in dist folder:

$ dist/animate.min.js

Usage

To use Animate.js in your website, simply drop the javascript into your document's <body>

<body>
  <div id="domElement"></div>
  <!-- -->
  <script src="dist/animate.min.js"></script>
</body>

or use with jquery

<body>
  <!-- -->
  <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
  <script src="dist/animate.min.js"></script>
</body>

Available Animator (89)

bounce flash pulse headShake wobble jello bounceIn bounceInDown bounceInLeft bounceInRight bounceInUp bounceOut bounceOutDown bounceOutUp fadeIn fadeInDown fadeInDownBig fadeInLeft fadeInLeftBig fadeInRight fadeInRightBig fadeInUp fadeInUpBig fadeOutDown fadeOutDownBig fadeOutLeftBig fadeOutRightBig fadeOutUp fadeOutUpBig flipInX flipInY flipOutX flipOutY lightSpeedIn lightSpeedOut rotateIn rotateInDownLeft rotateInDownRight rotateInUpLeft rotateInUpRight rotateOut rotateOutDownLeft rotateOutDownRight rotateOutUpLeft rotateOutUpRight jackInTheBox rollIn rollOut zoomInDown zoomInLeft zoomInRight zoomInUp zoomOutDown zoomOutLeft zoomOutRight zoomOutUp slideInDown slideInLeft slideInRight slideInUp slideOutDown slideOutLeft slideOutRight slideOutUp heartBeat rollOutRight rollOutLeft rubberBand zoomOut zoomIn fadeOut fadeOutRight fadeOutLeft fadeOutTop fadeOutBottom horizontalFlip verticalFlip bounceOutBottom bounceOutTop bounceOutLeft bounceOutRight rotateClockwise rotateAntiClockwise tada moveIn moveOut swing shake hinge
bounce flash pulse headShake wobble jello bounceIn bounceInDown bounceInLeft bounceInRight bounceInUp bounceOut bounceOutDown bounceOutUp fadeIn fadeInDown fadeInDownBig fadeInLeft fadeInLeftBig fadeInRight fadeInRightBig fadeInUp fadeInUpBig fadeOutDown fadeOutDownBig fadeOutLeftBig fadeOutRightBig fadeOutUp fadeOutUpBig flipInX flipInY flipOutX flipOutY lightSpeedIn lightSpeedOut rotateIn rotateInDownLeft rotateInDownRight rotateInUpLeft rotateInUpRight rotateOut rotateOutDownLeft rotateOutDownRight rotateOutUpLeft rotateOutUpRight jackInTheBox rollIn rollOut zoomInDown zoomInLeft zoomInRight zoomInUp zoomOutDown zoomOutLeft zoomOutRight zoomOutUp slideInDown slideInLeft slideInRight slideInUp slideOutDown slideOutLeft slideOutRight slideOutUp heartBeat rollOutRight rollOutLeft rubberBand zoomOut zoomIn fadeOut fadeOutRight fadeOutLeft fadeOutTop fadeOutBottom horizontalFlip verticalFlip bounceOutBottom bounceOutTop bounceOutLeft bounceOutRight rotateClockwise rotateAntiClockwise tada moveIn moveOut swing shake hinge

Example:

let domElement = document.getElementById("elementId");
domElement.bounce();

It's possible to change the duration of your animations :

let domElement = document.querySelector("element");
domElement.bounce(700);

Usage with jQuery:

$(".button").flash();
// $(".button").flash(900);
// $(".button")[2].flash();
$("#domElement").jello();

Thanks

I thanks all the Animate.css teams for give me this inspiration. Very love yours works

License

Animate.js is licensed under the MIT license. (https://opensource.org/licenses/MIT)

Author

koffiisen

You can’t perform that action at this time.