Created
December 4, 2019 09:44
-
-
Save bozzin/ac9bd67c47200480e2a759fe9187ee61 to your computer and use it in GitHub Desktop.
A Pen with a Twist - Pure CSS
This file contains 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
// Yech! Bad PUG!!! :( | |
#wrapper | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub | |
.sub |
This file contains 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
// Na-na-na-na-nope! |
This file contains 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
#wrapper, .sub { | |
background: hsla(200, 50%, 10%, 0.05); | |
overflow: hidden; | |
box-shadow: 0px 0px 20px 2px hsla(200, 50%, 10%, 0.1) inset; | |
border: 1px solid hsla(200, 50%, 10%, 0.1); | |
} | |
#wrapper { | |
width: 500px; | |
height: 500px; | |
margin: calc(50vh - 250px) calc(50vw - 250px); | |
} | |
.sub { | |
position: relative; | |
width: 90%; | |
height: 90%; | |
transform-origin: 50% 50%; | |
transform: rotate(12deg); | |
animation: 100s rot linear infinite; | |
} | |
@keyframes rot { | |
0% { transform: rotate(12deg);} | |
100% { transform: rotate(372deg);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment