-
AuthorPosts
-
February 19, 2021 at 6:39 pm #1282288
Hi,
On the website we are developing we would like to have the same speed of the Accordion toggles opening/roll down/slide down.
As we understand the speed IS the same but if there is more content (such as in the toogle “NASTAVNI PLAN”) it looks very fast. In the toggle “TERMINI” it looks normal and more natural.
So how can this “roll down/slide down” be made to be of the same pace, no matter the amount of the text?
February 23, 2021 at 3:03 pm #1283106Hey santinimedia,
Thank you for the inquiry.
The speed or duration of the accordion toggles can be adjusted but we have to directly modify the enfold\config-templatebuilder\avia-shortcodes\toggles\toggles.js and adjust the duration of the slideDown and slideUp functions manually. In the said file, please look for this code around line 76..
content.slideUp(200, function()
.. and adjust the current duration, which is 200ms.
And around line 204, look for this code and once again, adjust the duration value.
content.slideDown(200,
We were not able to check the site because it is on maintenance mode.
Best regards,
IsmaelFebruary 23, 2021 at 8:06 pm #1283212Hi Ismael, thanks for the reply,
I set the ms to 20000 just to test it and it it doesn’t seem that it slows it down. However I’m not sure if it’s gonna work in the way I would like it to, since accordions have a different amount of content.
The site is visible now. For example, check the TERMINI accordion. It opens down slow and nice. But NASTAVNI PLAN opens down very fast since it has 6 times more content (lines of text). So the are opening in the exact amount of milliseconds but TERMINI seems slower and NASTAVNI PLAN faster
Can it be somehow equalized? Via custom css class?
February 26, 2021 at 2:03 pm #1283842Hi,
Thank you for the update.
The changes are probably not taking effect because file compression is enabled, so disabling the Enfold > Performance > File Compression settings temporarily should help. Unfortunately, the duration of the slideUp and slideDown function does not depend on the length of the content by default and is only based on an absolute time defined in milliseconds.
Best regards,
IsmaelFebruary 26, 2021 at 3:45 pm #1283873Ok, thanks for the info and clarification.
-
AuthorPosts
- You must be logged in to reply to this topic.