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

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

Template page
Content deleted Content added
No edit summary
No edit summary
Line 10: Line 10:
@keyframes glitch {
@keyframes glitch {
from {
from {
box-shadow: -2px 0 1px red;
text-shadow: -2px 0 1px red;
left: -1px;
left: -1px;
}
}


to {
to {
box-shadow: 2px 0 2px red;
text-shadow: 2px 0 2px red;
left: 1px;
left: 1px;
}
}

Revision as of 08:03, March 8, 2025

.glitch-effect {
	position: relative;
	animation-duration: 0.2s;
	animation-name: glitch;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-timing-function: linear;
}

@keyframes glitch {
	from {
		text-shadow: -2px 0 1px red;
		left: -1px;
	}

	to {
		text-shadow: 2px 0 2px red;
		left: 1px;
	}
}