Last active
February 7, 2020 18:39
-
-
Save navin-moorthy/638499fec2f57b91373c9543563170d5 to your computer and use it in GitHub Desktop.
CloneCSS-Nike Logo
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 id="nike">nike</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
{ | |
"scripts": [], | |
"styles": [] | |
} |
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
|
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
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap'); | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
height: 100vh; | |
overflow: hidden; | |
display: grid; | |
place-items: center; | |
font-family: Montserrat; | |
} | |
#nike { | |
position: relative; | |
width: 470px; | |
height: 200px; | |
border: 1px solid gray; | |
text-transform: uppercase; | |
font-size: 40px; | |
line-height: 300px; | |
text-indent: 350px; | |
overflow: hidden; | |
} | |
#nike:before { | |
content: ''; | |
position: absolute; | |
background: #000; | |
width: 150px; | |
height: 550px; | |
top: -250px; | |
left: 205px; | |
transform: rotate(-116deg); | |
border-top-right-radius: 120px 110px; | |
border-top-left-radius: 140px 220px; | |
z-index: 1; | |
} | |
#nike:after { | |
content: ''; | |
position: absolute; | |
background: #fff; | |
width: 120px; | |
height: 500px; | |
top: -225px; | |
left: 218px; | |
transform: rotate(-108deg); | |
border-top-right-radius: 60px 110px; | |
border-top-left-radius: 130px 220px; | |
z-index: 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment