[toggle] ability to adjust toggle speed?

3 replies · opened Aug 3, 2019

JjohnjohnAug 3, 2019

Hello

Am using the first toggle example on the page toggles-accordions.html and i was wondering if there is a way to control the toggle speed.
I want to set a custom value.

Thank you

SSemicolon WebSTAFFAug 5, 2019

Hello,

Simply find the following code in the js/functions.js File:

$(this).toggleClass('toggleta').next('.togglec').slideToggle(300);

and change the 300 value according to your needs.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

JjohnjohnAug 5, 2019

Hi

Thank you
Is there a way to have it done without changing the functions.js?
Because if there is an update, i will need to edit it again

SSemicolon WebSTAFFAug 5, 2019

Hello,

Unfortunately, no! When we release Updates, we also release the Code Changes in the Changelog with every Update, so you can simply change the Codes that have been changed.

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard