Loading video...
Video Failed to Load
CSS Trick! ⭐️ You can create this sparkly backdrop with a single element using mask-composite whilst animating the mask-position 😷 .canvas { background: var(--gradient); mask: var(--dots), var(--noise); mask-composite: intersect /* source-in, xor */; animation: flicker; } @keyframes flicker { to { mask-position: 50% 50% , 0 50%; } }... show more
279,699 views • 2 years ago •via X (Twitter)
10 Comments

jhey ▲🐻🎈2 years ago
Here's that @CodePen link! 🚀 Can use this to mask out words and icons as well 🔥

jhey ▲🐻🎈2 years ago
Here's John's post showing how he the same effect but using <canvas> 🤙

jhey ▲🐻🎈2 years ago
Annnnnddd here's that Perlin Noise generator site ⚡️ Tinker with the values until you find something that works for you. Had to mess with the alpha and seed until I found something I liked 😁

Adam Rackis2 years ago
C’mon bro crank that course / book out you’re killing us

Simon Vrachliotis2 years ago
HOW does your brain think of this stuff 🤯

jhey ▲🐻🎈2 years ago
It's weird in there 🙃

Dan ⚡️2 years ago
this is not even from the future 👀 although it seems from the future

Viki ✨2 years ago
Awesome trick 😎

jhey ▲🐻🎈2 years ago
Thanks Viki! 🤙

Joshua2 years ago
Your work has really been inspiring me lately.
