Created
May 20, 2013 19:58
-
-
Save wietseneven/5615018 to your computer and use it in GitHub Desktop.
Just for fun™: Mr. Border-Radius in pure CSS
This file contains 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
/** | |
* Just for fun™: Mr. Border-Radius in pure CSS | |
*/ | |
.mr-border-radius { | |
width: 540px; | |
height: 420px; | |
border-radius: 40px; | |
margin: 60px auto 0; | |
background: radial-gradient(hsl(40, 100%, 70%), hsl(40, 100%, 50%)); | |
} | |
.eyebrow { | |
width:250px; | |
height:300px; | |
background: | |
-webkit-radial-gradient(0 100%, circle, rgba(153,94,0,0) 150px, #995e00 50px), | |
-webkit-radial-gradient(0 100%, circle, rgba(153,94,0,0) 20px, #995e00 10px); | |
background-position: bottom left, top right; | |
transform: rotate(-50deg); | |
background-size: 50% 50%; | |
background-repeat: no-repeat; | |
border-radius:100px; | |
} |
This file contains 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
<div class="mr-border-radius"> | |
<div class="eyebrow"></div> | |
</div> |
This file contains 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
// alert('Hello world!'); |
This file contains 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-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment