项目
在 GitHub 查看
catalinmiron/react-typical
关于
用约 400 字节 JavaScript 实现的 React 打字动画 🐡。
创作与媒体实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文react-typical
React Animated typing in ~400 bytes 🐡 of JavaScript.

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
探索相关项目
加载中…
