Skip to content

Commit 324e945

Browse files
navitem hover animation
1 parent 00a8c5e commit 324e945

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,16 @@ html {
141141
scrollbar-width: none; /* Firefox */
142142
}
143143
}
144+
145+
.link-with-animation::after {
146+
content: '';
147+
display: block;
148+
width: 0;
149+
height: 2px;
150+
background-color: currentColor;
151+
transition: width 0.2s ease-in-out;
152+
}
153+
154+
.link-with-animation:hover::after {
155+
width: 100%;
156+
}

0 commit comments

Comments
 (0)