Product preview card component

Solution retrospective
Hello everyone!
I used visibility:hidden; and visibility:visible; to show the image on mobile and hide on desktop. Is there a better way of doing this?
And any feedback is welcome.
THANK YOU!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on SachithKarunathilake's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord