diff options
author | Adam Carpenter <atc@53hor.net> | 2020-04-23 18:01:31 -0400 |
---|---|---|
committer | Adam Carpenter <atc@53hor.net> | 2020-04-23 18:01:31 -0400 |
commit | ac6ea8dc4da8be20f69088ee71f32b05339c910c (patch) | |
tree | 0d34ff097a3cf076b64604a33d29f36de092b89a /src/scss/flip-card.scss | |
parent | 2291e6fb5ad6e51669ad1147f18aa10ea603488a (diff) | |
download | carpentertutoring-ac6ea8dc4da8be20f69088ee71f32b05339c910c.tar.xz carpentertutoring-ac6ea8dc4da8be20f69088ee71f32b05339c910c.zip |
added temporary flip cards, ran through htmlhint and prettier
Diffstat (limited to 'src/scss/flip-card.scss')
-rw-r--r-- | src/scss/flip-card.scss | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/scss/flip-card.scss b/src/scss/flip-card.scss new file mode 100644 index 0000000..1f9af5b --- /dev/null +++ b/src/scss/flip-card.scss @@ -0,0 +1,31 @@ +.flip-card { + perspective: 1000px; +} + +.flip-card-inner { + position: relative; + width: 100%; + height: 100%; + transition: transform 0.8s; + transform-style: preserve-3d; +} + +.flip-card:hover .flip-card-inner { + transform: rotateY(180deg); +} + +.flip-card-front, .flip-card-back { + position: absolute; + width: 100%; + height: 100%; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} + +.flip-card-front { +} + +.flip-card-back { + transform: rotateY(180deg); +} + |