Skip to content

Instantly share code, notes, and snippets.

@jensgro
Last active October 10, 2015 14:47
Show Gist options
  • Save jensgro/3706905 to your computer and use it in GitHub Desktop.
Save jensgro/3706905 to your computer and use it in GitHub Desktop.
Button mit box-reflect
/**
* Button mit box-reflect
*/
body {
background: #fff;
min-height: 100%;
}
button {
margin: 40px;
background: rgba(162,0,0,0.75);
color: #fff;
font-size: 25px;
border: none;
padding: 10px;
border-radius: 5px;
transition: padding 0.5s linear, font-size 0.5s linear;
-webkit-box-reflect: below -5px -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(255, 255, 255, 0.3)));
}
button:hover, button:focus {
padding: 15px;
font-size: 30px;
cursor: pointer;
}
button:before {
content:"→";
padding-right: 10px
}
<!-- content to be placed inside <body>…</body> -->
<button>Klick mich, ich bin ein verzauberter Button</button>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment