Scrambling/Decoding Effect For Text - jQuery Codex

Scrambling/Decoding Effect For Text - jQuery Codex
File Size: 8.63 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Codex is a small jQuery text animation plugin which applies a decoding effect to text by scrambling the letters randomly and revealing the original characters one by one.

See also:

How to use it:

1. Download and put the Codex plugin after loading jQuery library.

<script src="https://code.jquery.com/jquery-1.12.4.min.js" 
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" 
        crossorigin="anonymous"></script>
<script src="jquery.codex.js"></script>

2. Attach the function to the element containing the text to animate. Done.

<h1 class="codex" id="codex">jQueryScript</h1>
$(function(){
  $("#codex").codex();
});

3. Determine whether to animate the characters one by one. Default: 'allofasudden'.

$("#codex").codex({
  effect: "charbychar"
  reveal: 1000 // the number of miliseconds
});

4. Determine whether to keep whitespaces. Default: true.

$("#codex").codex({
  keep_whitespaces : false
});

5. The plugin also allows you to animate one text to another.

$("#codex").codex({
  final_text: "CSSSCRIPT.COM"
});

6. Customize the animation speed. Default: 100ms.

$("#codex").codex({
  speed : 200
});

7. Customize the duration of the animation speed. Default: 3000ms.

$("#codex").codex({
  duration : 1000
});

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