azubair653 Posted February 24, 2022 Posted February 24, 2022 (edited) Site URL: https://cinochee.com/jasper Hi! I need help , I want to display h2 and p over mouse hover like this https://jasper-demo.squarespace.com/. @tuanphan @ciaccogelato Edited February 24, 2022 by azubair653
tuanphan Posted February 27, 2022 Posted February 27, 2022 the code .custom-html a { position: relative; display: block } .custom-html a:after { content: ""; background-color: #fff; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 999; opacity: 0 } .custom-html center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 999999999999; opacity: 0 } .custom-html h2,.custom-html p { display: block } .custom-html:hover center { opacity: 1 } .custom-html:hover a:after { opacity: 1 } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment