Template:Appearing Text Effect/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary Tag: Manual revert |
||
| (61 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* Alignment Classes */ |
|||
.appear-effect-wrapper { |
|||
.position-left { |
|||
margin-right: auto; |
|||
z-index: 1000; |
|||
pointer-events: none; |
|||
} |
} |
||
. |
.position-right { |
||
margin-left: auto; |
|||
position: relative; |
|||
display: inline-block; |
|||
animation-fill-mode: forwards; |
|||
animation-timing-function: ease-in-out; |
|||
} |
} |
||
.position-center { |
|||
/* Alignment Classes */ |
|||
margin-left: auto; |
|||
margin-right: auto; |
|||
position: absolute; |
|||
left: 0; |
|||
text-align: left; |
|||
} |
} |
||
/* Wrapper and Base Animation Classes */ |
|||
.appear-right { |
|||
.appear-effect { |
|||
position: absolute; |
|||
content-visibility: hidden; |
|||
right: 0; |
|||
width: fit-content; |
|||
text-align: right; |
|||
animation-fill-mode: forwards; |
|||
animation-timing-function: ease-in-out; |
|||
} |
} |
||
/* Directional Fade Animations */ |
|||
.appear-center { |
|||
@keyframes fade-center { |
|||
position: absolute; |
|||
0% { |
|||
left: 50%; |
|||
content-visibility: hidden; |
|||
transform: translateX(-50%); |
|||
opacity: 0; |
|||
text-align: center; |
|||
transform: scale(0.95); |
|||
} |
|||
100% { |
|||
content-visibility: visible; |
|||
opacity: 1; |
|||
transform: scale(1); |
|||
} |
|||
} |
} |
||
@keyframes fade-left-to-right { |
|||
/* Disappear Animation */ |
|||
0% { |
|||
.fade-away { |
|||
content-visibility: hidden; |
|||
animation-name: appear-disappear; |
|||
opacity: 0; |
|||
animation-fill-mode: both; |
|||
transform: translateX(-50%); |
|||
} |
|||
100% { |
|||
content-visibility: visible; |
|||
opacity: 1; |
|||
transform: translateX(0); |
|||
} |
|||
} |
} |
||
@keyframes fade-right-to-left { |
|||
/* Default Appear Motion */ |
|||
0% { |
|||
@keyframes appear-motion { |
|||
content-visibility: hidden; |
|||
0% { |
|||
opacity: 0; |
|||
transform: translateX(50%); |
|||
} |
|||
100% { |
|||
100% { |
|||
opacity: 1; |
|||
content-visibility: visible; |
|||
transform: scale(1); |
|||
opacity: 1; |
|||
} |
|||
transform: translateX(0); |
|||
} |
|||
} |
} |
||
/* |
/* Appear and Fade Away Motion */ |
||
@keyframes appear-disappear { |
@keyframes appear-disappear { |
||
0% { |
|||
content-visibility: visible; |
|||
opacity: 0; |
|||
opacity: 0; |
|||
transform: scale(0.95); |
|||
transform: scale(0.95); |
|||
} |
|||
} |
|||
50% { |
|||
opacity: 1; |
|||
50% { |
|||
transform: scale(1); |
|||
opacity: 1; |
|||
} |
|||
} |
|||
100% { |
|||
opacity: 0; |
|||
100% { |
|||
transform: scale(1.05); |
|||
content-visibility: hidden; |
|||
} |
|||
opacity: 0; |
|||
transform: scale(1.05); |
|||
} |
|||
} |
} |
||
/* Directional |
/* Directional Class Bindings */ |
||
.fade-center { |
|||
animation-name: fade-center; |
|||
0% { |
|||
opacity: 0; |
|||
transform: scale(0.95); |
|||
} |
|||
100% { |
|||
opacity: 1; |
|||
transform: scale(1); |
|||
} |
|||
} |
} |
||
.fade-left { |
|||
animation-name: fade-left-to-right; |
|||
0% { |
|||
opacity: 0; |
|||
transform: translateX(-50%); |
|||
} |
|||
100% { |
|||
opacity: 1; |
|||
transform: translateX(0); |
|||
} |
|||
} |
} |
||
.fade-right { |
|||
animation-name: fade-right-to-left; |
|||
0% { |
|||
opacity: 0; |
|||
transform: translateX(50%); |
|||
} |
|||
100% { |
|||
opacity: 1; |
|||
transform: translateX(0); |
|||
} |
|||
} |
} |
||
/* Fade After Appear */ |
|||
/* Directional Animation Class Bindings */ |
|||
.fade- |
.fade-away { |
||
animation-fill-mode: both; |
|||
} |
|||
.fade-center.fade-away { |
|||
animation-name: fade-center, appear-disappear; |
|||
} |
} |
||
.fade- |
.fade-left.fade-away { |
||
animation-name: fade-left-to-right, appear-disappear; |
|||
} |
} |
||
.fade- |
.fade-right.fade-away { |
||
animation-name: fade-right-to-left, appear-disappear; |
|||
} |
} |
||
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;
}