summaryrefslogtreecommitdiff
path: root/sass/abstracts/_animations.scss
diff options
context:
space:
mode:
Diffstat (limited to 'sass/abstracts/_animations.scss')
-rw-r--r--sass/abstracts/_animations.scss32
1 files changed, 32 insertions, 0 deletions
diff --git a/sass/abstracts/_animations.scss b/sass/abstracts/_animations.scss
new file mode 100644
index 0000000..819b356
--- /dev/null
+++ b/sass/abstracts/_animations.scss
@@ -0,0 +1,32 @@
+@keyframes fade-in {
+ 0% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+}
+
+// text start on the left and transparent when the page loads, then moves into regular position
+@keyframes moveInLeft {
+ 0% {
+ opacity: 0;
+ transform: translateX(-10rem);
+ }
+ 100% {
+ opacity: 1;
+ transform: translate(0);
+ }
+}
+
+// skew to match the design of the .text-container class
+@keyframes moveInRight {
+ 0% {
+ opacity: 0;
+ transform: translateX(10rem) skewX(-12deg);
+ }
+ 100% {
+ opacity: 1;
+ transform: translate(0) skewX(-12deg);
+ }
+}