Skip to main content
Apr 25, 2021 11:23 AM UTC
Solved

Can I disable animation when collapsing/expanding containers?

Is it possible to disable the animation of collapsing and expanding containers in a mashup?  When I trigger an expand/collapse of a container in the mashup there is a brief "sliding" of the container to show or hide it.  I would like to immediately show or hide the container without the sliding animation.  One of my biggest gripes is when I have a container with expand/collapse enabled and the "Expanded" checkbox disabled (I don't want to show the container when the mashup loads).  When users load the mashup, the container appears and slides away for about a second.

 

I've tried adding a custom css class to the container where the class has "animation: 0s", but that doesn't do anything.  Any ideas?

 

QuentinRAnswer
Apr 26, 2021 8:58 AM UTC

Hello DanWolf,

 

Actually you were pretty close.

Assuming you give the customClass "testSlider" to your collasping panel, the CSS is:

 

.testSlider {
       transition: none !important;
}

2 replies

QuentinRAnswer
Apr 26, 2021 8:58 AM UTC

Hello DanWolf,

 

Actually you were pretty close.

Assuming you give the customClass "testSlider" to your collasping panel, the CSS is:

 

.testSlider {
       transition: none !important;
}

DanWolfAuthor
Apr 26, 2021 9:40 AM UTC

Perfect, thanks!