JSFiddle - React, Tailwind, and code Playground

by lukempeters

HTML

<h1>CSS3 Transitions, Maaaan</h1>
<small>by <a href="http://www.lukepeters.me">Luke Peters</a></small>

<a href="" class="button">Hello</a>
<a href="" class="button">How</a>
<a href="" class="button">Are</a>
<a href="" class="button">You</a>
<a href="" class="button">Today</a>
<a href="" class="button">?</a>

<br /><br /><br /><br /><br /><br /><br />
<small class="grey">(Firefox 4+, Chrome or Safari only, sorry IE)</small>

CSS

body {
    padding: 20px 50px 0 50px;
    font-family: Tahoma, Arial;
}

h1 {
    margin: 0;
    font-size: 18px;
    color: #555555;
}

small {
    margin: 0 0 30px 0;
    font-size: 11px;
    display: block;
}

.grey {
    color: #999999;
}

a, a:visited {
    color: #555555;
}

a.button, a.button:visited {
    margin: 0 0 0 4px;
    padding: 4px 12px 4px 12px;
    font-family: Tahoma, Arial;
    font-size: 14px;
    color: #444444;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    -moz-transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    background: #cccccc;
}

a.button:hover {
    color: #ffffff;
    border-radius: 18px;
    -moz-transition: all .2s ease;
    -webkit-transition: all .2s ease;
    -o-transition: all .2s ease;
    transition: all .2s ease;
    background: #999999;
}