A Pen by Sergio Uve on CodePen.
Created
March 13, 2020 12:04
-
-
Save yugarinn/8ffc974329123968fa6ab64994ea141d to your computer and use it in GitHub Desktop.
chill
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
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Chill</title> | |
| </head> | |
| <body> | |
| <div class="chill__container"> | |
| <div class="chill__frame"> | |
| <div class="chill__content js-chill-content"></div> | |
| <span class="chill__frame-curve outer"></span> | |
| <span class="chill__frame-curve middle"></span> | |
| <span class="chill__frame-curve inner"></span> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
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
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> |
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
| html, | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| background-color: #F5FBEF; | |
| height: 100vw; | |
| } | |
| @keyframes backgroundMove { | |
| 0% { background-position: -20% 75%; } | |
| 100% { background-position: 100% 75%; } | |
| } | |
| .chill__container { | |
| position: absolute; | |
| display: flex; | |
| height: 100%; | |
| width: 100%; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .chill__frame { | |
| position: relative; | |
| height: 500px; | |
| width: 500px; | |
| min-height: 500px; | |
| min-width: 500px; | |
| max-width: 50%; | |
| background-color: #FFFFFF; | |
| align-self: center; | |
| border-radius: 100%; | |
| overflow: hidden; | |
| -webkit-box-shadow: 0px 0px 600px 0px rgba(0, 0, 0, .4); | |
| -moz-box-shadow: 0px 0px 600px 0px rgba(0, 0, 0, .4); | |
| box-shadow: 0px 0px 600px 0px rgba(0, 0, 0, .4); | |
| } | |
| .chill__frame-curve { | |
| position: absolute; | |
| display: block; | |
| height: 300px; | |
| left: -100px; | |
| top: 0px; | |
| width: 10px; | |
| background-color: white; | |
| } | |
| .chill__content { | |
| height: 100%; | |
| width: 100%; | |
| background-image: url(https://s-media-cache-ak0.pinimg.com/originals/d3/88/57/d38857eeb3ff01be07c05fbfa80d3385.png); | |
| background-repeat: repeat; | |
| background-position: -20% 75%; | |
| animation: backgroundMove 75s linear infinite; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment