Socket
Book a DemoInstallSign in
Socket

react-text-flipper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-text-flipper

A React component to flip text strings

1.4.0
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

React Text Flipper

A layout component to create a text flip effect

Installation

Run npm i react-text-flipper or yarn add react-text-flipper in the root of your React project.

Usage

In the component where you want to see the animation of text string flipper import TextFlipper with

import TextFlipper from 'react-text-flipper'

Render passing the props with array pfstring to flip through and the last string will be the final one.

Optionally pass the interval in milliseconds between flips (default is 500ms) and the HTML element to use (default is <p>):

import TextFlipper from './TextFlipper'

function App() {

// array of strings to flip through, the final one will stay
const text = [
  "バルセロナ・コード・スクール",
  "巴塞罗那代码学校",
  "مدرسة برشلونة لتعليم البرمجة",
  "École de code de Barcelone",
  "Barcelona Codierschule",
  "Escuela de Código de Barcelona",
  "Escola de Código de Barcelona",
  "Barselona Kod Okulu",
  "Scuola di Codice di Barcellona",
  "Барселонская школа кода",
  "Barcelona Code School",
];

  return (
    <>
    {/* rendering TextFlipper */}
      <TextFlipper
        textSequence={text} // passing the array of strings
        interval={100} 
        tagName="h1" // HTML tag to use for the text
      />
    </>
  )
}

export default App

Dependencies

    "react": ">=18.1.0",
    "react-dom": ">=18.1.0"

npm: https://www.npmjs.com/package/react-text-flipper

Done at Barcelona Code School

Keywords

react

FAQs

Package last updated on 31 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.