5.0.5 • Published 4 years ago
textillate-react v5.0.5
Work with Textillate in React more easily!
View the origin version here
Usage
import { Textillate } from 'textillate-react'
Add animation
<Textillate>Happy Codding!</Textillate>
Animation option & font style
<h1>
<Textillate
option={{
in: {effect:'fadeInRight', shuffle:true},
out: {effect: 'bounceOutUp', shuffle: true},
loop: true,
}}
>
Happy Codding!
</Textillate>
</h1>
View full option here
Handle Event
const [textillateController, setTextillateController] = useState({});
<h1>
<Textillate
option={{
in: {effect:'fadeInRight', shuffle:true},
out: {effect: 'bounceOutUp', shuffle: true},
loop: true,
}}
controller={setTextillateController}
>
Happy Codding!
</Textillate>
</h1>
useEffect(() => {
textillateController.on('start.tlt', e => {
// do some stuff...
})
}, [textillateController])
View more event here
Methods
textillateController.start() // Manually start/restart textillate
textillateController.stop() // Manually pause/stop textillate
textillateController.in() // Trigger the current text's in animation
textillateController.out() // Trigger the current text's out animation
textillateController.on('event', callback())
5.0.5
4 years ago
5.0.4
4 years ago
5.0.3
4 years ago
5.0.2
4 years ago
5.0.1
4 years ago
5.0.0
4 years ago
4.1.9
4 years ago
4.1.8
4 years ago
4.1.7
4 years ago
4.1.6
4 years ago
4.1.5
4 years ago
4.1.4
4 years ago
4.1.3
4 years ago
4.1.2
4 years ago
4.1.1
4 years ago
4.1.0
4 years ago
4.0.12
4 years ago
4.0.11
4 years ago
4.0.10
4 years ago
4.0.9
4 years ago
4.0.8
4 years ago
4.0.7
4 years ago
4.0.6
4 years ago
4.0.5
4 years ago
4.0.4
4 years ago
4.0.3
4 years ago
4.0.2
4 years ago
4.0.1
4 years ago
4.0.0
4 years ago
3.0.9
4 years ago
3.0.8
4 years ago
3.0.7
4 years ago
3.0.6
4 years ago
3.0.5
4 years ago
3.0.4
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.6
4 years ago
2.0.5
4 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago