JavaScript Mouse-Tracking Glow Effect with Tailwind CSS
Web-Crunch
In this Tailwind CSS tutorial, we'll explore how to add an interactive, mouse-tracking glow effect to web elements using just JavaScript and Tailwind CSS. This simple yet eye-catching effect will enhance the user experience on your webpage.
Prerequisites:
- Basic knowledge of HTML, CSS, and JavaScript.
- Tailwind CSS installed in your project.
š Read the blog post: https://webcrunch.com/posts/mouse-tracking-tailwind-css-glow-effect) āļø Source code: https://github.com/justalever/tailwind-mouse-glow
Timestamps: 00:00 - Video overview/Intro 00:26 - Project demo 01:14 - Project setup with Vite.js (https://vitejs.dev) 04:00 - Install Tailwind CSS 05:52 - Extending the default Tailwind CSS configuration 07:27 - Main HTML Structure 09:11 - Add custom glow overlay CSS 11:04 - Learn more about radial gradients 12:00 - Add a custom Tailwind CSS plugin and glow variants 15:34 - Add the JavaScript 20:40 - Add new glow variant classes to create the new effect 22:24 - Demo of the final product 24:42 - Limitations and gotchas with transform effects 26:00 - Please like and subscribe!
======
š I'm Andy Leverenz, a passionate product designer and developer. I love creating and sharing my knowledge through design, coding, and writing. Join me on my journey by checking out my blog, Web-Crunch (https://webcrunch.com), where I publish tutorials, articles, and the occasional vlog about design and development.
š° Never miss an update! Click here to subscribe: https://www.youtube.com/user/webcrunch?sub_confirmation=1
š» Read the written version: https://web-crunch.com/posts/
š New to Ruby on Rails? Enroll in my course HELLO RAILS: https://hellorails.io
š» The Blog (my source of truth): https://webcrunch.com
Additional Links: šØ Bring life to Rails projects with Rails UI: https://railsui.com. šØāš» Hire me: Visit: https://railsui.com/custom š¤ https://twitter.com/webcrunchblog. āļø https://github.com/justalever.
P.S. This stuff takes a long time to make but I love to do it. To help me keep at it consider supporting me. If not monetarily, then subscribe to the channel or share it with someone!
⨠https://github.com/sponsors/justalever āļø https://www.buymeacoffee.com/webcrunch ... https://www.youtube.com/watch?v=2Cp9ECsQZ_Y
81618886 Bytes