Frontend First cover image

React email previews and radial gradients

Frontend First

CHAPTER

CSS Tricks and Techniques

Use radio gradients and they also use mask mask images. The way the ever vault demo pulls it off is when you move your mouse cursor it actually looks like it's stretching an ellipse that has like a gradient and like some Transparency over it. When I first saw this I thought the implementation was gonna look something like Okay calculate the distance of the mouse cursor from the center of the card and then use that distance as Like the diameter on theEllipses shape. And so since that diameter changes, it should like stretch a circle. So once I spent a good deal of time with this demo You realize there's two layers and one is actually a fixed gradient that is always there.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner