Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Can I create a hover effect over a background image?


andrewmel

Question

Site URL: https://alligator-buffalo-slhk.squarespace.com/projects-1

Hi, Does anyone know if i can create a hover effect on a background image using CSS ?  (as opposed to an image block). I want to create a white overlay on all backgrounds on this page,  

https://alligator-buffalo-slhk.squarespace.com/projects-1

... and only reveal full colour of image on hover.

(We are using full bleed backgrounds, rather than image blocks, to achieve a transparency on the header)

-Andrew

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
16 hours ago, andrewmel said:

ok, that's done @tuanphan  password is assist

Add to Page Settings > Advanced > Header

<style>
  #page section .section-background:after {
    background: rgba(255,255,255,0.75);
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
  #page section:hover .section-background:after {
    opacity: 0;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

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


×
×
  • Create New...