Material design style click effects with pointer events and CSS Custom Properties

Ben Frain / filed under HTML & CSS, Javascript

These days I’m getting a kick remaking things with more modern approaches that used to be problematic. Here’s a little example: a material design style click/selection. What I mean is where you have a button and where you click it creates an effect that starts from the point you clicked/touched.

Subscribe to newsletter

Design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency