KirbyDance.js

Simple example

// Make Kirby dance in all h1 elements KirbyDance(document.querySelector('h1'));

Example of options

const element = document.querySelector('#my-element'); // Set the mode of the animation. // Possible values = "wrap" (default), "append", "prepend" const mode = 'wrap'; // Set the speed of the animation in milliseconds. const speed = 500; KirbyDance(element, mode, speed);

Get the code on GitHub

andreasnylin.com