css effects on the links to rotate a bit on hover
This commit is contained in:
parent
58fcbdada5
commit
7bf3391c7d
22
index.css
22
index.css
@ -27,4 +27,24 @@ a {
|
||||
text-decoration: none;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
animation: half-spin 1s linear infinite;
|
||||
display: inline-block; /* Ensures the text spins around its center */
|
||||
}
|
||||
@keyframes half-spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
25% {
|
||||
transform: rotate(10deg);
|
||||
}
|
||||
50% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
75% {
|
||||
transform: rotate(-10deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user