Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
:root {
--transition-n: 0.4s;
}
.an-hover-scale {
transition-duration: var(--transition-n);
}
.an-hover-scale:hover {
transform: scale(1.05,1.05);
transition-duration: var(--transition-n);
}
.an-hover-move-up {
transition-duration: var(--transition-n);
}
.an-hover-move-up:hover {
transform: translateY(-10px);
transition-duration: var(--transition-n);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment