A Pen by Adrian Samuel on CodePen.
Created
January 25, 2018 00:31
-
-
Save Adrian-Samuel/5a9ad470d586415c37308a94c57b66f4 to your computer and use it in GitHub Desktop.
Seismic Grid
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
table | |
tr | |
td | |
td | |
td | |
td | |
td | |
tr | |
td | |
td | |
td | |
td | |
td | |
tr | |
td | |
td | |
td | |
td | |
td | |
tr | |
td | |
td | |
td | |
td | |
td | |
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
td { | |
width: 50px; | |
height: 50px; | |
animation: move 3s infinite; | |
border: 1px solid rbga(0, 0, 0, 0.6); | |
position: relative; | |
border: 1px solid rbga(0, 0, 0, 0.5); | |
position: relative; | |
cursor: pointer; | |
box-shadow: 8px 8px 8px 1px rgba(0, 0, 0, 0.3); | |
transition: 150ms; | |
&:active { | |
box-shadow: 0px 0px 0px 0px; | |
} | |
} | |
table { | |
margin: 0 auto; | |
} | |
@keyframes move { | |
0% {box-shadow: 4px 2px 2px 3px rgba(0, 0, 0, 0.4) | |
} | |
25% {;box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.4);} | |
50% {box-shadow: 4px 2px 2px 3px rgba(0, 0, 0, 0.4)} | |
75% {box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.4);} | |
100% {box-shadow: 4px 2px 2px 3px rgba(0, 0, 0, 0.4)} | |
} | |
td:nth-child(2n +1) { | |
animation: moveme 3s infinite; | |
} | |
td:nth-child(5n +1) { | |
animation: moveme 3s infinite; | |
} | |
@keyframes moveme { | |
0% {box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.4) | |
} | |
25% {;box-shadow: 4px 2px 2px 3px rgba(0, 0, 0, 0.4);} | |
50% {box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.4)} | |
75% {box-shadow: 4px 2px 2px 3px rgba(0, 0, 0, 0.4);} | |
100% {box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.4)} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment