Jump to content

How to apply CSS to specific image blocks on 7.1 FE

Recommended Posts

  • Replies 6
  • Views 690
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 months later...

Hey guys! Trying to do something similar here, keying in on hover-over animation for only the images with the numbers 1, 2, and 3 listed on them. Here's the link and the code thus far. Appreciate any help!

https://hexaflexagon-gopher-sffb.squarespace.com/
PW: dreamrut

.sqs-block .fluid-image-container::after { 
   content: 'click';
  font-size: 20px;
  font-type: Brandon Grotesque, helvetica;
  font-style: bold;
  position: absolute;
  top: 0;
  left: 0;
  background: #fdebd3;
    width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 52px;
  border-radius: 100%;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transition: opacity 1s;
}
.sqs-block:hover .fluid-image-container::after {
  opacity: 0.5;
}

Link to comment
On 12/4/2022 at 12:33 PM, travisandrew said:

Hey guys! Trying to do something similar here, keying in on hover-over animation for only the images with the numbers 1, 2, and 3 listed on them. Here's the link and the code thus far. Appreciate any help!

https://hexaflexagon-gopher-sffb.squarespace.com/
PW: dreamrut

.sqs-block .fluid-image-container::after { 
   content: 'click';
  font-size: 20px;
  font-type: Brandon Grotesque, helvetica;
  font-style: bold;
  position: absolute;
  top: 0;
  left: 0;
  background: #fdebd3;
    width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 52px;
  border-radius: 100%;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transition: opacity 1s;
}
.sqs-block:hover .fluid-image-container::after {
  opacity: 0.5;
}

It looks like you solved this or you want to make click text to clickable?

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

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.