RSS FeedTwitterMastodonBlueskyShare IconHeart IconGithub IconArrow IconClock IconGUI Challenges IconHome IconNote IconBlog IconCSS IconJS IconHTML IconShows IconGit IconSpeaking IconTools IconShuffle IconNext IconPrevious IconCalendar IconCalendar Edit Icon
A series of images of an avatar doing a bunch of skateboard tricks.
atom@argyleink
notecss

Animated gradient text is like the poster child of AI right now. Gotta have that animated gradient text sparkle button thingy to be cool.

So here! Steal the recipe.

Join the conversation on

84 likes
5 reposts
  • Roni Laukkarinen
  • Alexis Deveria
  • Brecht De Ruyte
  • Jack Iakovenko
  • @joellesenne.dev
Putting AI in your product? You're gonna need #CSS gradient text animations (if you want to be cool) So here, a recipe! codepen.io/argyleink/pe...nerdy.dev/animated-gra...
Adam ArgyleAdam Argyle

@argyleink surprise surprise, it doesn’t work on iOS Safari. ????

Really cool effect when it does work though. ????

Amadeus MaximilianAmadeus Maximilian

@argyleink the gradient is animating, so I think that part is working, it’s the text-clipping that is broken (i.e. I see the animated gradient as a rectangle, but not the text). ????

Amadeus MaximilianAmadeus Maximilian
????
CæsarCæsar

@amxmln @argyleink it's the --webkit- prefix on the (now standard) background-clip property

Henry Bley-VromanHenry Bley-Vroman

@argyleink what's the motivation for choosing`--webkit-text-fill-color` over `color`

Henry Bley-VromanHenry Bley-Vroman

@olets @argyleink yeah removing the prefix seems to do the trick. ????

Amadeus MaximilianAmadeus Maximilian

@amxmln @olets fixed! added it again unprefixed, so older browsers still get the effect

tried @supports, but my initial attempts failed

Adam ArgyleAdam Argyle

@olets last i checked no browser supported transparent text, but does a text-fill-color

Adam ArgyleAdam Argyle

@amxmln @olets thanks for the help here y'all, this helped me upgrade an old recipe for just gradient text too ❤️

Adam ArgyleAdam Argyle

@argyleink at least Chrome, FF, and Safari def support `color: transparent`

Henry Bley-VromanHenry Bley-Vroman

@olets correct! yay, love it, thanks, i've updated both my codepens to support the prefixed and unprefixed syntaxes in the recipe <3

Adam ArgyleAdam Argyle
Into the notes app you go
JoeJoe

Crawl the CSS Webring