Jump to content

Code won't work unless i click edit

Recommended Posts

Site URL: https://upstatelandservices.squarespace.com/about-us

The image hover code i have on this page is suppose to scale up within it's boundaries but it will only do that once I click "edit page"

https://upstatelandservices.squarespace.com/about-us

password: landscape

Here is the code:

.sqs-block-image img {
  transform: scale(1) !important;
  transition: all ease-in-out 1s !important;
}

.sqs-block-image:hover img {
  transform: scale(1.1) !important;
  transition: all ease-in-out 1s !important;
}

AJAX Loading has been and is currently offf

Link to comment
  • Replies 5
  • Views 469
  • Created
  • Last Reply

Add this new code

.sqs-block-image img {
  -webkit-transform: scale(1) !important;
      -ms-transform: scale(1) !important;
          transform: scale(1) !important;
  -webkit-transition: all ease-in-out 1s !important;
  -o-transition: all ease-in-out 1s !important;
  transition: all ease-in-out 1s !important;
}
.image-inset {
    overflow: hidden;
}
.sqs-block-image:hover img {
  -webkit-transform: scale(1.1) !important;
      -ms-transform: scale(1.1) !important;
          transform: scale(1.1) !important;
  -webkit-transition: all ease-in-out 1s !important;
  -o-transition: all ease-in-out 1s !important;
  transition: all ease-in-out 1s !important;
}

 

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
14 hours ago, tuanphan said:

Add this new code


.sqs-block-image img {
  -webkit-transform: scale(1) !important;
      -ms-transform: scale(1) !important;
          transform: scale(1) !important;
  -webkit-transition: all ease-in-out 1s !important;
  -o-transition: all ease-in-out 1s !important;
  transition: all ease-in-out 1s !important;
}
.image-inset {
    overflow: hidden;
}
.sqs-block-image:hover img {
  -webkit-transform: scale(1.1) !important;
      -ms-transform: scale(1.1) !important;
          transform: scale(1.1) !important;
  -webkit-transition: all ease-in-out 1s !important;
  -o-transition: all ease-in-out 1s !important;
  transition: all ease-in-out 1s !important;
}

 

That worked! Thank you!! 

So the solution was to incorporate the browser support?

Link to comment
On 2/19/2021 at 11:51 PM, GarciaVisuals said:

That worked! Thank you!! 

So the solution was to incorporate the browser support?

no =))) You see this new code in above code

.image-inset {
    overflow: hidden;
}

Also, I added some prefix for enture it works on all browsers/devices

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

Archived

This topic is now archived and is closed to further replies.

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