Jump to content

Instagram Block photo hover

Recommended Posts

Is there a way to make my Instagram photos opaque with the logo when hovering over them? 

First photo attached is my Instagram feed on my website, second photo is an example of my request. 

Screenshot 2024-08-13 at 20.48.22.png

Screenshot 2024-08-13 at 20.53.53.png

Edited by LULU3
Link to comment
  • LULU3 changed the title to Instagram Block photo hover
  • Replies 11
  • Views 785
  • Created
  • Last Reply

Top Posters In This Topic

On 8/26/2024 at 3:52 AM, LULU3 said:

@tuanphan any update on this please?

Use this code to Custom CSS box

/* hover */
#block-66b1395efac2a52f0691f786 {
.slide a:before {
    content: "";
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
	/* caption hover */
.slide a:after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    content: "";
    background-image: url(https://w7.pngwing.com/pngs/31/164/png-transparent-instagram-vector-brand-logos-icon.png);
    background-size: contain;
    width: 30px;
    height: 30px;
}
.slide:hover a:before, .slide: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!)

Link to comment

Thank you, that worked. Is there a way to make the IG icon look more like the attached image please, where it is white and translucent around/inbetween it? 

7 hours ago, tuanphan said:

Use this code to Custom CSS box

Screenshot 2024-08-28 at 13.28.22.png

Link to comment
On 8/28/2024 at 7:32 PM, LULU3 said:

Thank you, that worked. Is there a way to make the IG icon look more like the attached image please, where it is white and translucent around/inbetween it? 

Screenshot 2024-08-28 at 13.28.22.png

I used random Instagram icon on Internet, if you can design an Instagram icon and send me, I will update to the code

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!)

Link to comment
  • 1 month later...

Use this code

/* hover */
#block-66b1395efac2a52f0691f786 {
.slide a:before {
    content: "";
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
	/* caption hover */
.slide a:after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    content: "";
    background-image: url(https://content.invisioncic.com/p289038/monthly_2024_10/black-instagram-logo-3497.png.d1b5efb2e43de160668d518b9152798a.png);
    background-size: contain;
    width: 30px;
    height: 30px;
}
.slide:hover a:before, .slide: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!)

Link to comment
On 10/8/2024 at 11:11 AM, tuanphan said:

Use this code

/* hover */
#block-66b1395efac2a52f0691f786 {
.slide a:before {
    content: "";
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
	/* caption hover */
.slide a:after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    text-align: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    content: "";
    background-image: url(https://content.invisioncic.com/p289038/monthly_2024_10/black-instagram-logo-3497.png.d1b5efb2e43de160668d518b9152798a.png);
    background-size: contain;
    width: 30px;
    height: 30px;
}
.slide:hover a:before, .slide:hover a:after {
    opacity: 1;
}}

 

Thank you, this looks great on desktop but on mobile the icons are too big. How do I reduce them in size on mobile please?

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...

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.