Creative Button Styles

Some creative and modern button styles and effects for your inspiration.

Creative Button Styles

Today we would like to give you some button inspiration. This button set consists of some simple, creative and subtle styles and effects to inspire you. The effects can be seen when hovering on some buttons and clicking on others. Mostly, CSS transitions are used but also CSS animations and for some buttons we use a bit of JavaScript to add/remove effect classes.

The icons, which we add using the :before (and sometimes :after) pseudo-class, are from IcoMoon and we’ve created them with the IcoMoon app.

Please note: this only works as intended in browsers that support the respective CSS properties.

The markup of a button is really simple. We just add specific shared classes:

<button class="btn btn-6 btn-6d">Button</button>

The common styles for all the buttons are some resets defined in .btn and we use the specific numbered classes for the different sets of styles. That numbered class are the shared styles for the sets. Each button has an additional specific class then. When using an icon, we add the icon-class which will use the pseudo element :before to add the character from the icon font.

An example for a specific button style is the following:

/* Button 6d */
.btn-6d {
	border: 2px dashed #226fbe;
}

.btn-6d:hover {
	background: transparent;
	color: #226fbe;
}

Which will of course depend on what we define as a common style in .btn and .btn-6.

This class structure is used for demo purposes. Using a single style, the properties should of course be merged into a single class.

I hope you enjoy the styles and find them inspiring!

Manoela Ilic

Editor-in-Chief at Codrops. Designer, developer, and dreamer — sharing web inspiration with millions since 2009. Bringing together 20+ years of code, creativity, and community.

Browse amazing websites

💎✨ Discover fresh gems in our handpicked exhibition of standout websites that caught our eye.