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

Second Start students concerned by Concord’s plan to bring some alternative school programming in-house

Sophomore Dakota Evens spent much of middle school in detention or in-school suspension. “I was…

4 minutes ago

Sunshine Week: Concord city manager paid more than almost every other government employee in the state, other salary findings

The Concord city manager continues to be one of the highest-paid government employees in the…

4 minutes ago

Concord High hosts new principal candidate amid ongoing search

The search for Concord High School’s next principal entered a new phase this week. The…

4 minutes ago

Overwhelmed by Your Tax Return? File With a TurboTax Expert for Just $150 Flat

The deadline to file your taxes is less than one month away, on April 15th.…

2 hours ago

Overwhelmed by Your Tax Return? File With a TurboTax Expert for Just $150 Flat

The deadline to file your taxes is less than one month away, on April 15th.…

2 hours ago

Director of One of 2024’s Best Games Says, “Expect the Unexpected” Ahead of Upcoming Reveal

The debut game from developer Sunset Visitor, 1000xResist, took us by surprise in 2024 and…

2 hours ago

This website uses cookies.