Glassmorphism Button Effect with Mouse Tracking - HTML, CSS and JavaScript Tutorial
Kevin Powell via YouTube
Overview
Syllabus
- Introduction
- Creating the hover state
- Using a pseudo-element for the coloured part
- The problem with the current setup
- Solution to the stacking context issue
- Adding some locally scoped custom props
- Adding the blurred effect
- Improving the pseudo-element on hover
- Adding more controls through custom properties
- Creating the "pressed" state
- Adding the graniness
- The outline
- Starting the JavaScript
- Moving the pseudo-element
- Making sure it has a smooth transition
- Limiting how much the pseudo-element moves
Taught by
Kevin Powell