Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, is there a way to make views accordion slide faster?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#12 | 1675010-12.patch | 5.85 KB | Manuel Garcia |
#12 | interdiff-1675010-11-12.txt | 1.75 KB | Manuel Garcia |
#11 | 1675010-11.patch | 4.67 KB | Manuel Garcia |
#11 | interdiff-1675010-10-11.txt | 1.46 KB | Manuel Garcia |
#10 | 1675010-10.patch | 3.9 KB | Manuel Garcia |
Comments
Comment #1
cimo75 CreditAttribution: cimo75 commented+1
Comment #2
cimo75 CreditAttribution: cimo75 commentedA bit hackish but it gets the work done, get into the accordion function call and ad a subclass as follow
Comment #3
markdcI tried this and couldn't get it to work in 7.x-1.1. Is there another solution, or should this still work? I want no animation and 0ms transition. Thanks in advance.
Comment #4
ishani.addweb CreditAttribution: ishani.addweb at AddWeb Solution Pvt. Ltd. commented@fatmarker, Tried with the given solution & got the solution. Please review it & let me know if you have any query.
->To speed and change the speed of the slide of view accordion following change have to perform.
->First, go to view accordion modules views-accordion.js file and put the following function:
Thanks
Comment #5
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commentedThanks for the report, lets turn this around, and try to add support to configure this in the module.
Please help by testing the attached patch and report back your findings :)
Comment #6
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commentedComment #7
kostyashupenkoComment #8
kostyashupenkoComment #9
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commentedThanks @kostyashupenko - the reroll looks good.
It should work fine, but I'd like someone to test this on a local site before committing to be on the safe side.
Comment #10
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commentedOK, finally got around to spend some time on this.
Some important findings:
So, in this patch:
views_element_validate_integer
Comment #11
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commentedFixing a bug in the previous patch where if you select animation style none, jquery ui still used the duration time to animate it. Now if you select none you wont see any animation which is the expected behaviour.
Comment #12
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commentedThe
slide
easing effect was removed from jQuery UI on newer versions, accounting for that here.Comment #14
Manuel Garcia CreditAttribution: Manuel Garcia as a volunteer commented