Jump to content

Turn off site-wide animation for a section

Recommended Posts

Posted (edited)

I'd like to turn off the site-wide animation to one of the sections on my home page because the site-wide animation overrides the hover effect I created for the texts I placed on top of the three images that are next to each other (Kentfield Color, Sea Cliff Redo, and Piedmont Chic).  The text is supposed to have a hover effect when you put your cursor over the image, but with the animation on it shows the text/ removes the hover effect. I tried using the below code on one of the texts (Kentfield Color) but it did not remove the animation. 

#block-yui_3_17_2_1_1687371703623_38666 * {

    transform: unset !important;
    transition: unset !important; 
    transition-delay: unset !important;

}

 

The password to the website is: smile

www.caitlinjonesdesign.com

Edited by Caitlinjonesdesign
accidental space
  • Replies 9
  • Views 2.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • 9 months later...
Posted

tuanphan Hey there! Is it possible to turn off animations on just one section? I have a carousal in place, and the slide up animation is showing up very weird. I wanted to use this code above, but mine is a section, not a block for the #id. 

The section ID is section[data-section-id="660c3291acc78b3798e99a21"] 


Thank you!
Cass

Screen Shot 2024-04-11 at 9.52.14 PM.png

Posted
On 4/12/2024 at 3:53 AM, CassidyWierks said:

tuanphan Hey there! Is it possible to turn off animations on just one section? I have a carousal in place, and the slide up animation is showing up very weird. I wanted to use this code above, but mine is a section, not a block for the #id. 

The section ID is section[data-section-id="660c3291acc78b3798e99a21"] 


Thank you!
Cass

Screen Shot 2024-04-11 at 9.52.14 PM.png

Replace this ID

image.png.d633522bd4187f49728cf009ff157c2d.png

with this ID

image.thumb.png.2f91f958682e0411bd4808139e2bbaf4.png

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

  • 5 months later...
Posted

Hello @tuanphan Thank you for the code, however, it also cancelled my hover effect for the section, is there anyway to work around it?

 

Please see the code if it is easier to work to identify the problem.

 

    /*Our Approach Hover*/
@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1726214381627_31117 {
opacity: 0;
 transition: opacity 1s
}
  }
#block-yui_3_17_2_1_1726214381627_31117:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-a0ce460c57e63becccfa {
opacity: 0;
 transition: opacity 1s
}

#block-a0ce460c57e63becccfa:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-f9b4b6f1bdb1038f5da4 {
opacity: 0;
 transition: opacity 1s
}

#block-f9b4b6f1bdb1038f5da4:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-3935fd50df09733c2e08 {
opacity: 0;
 transition: opacity 1s
}

#block-3935fd50df09733c2e08:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1726214381627_31117 {
opacity: 0;
 transition: opacity 1s
}

#block-yui_3_17_2_1_1726214381627_31117:hover {
opacity: 1;
transition: opacity 1s
  }
  }
section[data-section-id="66e3bfdd07a54c3fa67b5c47"] * {
    transform: unset !important;
    transition: unset !important;
    transition-delay: unset !important;
}

Posted
On 10/2/2024 at 12:53 PM, lac_cwc said:

Hello @tuanphan Thank you for the code, however, it also cancelled my hover effect for the section, is there anyway to work around it?

 

Please see the code if it is easier to work to identify the problem.

 

    /*Our Approach Hover*/
@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1726214381627_31117 {
opacity: 0;
 transition: opacity 1s
}
  }
#block-yui_3_17_2_1_1726214381627_31117:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-a0ce460c57e63becccfa {
opacity: 0;
 transition: opacity 1s
}

#block-a0ce460c57e63becccfa:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-f9b4b6f1bdb1038f5da4 {
opacity: 0;
 transition: opacity 1s
}

#block-f9b4b6f1bdb1038f5da4:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-3935fd50df09733c2e08 {
opacity: 0;
 transition: opacity 1s
}

#block-3935fd50df09733c2e08:hover {
opacity: 1;
transition: opacity 1s
  }
  }
@media only screen and (min-width: 640px){
#block-yui_3_17_2_1_1726214381627_31117 {
opacity: 0;
 transition: opacity 1s
}

#block-yui_3_17_2_1_1726214381627_31117:hover {
opacity: 1;
transition: opacity 1s
  }
  }
section[data-section-id="66e3bfdd07a54c3fa67b5c47"] * {
    transform: unset !important;
    transition: unset !important;
    transition-delay: unset !important;
}

Add !important to your code

for example these lines

opacity: 0;
 transition: opacity 1s

change it to this

opacity: 0 !important;
 transition: opacity 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!)

  • 1 month later...
Posted

Hi there!

I am having similar problems as CassidyWierks.
I have one section, a footer on the website I designed that would need to be static.
Tried the code that was given above, but it didn't work for me.

The footer is section[data-section-id="67164035705c4d086e6a8755"]

image.thumb.png.c2b3cbe72907d776bde31ec0d69d10a9.png

image.thumb.png.5c288e38cbf98093a2f5f2e4eaaeb58e.png

Did I do something wrong or is there any other way to disable the animation for the footer only, not the whole page?
Thank you for your time and help!

Heidi

Posted
On 11/15/2024 at 2:02 PM, votreh said:

Hi there!

I am having similar problems as CassidyWierks.
I have one section, a footer on the website I designed that would need to be static.
Tried the code that was given above, but it didn't work for me.

The footer is section[data-section-id="67164035705c4d086e6a8755"]

image.thumb.png.c2b3cbe72907d776bde31ec0d69d10a9.png

image.thumb.png.5c288e38cbf98093a2f5f2e4eaaeb58e.png

Did I do something wrong or is there any other way to disable the animation for the footer only, not the whole page?
Thank you for your time and help!

Heidi

You need to add code to Custom CSS box, not Footer Injection

image.thumb.png.9c9a0fc4e7e8a7057a2b63a1386b2576.png

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

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.