CarlosLima 148 Posted July 2, 2022 Share Posted July 2, 2022 /* #14 - Magnification effect on the poster */ .cardBox{transition:all 0.1s;} .cardBox:hover {transform:scale(1.075);transition:all 0.1s;} Hi, I have this code that displays a magnification effect on posters on hover, however, I prefer the effect to be valid only on the homepage and not on the details screen. Thank you for that. Link to comment Share on other sites More sharing options...
Solution Happy2Play 8282 Posted July 2, 2022 Solution Share Posted July 2, 2022 20 minutes ago, CarlosLima said: /* #14 - Magnification effect on the poster */ .cardBox{transition:all 0.1s;} .cardBox:hover {transform:scale(1.075);transition:all 0.1s;} Hi, I have this code that displays a magnification effect on posters on hover, however, I prefer the effect to be valid only on the homepage and not on the details screen. Thank you for that. Like this /* #14 - Magnification effect on the poster */ [data-type="home"] .cardBox{transition:all 0.1s;} [data-type="home"] .cardBox:hover {transform:scale(1.075);transition:all 0.1s;} 1 Link to comment Share on other sites More sharing options...
CarlosLima 148 Posted July 2, 2022 Author Share Posted July 2, 2022 You are the best. Amazing. Thank you very much. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now