Minimal Text Transformation Plugin With jQuery - Annalka

Minimal Text Transformation Plugin With jQuery - Annalka
File Size: 5.76 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Annalka is a lightweight and CSS less jQuery plugin used for flipping between multiple text messages with a random character transformation effect during changes. A little similar to a flight board at an airport.

See also:

How to use it:

1. Include both jQuery library and the jQuery Annalka plugin's script at the bottom of the webpage.

<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="src/jquery.annalka.js"></script>

2. Call the function on the target text wrapper and specify the string you want the text transform to.

$('h1').annalka("Another Title");

3. Config the text transformation effect with the following options.

$('h1').annalka("Another Title",{

  // Time between each randomized letter. 
  tick: 15,

  // Number of randomizations before moving towards target length.
  steps: 4,

  // String with characters to randomize from.
  chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',

  // Callback function
  callback: function() {}
  
});

This awesome jQuery plugin is developed by anton-g. For more Advanced Usages, please check the demo page or visit the official website.