Dancing Letters

Create dancing letters with this script! To do this, first attach attach jQuery 3.x, and then attach the "dancingLetters.js" script (here).

You can apply the effect to a block of text with the data-dancing attribute. For example, <span data-dancing>Hello world</span> produces

Hello world
By default, the speed is 1000ms and the angle range is 12deg.

However, this might not be the right speed for your tastes. You can adjust the speed and angle range in the form of data-dancing="intSpeedInMs,intRangeInDegrees". For example, <span data-dancing="200,6">Hello world 2</span> produces

Hello world 2