React typing animation in ~400

react-typical

React Animated typing in ~400 bytes of JavaScript.

DEMO

Based on awesome typical library by @camwiegert

Youtube Video Tutorial

Install

npm install --save react-typical Usage

import React, { Component } from 'react' import Typical from 'react-typical' class Example extends React.Component { render () { return ( <Typical steps={['Hello', 1000, 'Hello world!', 500]} loop={Infinity} wrapper="p" /> ) } } Properties

prop mandatory type Eg.
steps yes [] ['Hello', 1000, 'World']
wrapper no string 'p'
loop no number 3
License

This library is based on @camwiegert/typical work and it currently is just a wrapper for react.

MIT © catalinmiron

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。