Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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?

    #1283106

    Hey 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,
    Ismael

    #1283212

    Hi 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?

    #1283842

    Hi,

    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,
    Ismael

    #1283873

    Ok, thanks for the info and clarification.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.