Answer the question
In order to leave comments, you need to log in
How to make such a hover effect without js?
riccardozanutta.com
Answer the question
In order to leave comments, you need to log in
Here is an example with different colors: https://codepen.io/abnmt/pen/RMompQ
Lines do through :before/:after and assign them a transition and zero width
on :hover change the width of the lines
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question