Template:Appearing Text Effect/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary Tag: Manual revert |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 15: | Line 15: | ||
/* Wrapper and Base Animation Classes */ |
/* Wrapper and Base Animation Classes */ |
||
.appear-effect { |
.appear-effect { |
||
content-visibility: hidden; |
|||
width: fit-content; |
width: fit-content; |
||
animation-fill-mode: forwards; |
animation-fill-mode: forwards; |
||
| Line 23: | Line 24: | ||
@keyframes fade-center { |
@keyframes fade-center { |
||
0% { |
0% { |
||
content-visibility: hidden; |
|||
opacity: 0; |
opacity: 0; |
||
transform: scale(0.95); |
transform: scale(0.95); |
||
| Line 28: | Line 30: | ||
100% { |
100% { |
||
content-visibility: visible; |
|||
opacity: 1; |
opacity: 1; |
||
transform: scale(1); |
transform: scale(1); |
||
| Line 35: | Line 38: | ||
@keyframes fade-left-to-right { |
@keyframes fade-left-to-right { |
||
0% { |
0% { |
||
content-visibility: hidden; |
|||
opacity: 0; |
opacity: 0; |
||
transform: translateX(-50%); |
transform: translateX(-50%); |
||
| Line 40: | Line 44: | ||
100% { |
100% { |
||
content-visibility: visible; |
|||
opacity: 1; |
opacity: 1; |
||
transform: translateX(0); |
transform: translateX(0); |
||
| Line 47: | Line 52: | ||
@keyframes fade-right-to-left { |
@keyframes fade-right-to-left { |
||
0% { |
0% { |
||
content-visibility: hidden; |
|||
opacity: 0; |
opacity: 0; |
||
transform: translateX(50%); |
transform: translateX(50%); |
||
| Line 52: | Line 58: | ||
100% { |
100% { |
||
content-visibility: visible; |
|||
opacity: 1; |
opacity: 1; |
||
transform: translateX(0); |
transform: translateX(0); |
||
| Line 60: | Line 67: | ||
@keyframes appear-disappear { |
@keyframes appear-disappear { |
||
0% { |
0% { |
||
content-visibility: visible; |
|||
opacity: 0; |
opacity: 0; |
||
transform: scale(0.95); |
transform: scale(0.95); |
||
Latest revision as of 04:36, September 18, 2025
/* Alignment Classes */
.position-left {
margin-right: auto;
}
.position-right {
margin-left: auto;
}
.position-center {
margin-left: auto;
margin-right: auto;
}
/* Wrapper and Base Animation Classes */
.appear-effect {
content-visibility: hidden;
width: fit-content;
animation-fill-mode: forwards;
animation-timing-function: ease-in-out;
}
/* Directional Fade Animations */
@keyframes fade-center {
0% {
content-visibility: hidden;
opacity: 0;
transform: scale(0.95);
}
100% {
content-visibility: visible;
opacity: 1;
transform: scale(1);
}
}
@keyframes fade-left-to-right {
0% {
content-visibility: hidden;
opacity: 0;
transform: translateX(-50%);
}
100% {
content-visibility: visible;
opacity: 1;
transform: translateX(0);
}
}
@keyframes fade-right-to-left {
0% {
content-visibility: hidden;
opacity: 0;
transform: translateX(50%);
}
100% {
content-visibility: visible;
opacity: 1;
transform: translateX(0);
}
}
/* Appear and Fade Away Motion */
@keyframes appear-disappear {
0% {
content-visibility: visible;
opacity: 0;
transform: scale(0.95);
}
50% {
opacity: 1;
}
100% {
content-visibility: hidden;
opacity: 0;
transform: scale(1.05);
}
}
/* Directional Class Bindings */
.fade-center {
animation-name: fade-center;
}
.fade-left {
animation-name: fade-left-to-right;
}
.fade-right {
animation-name: fade-right-to-left;
}
/* Fade After Appear */
.fade-away {
animation-fill-mode: both;
}
.fade-center.fade-away {
animation-name: fade-center, appear-disappear;
}
.fade-left.fade-away {
animation-name: fade-left-to-right, appear-disappear;
}
.fade-right.fade-away {
animation-name: fade-right-to-left, appear-disappear;
}