Jump to content
David Morales

Hover Pop-Up Creation

Recommended Posts

Hello,

 

Where might I find a way to add a piece of code for a Shopify store's Product Liquid page where I added a Badge to the site and like to add a little pop-up to it so when one hovers their mouse over it it increases it's size so that it could be read - almost like adding a magnifier to the badge?

Share this post


Link to post
Share on other sites

1)You need a parent container element using position: relative;

2) A child container using position: absolute, and top: left: properties to position to required position on hover.

3) set the parent element so when it is hover over :hover that it should use transform: scale() to increase size to requirements of child element which is the pop-up.

https://www.w3schools.com/cssref/css3_pr_transform.asp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×