summaryrefslogtreecommitdiff
path: root/src/components/Flashcard/cards.css
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Flashcard/cards.css')
-rw-r--r--src/components/Flashcard/cards.css86
1 files changed, 86 insertions, 0 deletions
diff --git a/src/components/Flashcard/cards.css b/src/components/Flashcard/cards.css
new file mode 100644
index 0000000..2f75ad6
--- /dev/null
+++ b/src/components/Flashcard/cards.css
@@ -0,0 +1,86 @@
+body {
+ font-family: "Inter", sans-serif;
+}
+
+.perspective {
+ perspective: 1000px;
+}
+
+.transform-style-preserve-3d {
+ transform-style: preserve-3d;
+}
+
+.backface-hidden {
+ backface-visibility: hidden;
+ -webkit-backface-visibility: hidden;
+ /* Safari */
+}
+
+.rotate-y-180 {
+ transform: rotateY(180deg);
+}
+
+/* Slide animations */
+@keyframes slide-in-right {
+ from {
+ transform: translateX(100%);
+ opacity: 0;
+ }
+
+ to {
+ transform: translateX(0);
+ opacity: 1;
+ }
+}
+
+.animate-slide-in-right {
+ animation: slide-in-right 0.5s ease-out forwards;
+}
+
+@keyframes slide-in-left {
+ from {
+ transform: translateX(-100%);
+ opacity: 0;
+ }
+
+ to {
+ transform: translateX(0);
+ opacity: 1;
+ }
+}
+
+.animate-slide-in-left {
+ animation: slide-in-left 0.5s ease-out forwards;
+}
+
+@keyframes slide-out-left {
+ from {
+ transform: translateX(0);
+ opacity: 1;
+ }
+
+ to {
+ transform: translateX(-100%);
+ opacity: 0;
+ }
+}
+
+.animate-slide-out-left {
+ animation: slide-out-left 0.5s ease-in forwards;
+}
+
+@keyframes slide-out-right {
+ from {
+ transform: translateX(0);
+ opacity: 1;
+ }
+
+ to {
+ transform: translateX(100%);
+ opacity: 0;
+ }
+}
+
+.animate-slide-out-right {
+ animation: slide-out-right 0.5s ease-in forwards;
+} \ No newline at end of file