summaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-06 21:58:38 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-06 21:58:38 +0100
commitc0a15ffdb798b7c9567827095cf1154614ca6fc4 (patch)
tree42aa8c6eef3ef81ff9ebc481ca18375fb05e5599 /src/styles
parent7f58c9217cdd9fe1ef3f301f2dc9c895382d763f (diff)
fix(animations): avoid zomm in/out effect on mobile
Due to translateX transform and overflow, on small screens a zoom in / zoom out effect happened. So I adjust the animations for branding and job.
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/base/_animations.scss43
1 files changed, 11 insertions, 32 deletions
diff --git a/src/styles/base/_animations.scss b/src/styles/base/_animations.scss
index ff12c8c..ad870e9 100644
--- a/src/styles/base/_animations.scss
+++ b/src/styles/base/_animations.scss
@@ -75,7 +75,7 @@
@keyframes flip-logo {
0%,
- 85% {
+ 90% {
transform: rotateY(180deg);
}
@@ -84,48 +84,27 @@
}
}
-@keyframes branding-name-typing {
+@keyframes hide-text {
0%,
- 20% {
- transform: scaleX(1) translateX(0);
- transform-origin: right;
- visibility: visible;
- }
-
100% {
- transform: scaleX(1) translateX(100%);
- transform-origin: right;
- }
-}
-
-@keyframes branding-job-typing {
- 0% {
- transform: scaleX(1) translateX(0);
+ transform: translateX(0);
transform-origin: right;
content: "";
visibility: visible;
}
+}
- 48% {
- content: "";
- }
-
- 49% {
- content: "|";
- }
-
- 51% {
- transform: scaleX(1) translateX(0);
- transform-origin: right;
- }
-
- 70% {
- transform: scaleX(1) translateX(100%);
+@keyframes typing {
+ 0%,
+ 35% {
+ transform: translateX(0);
transform-origin: right;
+ content: "|";
+ visibility: visible;
}
100% {
- transform: scaleX(0) translateX(100%);
+ transform: translateX(100%);
transform-origin: right;
}
}