Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Appearing Text Effect/styles.css: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tag: Manual revert
No edit summary
Line 57: Line 57:
@keyframes appear-disappear {
@keyframes appear-disappear {
0% {
0% {
display: block;
opacity: 0;
opacity: 0;
transform: scale(0.95);
transform: scale(0.95);
Line 67: Line 68:
opacity: 0;
opacity: 0;
transform: scale(1.05);
transform: scale(1.05);
display: none;
}
}
}
}
Line 82: Line 82:
.fade-rtl {
.fade-rtl {
animation-name: fade-right-to-left;
animation-name: fade-right-to-left;
}

.fade-away {
display: none;
}
}



Revision as of 02:54, May 4, 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 {
	width: fit-content;
	animation-fill-mode: forwards;
	animation-timing-function: ease-in-out;
}

/* Directional Fade Animations */
@keyframes fade-center {
	0% {
		opacity: 0;
		transform: scale(0.95);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fade-left-to-right {
	0% {
		opacity: 0;
		transform: translateX(-50%);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fade-right-to-left {
	0% {
		opacity: 0;
		transform: translateX(50%);
	}
	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Appear and Fade Away Motion */
@keyframes appear-disappear {
	0% {
		display: block;
		opacity: 0;
		transform: scale(0.95);
	}
	50% {
		opacity: 1;
		transform: scale(1);
	}
	100% {
		opacity: 0;
		transform: scale(1.05);
	}
}

/* Directional Class Bindings */
.fade-center {
	animation-name: fade-center;
}

.fade-ltr {
	animation-name: fade-left-to-right;
}

.fade-rtl {
	animation-name: fade-right-to-left;
}

.fade-away {
	display: none;
}

/* Fade After Appear */
.fade-center.fade-away {
	animation-name: fade-center, appear-disappear;
	animation-fill-mode: both;
}

.fade-ltr.fade-away {
	animation-name: fade-left-to-right, appear-disappear;
	animation-fill-mode: both;
}

.fade-rtl.fade-away {
	animation-name: fade-right-to-left, appear-disappear;
	animation-fill-mode: both;
}