+ 1

FONT AWESOME movement

I have imported the social fonts from FONT AWESOME but I want it to MOVE UP (top: 5px) for few pixels on hovering it. But I can’t find a perfect solution. Here is my code please leave your code bits URL in the answers. https://code.sololearn.com/WwFz2bbiUw9V/?ref=app

14th Apr 2020, 8:12 PM
Adarsh Mamgain
Adarsh Mamgain - avatar
3 odpowiedzi
+ 1
Hi. Try this: svg:hover { color: #6900d3; transform: translateY(-5px); }
14th Apr 2020, 8:43 PM
DRen
DRen - avatar
+ 2
@DRen it worked thank you :-) Also it will be applied to all SVG, is there any way to target particualar font. eg: i only want to hover my Instagram font.
15th Apr 2020, 11:33 AM
Adarsh Mamgain
Adarsh Mamgain - avatar
+ 1
I suggest use an id for that particular element
15th Apr 2020, 1:21 PM
DRen
DRen - avatar