A Pen by AMANJOT SINGH on CodePen.
Last active
July 28, 2019 12:10
-
-
Save theamanjs/159a8deca26fa0f35fc543da1bdf255f to your computer and use it in GitHub Desktop.
Netflix Logo
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
| <div class="logo"> | |
| <div class="netflix"> | |
| <span></span> | |
| <span></span> | |
| <span></span> | |
| </div> | |
| <h3 class="heading">Netflix</h3> | |
| </div> |
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
| 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; | |
| } |
Author
theamanjs
commented
Jul 28, 2019

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