Dynamic CSS Gradients with JavaScript Event Handling

🚀 Exploring Interactive Web Design with CSS & JavaScript Recently, I built a small project that combines CSS radial gradients with JavaScript event handling to create a dynamic overlay effect. ✨ The idea: A looping background video sets the stage. An overlay uses a radial gradient variable (--x, --y) that updates in real time with mouse movement. The gradient highlights text (DEPOT) by following the cursor, blending creativity with code. 🔧 Tech stack highlights: CSS Variables for flexible gradient control JavaScript (mousemove event) to update gradient coordinates SCSS nesting for clean, structured styling Demo Link 🔗: https://lnkd.in/girjx8xx Github Repo 📂: This project reminded me how powerful small touches of interactivity can be in web design — turning a static page into something immersive. 💡 I’d love to hear how others are using gradients, overlays, or creative CSS variables in their projects. #WebDevelopment #CSS #JavaScript #Frontend #CreativeCoding #sheriyansCodingSchool

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories