GithubHelp home page GithubHelp logo

ratson / react-typist-loop Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 16 KB

Typing animations with React.

JavaScript 81.73% TypeScript 18.27%
react typist animations typing typescript typing-animation

react-typist-loop's Introduction

react-typist-loop

Typing animations with React.

Installation

npm install react-typist-loop --save

Usage

import React from 'react'
import Typist from 'react-typist'
import TypistLoop from 'react-typist-loop'

const App = () => (
  <TypistLoop interval={3000}>
    {[
      'Hello World',
      'Good Morning',
      'Bye',
    ].map(text => <Typist key={text} startDelay={1000}>{text}</Typist>)}
  </TypistLoop>
)

react-typist-loop's People

Contributors

brunocarvalhs avatar ratson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-typist-loop's Issues

Memory Leak

I am receiving the following memory leak warning after unmounting a parent container that uses TypistLoop with Typist and Typist.Backspace. Is there a proper way to use TypistLoop to avoid this issue?

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.

Backspace animation

Is there a way the backspace animation could be added, so that on word replacement it doesn't remove the entire word at once instead show some backspace animation?

Lighthouse score

Hello, love the plugin.
Using lighthouse to monitor the performance of my homepage I noticed that the visually complete time is impacted a lot by the react-typist plugin animation.

While I know this has nothing to do with your plugin, I believe this issue could be solved here, making the first "loop" not animatable, so it renders nicely for the browser, this could have seo implication because it changes the speedindex fo your website.

The same feature wouldn't have much sense in the actual react-typist plugin because it does not have multiple elements animated.

Just an idea i thought I would share.
Great work anyway.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.