Creative Button Styles

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

Creative Button Styles

View demo Download source

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!

View demo Download source

Previous:
Next:

Tagged with:

ML is a freelance web designer and developer with a passion for interaction design. She studied Cognitive Science and Computational Logic and has a weakness for the smell of freshly ground peppercorns.

View all contributions by

Website: http://www.codrops.com

Related Articles

CSS Reference

Learn about all important CSS properties from the basics with our extensive and easy-to-read CSS Reference.

It doesn't matter if you are a beginner or intermediate, start learning CSS now.

Feedback 76

Comments are closed.
  1. 5

    How can I turn these buttons into links instead?
    I tried but the icon ends up shifting to the left instead of keeping it’s centered position…
    Please Help?

  2. 6

    These really are terrific. I created a variation of the 3a button for a site I’m working on and it looks great. Sadly, it seems to require a double tap on a mobile device which would be very confusing to my users (I’m redesigning my site to make it responsive). Can the author or anyone else recommend a general solution to this problem (I’m thinking something with JQuery maybe or even sacrificing whatever is causing the problem for every breakpoint except the desktop/laptop). Thanks!

  3. 8

    I had a question on your 3D buttons, I wanted to use the it worked/error buttons for a contact form and I’m having trouble getting the buttons to toggle to the correct one based on if they filled out the required information or if the message was sent.

    I’m not very good with JavaScript or PHP. If anyone may have any information on how to do it that would be great!

    Thanks in advance!

  4. 9

    Thank u very much!!! you helped me a lot for various design patterns thank u so much

  5. 10

    Hey thanks a lot for these, for some reason they work fine on one site I’m doing with a WP template called atom, but I’m trying to do them in the WP theme Rockefeller and now they don’t work correctly. The text in the button area floats to the top and is outside the circle. any idea?

  6. 11

    I cannot get the sliding backgrounds of 1a, 1b, 1c etc to work – I just don’t know what to do anymore – is anything other than the CSS required for those to work?

    • 12

      You need to add this to the parent element of the button:

      position: relative;
      z-index: 1;

  7. 14

    It is good I see you as my helper I just start developing webpages but how to links buttons to the to another page become difficult to me so please help me out.Thank you for that.

  8. 15

    Simply, this do the trick for me.

    <button class="btn btn-1 btn-1a" onclick="window.location.href='URL'">Button</button>

  9. 16

    I hate IE because it don’t support most of the things especially when you are web developer.And sadly most or the people still use IE.

Comments are closed.