@rahulkumar215
Posted
Hi Sristhi 👋, Been a long time!,
Anyway,
For this
What would have been the best approach to deal with active states. Can it be done using CSS or is JS required?
I think there is no problem with using JS for active states, and In CSS, you can use the :hover
or :active
, to make the element active on click
and on hover
. However the hover
state does not work in mobile phones, so you should use the :active
.
@itsmesrishti
Posted
@rahulkumar215 Hi Rahul! Yes it has been a while!
I totally forgot about :active! Thank you for the suggestion!
@itsmesrishti
Posted
@rahulkumar215 Hi Rahul! Yes it has been a while!
I totally forgot about :active! Thank you for the suggestion!