summaryrefslogtreecommitdiff
path: root/src/scss/flip-card.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/scss/flip-card.scss')
-rw-r--r--src/scss/flip-card.scss31
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);
+}
+