Loading video...
Video Failed to Load
CSS Trick ๐ค You can mask other elements with icons in CSS to create this glittery icon hover/interaction effect โจ canvas { mask: url(/img/icons/next.svg); } Check this example, inspired by the new Vercel homepage treats that are dropping ๐ค (Had to have a go at whipping this up over... show more
210,485 views โข 3 years ago โขvia X (Twitter)
10 Comments

Here's that @CodePen link! ๐ This includes the exploded view stuff ๐ฃ

If you want a standalone version, this one's got you! ๐

@vercel What's a snovra?

@vercel I did not see this until I posted it ๐คฆโโ๏ธ Now people are pointing it out, I can't unsee it ๐

@vercel I think this effect will look even better with this icons

@vercel It does look cool! ๐ฏ๐

@vercel Beautiful ๐ Are there performance aspects to consider with multiple canvas elements?

For sure! ๐ฏ And that's why I only activate the canvas particles on pointerenter and pointerleave โจ GSAP has a great utility for this called gsap.ticker where you can control the fps as well as easily add and remove things to the ticker when needed ๐ It saves having to manage requestAnimationFrame yourself ๐

@vercel Too cool

@vercel Now I've got to get back to that tear strip ๐ฉ๐
