Change Background Image When Active

Use following code to change background image of an active button state. This bit of code starts off with an embedded Google Font. In this instance I’m using the native Android font Roboto, but you can choose your own font from Google’s hosted font library.

HTML

CSS

JS

Evil Fancy Buttons by Nate Balcom (@nbalcom) on CodePen

Comments

comments