Skip to content

Instantly share code, notes, and snippets.

@navin-moorthy
Last active February 7, 2020 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navin-moorthy/638499fec2f57b91373c9543563170d5 to your computer and use it in GitHub Desktop.
Save navin-moorthy/638499fec2f57b91373c9543563170d5 to your computer and use it in GitHub Desktop.
CloneCSS-Nike Logo
<div id="nike">nike</div>
{
"scripts": [],
"styles": []
}
@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