Categories: CSSScriptWeb Design

Text Shuffle Animation In Pure JavaScript – shuffle-text.js

shuffle-text.js is a pure JavaScript library that presents your text letter by letter with a character shuffle animation.

Install it via NPM:

$ npm install shuffle-text

How to use it:

Just import the shuffle-text.js into the html page and we’re ready to go.

<script src="shuffle-text.js"></script>

Create a new instance of the ShuffleText and specify the text container as this:

var el = document.getElementById("myText");
var text = new ShuffleText(el);

Start the shuffle animation:

text.start();

Stop the shuffle animation:

text.stop();

Re-set the text to animate:

text.setText(text: string);

Changelog:

12/04/2025

  • v0.5.1

07/24/2024

  • v0.3.5

10/02/2021

  • v0.3.5

05/06/2021

  • v0.3.4

02/21/2021

  • v0.3.2

07/11/2020

  • v0.3.1

08/30/2018

  • v0.3.0

10/01/2018

  • v0.2.8

The post Text Shuffle Animation In Pure JavaScript – shuffle-text.js appeared first on CSS Script.

rssfeeds-admin

Share
Published by
rssfeeds-admin

Recent Posts

Today’s Top Deals: Ninja Gaiden: Ragebound for Switch, LEGO Sets, and an Xbox Gift Card

If you’re after some new games for your Switch 2, you’re in luck, as Ninja…

25 minutes ago

Pokémon Fan Funds Wedding With $44,000 Charizard Card Sale

A Pokémon fan has been able to fund his own wedding, after rediscovering a trio…

25 minutes ago

The Beginner-Friendly DJI Mini 4K Drone Fly More Combo With Extra Batteries Has a 30% Price Drop

The DJI Mini 4K is an excellent quadcopter drone camera for beginners looking to try…

26 minutes ago

Handle Long Press/Tap Event In JavaScript – long-press-event

long-press.js is a small JavaScript library which detects and handles the long press/tap event on…

1 hour ago

The art of honest conversation: the one shift that makes people finally feel heard

Tension: We perform listening instead of practicing presence, creating distance while appearing close. Noise: The…

1 hour ago

The leadership style that worked in 2010 is actively damaging teams in 2026

Tension: The command-and-control leadership that built successful companies in 2010 now creates anxious, depleted teams.…

1 hour ago

This website uses cookies.