0.2.5 • Published 6 years ago

react-spritz v0.2.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

React Spritz🍷

React implementation of the Spritz speed-reading technique.

npm.io

Inspired by Luis Ivan's Spritzer.

Demo

Installation

npm install react-spritz --save

Include the stylesheet as follows if needed:

import '../node_modules/react-spritz/build/main.css';

Usage

<ReactSpritz
  text="Hi, this is React Spritz. Let's play!"
  wpm={400}
  playing
/>
  • text - the text
  • wpm - words per minute, how fast the words will be displayed
  • playing - you can control the component by changing this property (false, by default)
  • startTimeout - you can control the timeout on start (in ms, 1000 by default)

Additional props

  • normalized - pass true if you want longer timeouts for longer words (this will not affect short words)
  • stop - pass true if you want to restart the component
  • onStart - pass callback to do something on start
  • onPause - pass callback to do something on pause (playing=false)
  • onStop - pass callback to do something on stop (stop=true)
  • onDisplayNextWord - pass callback to do something on displaying the next word
0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago