Skip to content

Instantly share code, notes, and snippets.

@danichim
Created April 16, 2019 11:37
Show Gist options
  • Save danichim/9b395f57189fd531328cffd5b57bea3d to your computer and use it in GitHub Desktop.
Save danichim/9b395f57189fd531328cffd5b57bea3d to your computer and use it in GitHub Desktop.
balck deep hole
body {
background: #000;
display: grid;
place-content: center;
height: 100vh;
filter: blur(8px);
}
b, b:before, b:after {
display: block;
border-radius: 50%;
}
b {
width: 50vmin;
height: 51vmin;
box-shadow: 1vmin 0 3vmin 2vmin #f50,
inset -1vmin 0 3vmin 4vmin #f80,
-4vmin 0 35vmin 0 #f60;
animation: bh 5s linear infinite;
}
@keyframes bh {
0% {transform: rotate(0deg)}
100% {transform: rotate(-360deg)}
}
b:before, b:after {
content: "";
background: white;
position: relative;
top: 6vmin;
}
b:before {
width: 3vmin;
height: 3vmin;
left: 40vmin;
box-shadow: yellow 0 0 2vmin 2vmin,
yellow 2vmin 4vmin 2vmin 0.5vmin;
}
b:after {
width: 38vmin;
height: 38vmin;
opacity: 0.03;
left: -14vmin;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment