This week I learnt...

This week I learnt...


Button pressing

All about how to make buttons look like they're staying pressed when you click them.

Articles in this series

How to make a button looked like it's staying pressed down

Oct 10, 20214 min read

Let's say you have a button on your page and when the user clicks it, it should look like it's staying pressed until they do something else. How do you do that? It's pretty easy, you just need a box shadow and a bit of JavaScript. Button set up Let's...