Be Title Demo
Easy way to convert text to different cases and animate them.
Installation
npm i be-title
Get Started
Regular
const text = new Title("Star Wars: Episode V - The Empire Strikes Back");
Utilities
Stats
text.stats()
Initials
text.initials()
Slug
text.slug()
Remove Chars
text.remove(["-", ":", "Episode", "V"])
Truncate
text.truncate({max: 32, suffix: "..."})
Hide
text.hide({from: 0, numChar: 16, hideChar: "*"})
Animations
Animation In and Out
text.play({ animation: 'inout' })
Animation Scramble
text.play({ animation: 'scramble' })
Animation Flicker
text.play({ animation: 'flicker' })
Animation Wave
text.play({ animation: 'wave' })
Animation Cycle
text.play({ animation: 'cycle' })
Effects
Gradient
text.gradient({fromColor: [76, 255, 36], toColor: [87, 241, 255], format: 'html'})
Box
text.box({style: 'rounded'})
Cases
Uppercase
text.upper()
Lowercase
text.lower()
Sentence Case
text.sentence()
Title Case
text.title()
Capital Case
text.capital()
Alternating Case
text.alternating()
Spongebob Case
text.spongebob()
Snake Case
text.snake()
Kebab Case
text.kebab()
Camel Case
text.camel()
Pascal Case
text.pascal()
Train Case
text.train()
Constant Case
text.constant()