Floating affect | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Floating affect

I want to know how to make an element appear to float when the mouse is over it using js or CSS. Can anyone help me?

4th Jun 2018, 7:29 PM
Daniel Cooper
Daniel Cooper - avatar
1 Answer
- 1
Use transition on the element you want to hover over, and on hover add scale(), or box shadow...or combine both... Try it, play around... It will inspire you further...
4th Jun 2018, 10:16 PM
Sladjana Dragic
Sladjana Dragic - avatar