Soft Heart Engineer Posted on Nov 27, 2024 2 1 Flip Card on Hover in CSS #codepen #webdev #html #css Check out this Pen I made! Top comments (3) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Eddocode Eddocode Eddocode Follow Front-end developer with a great passion for videogames and also creative projects Education Platzi Joined Jan 1, 2022 • Dec 17 '24 Dropdown menu Copy link Hide Report abuse Great effect, looks nice :D Collapse Expand Dylan Trepos Dylan Trepos Dylan Trepos Follow Joined Feb 26, 2025 • Feb 26 Dropdown menu Copy link Hide Report abuse One advice, you should rather do the hover detection on parent card, like that you'll not have a weird effect when slowly moving mouse from left or right for example. Instead of .card:hover { transform: rotateY(180deg); } Enter fullscreen mode Exit fullscreen mode It would be better to set .card-container:hover .card { transform: rotateY(180deg); } Enter fullscreen mode Exit fullscreen mode Collapse Expand AkashMaurya AkashMaurya AkashMaurya Follow Joined Dec 12, 2021 • Feb 11 • Edited on Feb 11 • Edited Dropdown menu Copy link Hide Report abuse its very Good Sir :) Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
Great effect, looks nice :D
One advice, you should rather do the hover detection on parent card, like that you'll not have a weird effect when slowly moving mouse from left or right for example.
Instead of
It would be better to set
its very Good Sir :)