Created
October 17, 2019 02:02
-
-
Save enqtran/fef664a415f416acd3aadc1d701aee68 to your computer and use it in GitHub Desktop.
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
1 - Border Radius | |
Ex: | |
.circle { | |
background: #456BD9; | |
border: 0.1875em solid #0F1C3F; | |
border-radius: 50%; | |
box-shadow: 0.375em 0.375em 0 0 rgba(15, 28, 63, 0.125); | |
height: 5em; | |
width: 5em; | |
} | |
2 - SVG | |
Ex: | |
<svg viewBox="0 0 80 80" width="80" height="80"> | |
<circle class="circle" cx="40" cy="40" r="38"/> | |
</svg> | |
3 - Clip Path | |
Ex: | |
.circle { | |
background: #456BD9; | |
clip-path: circle(50%); | |
height: 5em; | |
width: 5em; | |
} | |
4 - Radial Gradient | |
Ex: | |
.circle { | |
background-image: radial-gradient(circle, #456BD9, #456BD9 66%, transparent 66%); | |
height: 5em; | |
width: 5em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment