-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move animation into a separate file
- Loading branch information
Showing
3 changed files
with
97 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
@keyframes shadow-pulse { | ||
0% { | ||
text-shadow: 0 0 0.0rem var(--cyan-500); | ||
} | ||
50% { | ||
text-shadow: 0 0 0.30rem var(--cyan-500); | ||
} | ||
100% { | ||
text-shadow: 0 0 0.0rem var(--cyan-500); | ||
} | ||
} | ||
|
||
/* ---------------------------------- */ | ||
/* ---- Letter Animation UP CSS ---- */ | ||
/* -------------------------------- */ | ||
.letter-up__box { | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: relative; | ||
width: 0.7em; | ||
height: 1em; | ||
} | ||
|
||
.letter-up__word { | ||
position: absolute; | ||
display: inline-block; | ||
font-weight: 500; | ||
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); | ||
transform: rotate(0deg) translate(0, 0); | ||
margin: 0; | ||
} | ||
|
||
.letter-up__word--rotate-even { | ||
transform: rotate(-10deg) translate(0, -1.2rem); | ||
} | ||
|
||
.letter-up__word--rotate-odd { | ||
transform: rotate(10deg) translate(0, -1.2rem); | ||
} | ||
/* --------------------- */ | ||
|
||
|
||
/* ----------------------------------- */ | ||
/* ---- Fade In UP Animation CSS ---- */ | ||
/* --------------------------------- */ | ||
.fade-in-up-animation { | ||
display: inline-block; | ||
opacity: 0; | ||
transform: translateY(2.5rem); | ||
transition: opacity 1.3s ease-in-out, transform 1s ease-in-out; | ||
} | ||
|
||
.fade-in-up-animation--active { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
|
||
/* --------------------- */ | ||
|
||
|
||
/* -------------------------------- */ | ||
/* ---- Fade In Animation CSS ---- */ | ||
/* ------------------------------ */ | ||
.fade-in-animation { | ||
display: inline-block; | ||
opacity: 0; | ||
transition: opacity 1.3s ease-in-out; | ||
} | ||
|
||
.fade-in-animation--active { | ||
opacity: 1; | ||
} | ||
|
||
|
||
/* --------------------------------- */ | ||
/* ---- Bouncing Animation CSS ---- */ | ||
/* ------------------------------- */ | ||
.bouncing-animation { | ||
display: inline-block; | ||
animation: bouncing 1.5s ease-in-out infinite; | ||
} | ||
|
||
@keyframes bouncing { | ||
0% { | ||
transform: translateY(0); | ||
} | ||
50% { | ||
transform: translateY(-0.5rem); | ||
} | ||
100% { | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
/* --------------------- */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters