There are a few CSS snippets I use on almost every site Iv made; I figured Id share a few of the best here! Feel free to share your CSS snippets!

Spin! Makes things spin!
.spin {
animation-name: spin;
animation-duration: 10000ms;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
Hover Twist (like the MK Nav Bar)
.twist {
transition: 1s;
}
.twist:hover {
transform: rotate(360deg);
}
Blink! Simulates the old <blink> tag!
.blink {
animation: blink-animation 0.95s steps(2, start) infinite;
}
@keyframes blink-animation {
to {
visibility: hidden;
}
}
Center: Forces text centering on something (you can also make left right variants)
.center {
text-align: center !important;
}
Scrollbar styling - basic scrollbar styling on Chrome, Firefox and Safari
* {
scrollbar-color: #cd7c00 #000020;
}
::-webkit-scrollbar {
background: #000020;
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #000020;
}
::-webkit-scrollbar-thumb {
background: #cd7c00;
border-radius: 10px;
}
Bobbing: The bobbing animation used on MelonLand homepage!
.bobbing {
animation: bobbing 2s ease-in-out infinite;
animation-direction: alternate;
}
@keyframes bobbing {
0% {
transform: translateY(10px);
}
100% {
transform: translateY(-10px);
}
}