Skip to content

Instantly share code, notes, and snippets.

@theamanjs
Last active July 28, 2019 12:10
Show Gist options
  • Select an option

  • Save theamanjs/159a8deca26fa0f35fc543da1bdf255f to your computer and use it in GitHub Desktop.

Select an option

Save theamanjs/159a8deca26fa0f35fc543da1bdf255f to your computer and use it in GitHub Desktop.
Netflix Logo
<div class="logo">
<div class="netflix">
<span></span>
<span></span>
<span></span>
</div>
<h3 class="heading">Netflix</h3>
</div>
body{
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
background: #000;
}
.netflix{
position: relative;
width: 360px;
height: 520px;
overflow: hidden;
transform: scale(.7);
}
.netflix:before{
content: '';
position: absolute;
bottom: -100px;
z-index: 2;
width: 100%;
height: 120px;
background: #000;
border-top-left-radius: 100%;
border-top-right-radius: 100%;
transform: scaleX(1.5);
}
.netflix:after, .heading:before{
content: '';
position: absolute;
top: 0;
right: 0;
width: 200%;
height: 100%;
background: linear-gradient(to right, transparent, #000, #000);
z-index:3;
animation: animate 2s linear forwards;
}
@keyframes animate{
0%{
right: 0;
}
100%{
right: -200%;
}
}
.netflix span{
position: absolute;
top: 0;
width: 120px;
height: 100%;
background: #fff;
}
.netflix span:nth-child(1){
background: #b00612;
left: 0;
}
.netflix span:nth-child(2){
background: #e50815;
left: 0;
z-index: 1;
transform-origin: top left;
transform: skewX(24.8deg);
box-shadow: 0 0 20px rgba(0, 0, 0, 1);
}
.netflix span:nth-child(3){
background: #b00612;
right: 0;
}
.heading{
color: #fff;
text-transform: uppercase;
position: relative;
top: -50px;
margin: 0;
padding: 0;
text-align: center;
font-family: arial;
font-size: 45px;
letter-spacing: 10px;
}
@theamanjs
Copy link
Author

Screenshot from 2019-07-28 16-08-38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment