Skip to content

Instantly share code, notes, and snippets.

@yugarinn
Created March 13, 2020 12:04
Show Gist options
  • Select an option

  • Save yugarinn/8ffc974329123968fa6ab64994ea141d to your computer and use it in GitHub Desktop.

Select an option

Save yugarinn/8ffc974329123968fa6ab64994ea141d to your computer and use it in GitHub Desktop.
chill
<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>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
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