Put the AniJS file on your page or use AMD.
<script src="anijs-min.js"></script>
Include the CSS animation styles definition, we strongly recomend you to use the amazing animate.css library as starting point, this library provides beautiful animations. Also, you can define your own animations.
<head>
<!-- Animate.css library -->
<link rel="stylesheet" href="http://cdn.jsdelivr.net/animatecss/3.1.0/animate.css">
</head>
Start playing by adding anijs-data tag to any HTML element.
<body>
<header data-anijs="if: click, do: flipInY animated, after: removeAnim">
header
</header>
<nav data-anijs="if: scroll, on: window, do: swing animated, to: footer">
nav
</nav>
<div id="main" data-anijs="if: load, on: window, do: swing animated">
if: load, on: window, do: swing animated, after: removeAnim
</div>
<footer>
footer
</footer>
<script src="bower_components/anijs/dist/anijs-min.js"></script>
</body>
See a Codepen Example.