1yarn add @carefully-coded/react-text-gradient
1import FancyText from '@carefully-coded/react-text-gradient';
2
3export default function StaticTitle() {
4 return (
5 <FancyText gradient={{ from: '#818CF8', to: '#5B21B6' }}>
6 SAVE THE WORLD, ONE GRADIENT AT A TIME
7 </FancyText>
8 )
9}
1import FancyText from '@carefully-coded/react-text-gradient';
2
3export default function StaticTitle() {
4 return (
5 <FancyText
6 gradient={{ from: '#818CF8', to: '#5B21B6', type: 'linear' }}
7 >
8 SAVE THE WORLD, ONE GRADIENT AT A TIME
9 </FancyText>
10 )
11}
1import FancyText from '@carefully-coded/react-text-gradient';
2
3export default function AnimatedRadial() {
4 return (
5 <FancyText
6 gradient={{ from: 'rgb(59 238 221)', to: 'rgb(33 148 182)' }}
7 animate
8 animateDuration={1000}
9 >
10 RADIAL ANIMATED GRADIENT
11 </FancyText>
12 )
13}
1import FancyText from '@carefully-coded/react-text-gradient';
2
3export default function LinearAnimated() {
4 return (
5 <FancyText
6 gradient={{ from: '#F858E0', to: '#77156C', type: 'linear' }}
7 animate
8 animateDuration={1000}
9 >
10 LINEAR ANIMATED GRADIENT
11 </FancyText>
12 )
13}
1import FancyText from '@carefully-coded/react-text-gradient';
2
3export default function ColorAnimated() {
4 return (
5 <FancyText
6 gradient={{ from: '#F858E0', to: '#77156C', type: 'linear' }}
7 animateTo={{ from: '#6DEDD0', to: '#7AE23A' }}
8 animateDuration={2000}
9 >
10 CUSTOM COLOR ANIMATED GRADIENT
11 </FancyText>
12 )
13}