Jump to content

Remove Hover over effect when in Mobile

Recommended Posts

Hey all, 

I used the code below to create a Hover-over effect for a text box which is displayed over Bio images. It works great in web version. In mobile, hover over won't be an option, so I want to remove the effect there and instead have the text boxes be at 100% visibility all the time. What can I add or change to make that happen?

 

 

//Reveal Text - Tom//
@media only screen and (min-width: 640px){ 
#block-yui_3_17_2_1_1712931645070_131003 { 
opacity: 0 !important; 
transition: opacity 0.2s !important 

#block-yui_3_17_2_1_1712931645070_131003:hover { 
opacity: 0.9 !important; 
transition: opacity 0.2s !important 

}

@media only screen and (max-width: 640px){ 
#block-yui_3_17_2_1_1712931645070_131003 { 
opacity: 0 !important; 
transition: opacity 0.2s !important 

#block-yui_3_17_2_1_1712931645070_131003:hover { 
opacity: 0.9 !important; 
transition: opacity 0.2s !important 

}

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.