r/javascript • • Mar 13 '22

Javascript mouse hover 3d card effect :D

https://codepen.io/rudtjd2548/details/GRyRwoj

[removed] — view removed post

114 Upvotes

22 comments sorted by

View all comments

7

u/Todoce Mar 13 '22

Neat!
Any plans on handling touch events? :)

3

u/yummy-codding Mar 13 '22

of course I do! currently I'm working on posting youtube series, so as soon as I make it, and then I'll post some cool works about touch events! thanks for you interests!

2

u/Todoce Mar 13 '22

Nice, don't forget to wrap the cards with a container with a fixed height, otherwise you will push content that comes after the card while resizing it during the mouse hover event.

You might even get a scrollbar that pops up when hovering the card (I got this when I checked the codepen on my smaller second monitor)

1

u/yummy-codding Mar 13 '22

oh thank you for your feedback! btw I really didn't fully understand what you meant.

I wrapped 'card'div with 'frame' div having 300px 450px fixed size, sorry I dont understand..!😓