A JavaScript Library to Shuffle the Text Content of a DOM Element | shuffle-letters.js

shuffle-letter.js is a JavaScript library to alter the text content of a DOM element with an animated effect.

gsap scramble text, text scramble effect css, scramble text javascript, text reveal animation, decoding text effect, canvas text animation effects, shuffle text animation

Note: This library is a vanilla JavaScript port of the Shuffle Letters Effect jQuery plug-in.

How to make use of it:

1. Install and import the shuffle letters with NPM.

$ npm i shuffle-letters --save
import shuffleLetters from 'shuffle-letters';

2. Or load the shuffle-letters.js from a CDN.

<script src=”https://unpkg.com/shuffle-letters”></script>

3. Initialize the shuffle letters on the goal component.

<h1>shuffle-letters.js Examples</h1>

4. You may also animate the text in a different.

shuffleLetters(document.querySelector('h1'), {
  text: 'Yet another title',

5. Trigger a function after the animation has completed.

shuffleLetters(document.querySelector('h1'), {
  onComplete: el => {
    // ...

6. Config the scrambling impact.

shuffleLetters(document.querySelector('h1'), {

  // number of times the characters will be shuffled
  iterations: 8,

  // the amount of frames per second
  fps: 30,

7. Clear the shuffled text.


Reveal Text With Scrambling Effect, shuffle-letters.js Plugin/Github, text reveal animation js

See Demo And Download

Official Website(georapbox): Click Here

This superior jQuery/javascript plugin is developed by georapbox. For extra Advanced Usages, please go to the official website.

Related Posts


Simple And Powerful Fullscreen Lightbox Plugin | fslightbox

Fullscreen Lightbox Basic is a modern and handy plug-in for displaying photos and videos in a clean overlay box. Showcase a single source or create a great…


Product Thumbnail Slider With Positive Zoom Effect jQuery

Positive Zoom is a JavaScript library for creating an image gallery where you can zoom in on the current image by hovering over it. Must Read: Pure…


Create Responsive Gauge Meter Using Pure CSS | CSSGauge

Pure CSS Gauge Meter Component, no SVG, or artboard is used in this component. This component can be easily distinguished by overriding the default style rules and…


Versatile Date and Time Picker Calendar for Bulma

Bulma extension for calendar display can be used on a page as a large calendar with appointments or as a date picker/popup window. A responsive, customizable, and…


Simple Time-Series Chart Viewer with HTML5 Canvas Javascript Library

Pixl chart library displays time series charts in the browser, using the HTML5 Canvas element. It is designed to be lightweight and efficient, while still providing a…


Neumorphic Design Inspiration Style CSS Shapes | Neumorphism

Multi-dimensional design is inspired by the physical world and adds textures, reflection, shadows, layers, and depths to the flat design making the UI elements more visible. CSS…