Last active
October 10, 2015 14:47
-
-
Save jensgro/3706905 to your computer and use it in GitHub Desktop.
Button mit box-reflect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 | |
} | |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<button>Klick mich, ich bin ein verzauberter Button</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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