5.0.5 • Published 2 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
2 years ago
5.0.4
2 years ago
5.0.3
2 years ago
5.0.2
2 years ago
5.0.1
2 years ago
5.0.0
2 years ago
4.1.9
2 years ago
4.1.8
2 years ago
4.1.7
2 years ago
4.1.6
2 years ago
4.1.5
2 years ago
4.1.4
2 years ago
4.1.3
2 years ago
4.1.2
2 years ago
4.1.1
2 years ago
4.1.0
2 years ago
4.0.12
2 years ago
4.0.11
2 years ago
4.0.10
2 years ago
4.0.9
2 years ago
4.0.8
2 years ago
4.0.7
2 years ago
4.0.6
2 years ago
4.0.5
2 years ago
4.0.4
2 years ago
4.0.3
2 years ago
4.0.2
2 years ago
4.0.1
2 years ago
4.0.0
2 years ago
3.0.9
2 years ago
3.0.8
2 years ago
3.0.7
2 years ago
3.0.6
2 years ago
3.0.5
2 years ago
3.0.4
2 years ago
3.0.3
2 years ago
3.0.2
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
2.0.6
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.3
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago