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 {
top: 0;
left: 0;
}

25% {
top: -4px;
top: -4px;
left: 4px;
left: 4px;
}
}


50% {
to {
top: 4px;
top: 4px;
left: -4px;
left: -4px;
}

to {
top: 0;
left: 0;
}
}
}
}

Revision as of 08:00, March 8, 2025

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

@keyframes glitch {
	from {
		top: -4px;
		left: 4px;
	}

	to {
		top: 4px;
		left: -4px;
	}
}