I am wondering if you might ever include some kind of jquery animation effects when switching quicktabs -- like a slider or a fade in/out?
Or is there a way to add this kind of functionality to quicktabs through another module?
I had a hard time deciding between using the Slider module and using Quicktabs for my main content area, but went with Quicktabs because of how easy it is... but I would love a way to animate between tabs...
I would buy someone a beer (or more), if they could help me get this done...
thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | quicktabs-transitions-327436-3.patch | 673 bytes | theohawse |
| #8 | quicktabs-transitions-327436-2.patch | 924 bytes | theohawse |
| #7 | quicktabs-transitions-327436-1.patch | 924 bytes | theohawse |
Comments
Comment #1
pasqualle#327436: Fade or slide effect when changing tabs
Comment #2
pasqualleIf you are eager to get such functionality, then
in quicktabs.js change
to
Comment #3
tchopshop commentedwow! thank you! how can i buy you that beer?
Comment #4
RikiB commentedI was hoping this would work and got all excited. However I think the code has been changed and I not longer see where to change this. Could you be kind to update this idea for the current code? Thanks!!!
Comment #5
drupaledmonk commentedyes me too!! I have two tabs with rotor items in them and the text gets overlapped for a second when I change between tabs and then corrects itself. I thought this transition effect would solve my problem. So if anyone can help me out as to where the transition occurs. I think it takes place somewhere around line 150, but I'm not sure how to get it work for me.
Comment #6
ram4nd commentedYou also have to use absolute position so the content of the tabs would be on top of each other. It still is a hack. Would be cool if it would be implemented as feature.
Comment #7
theohawse commentedthis worked for me, but there were a few issues using both fade in and fade out without absolute positioning:
-js loads too slow and causes the tabs to freakout on pageloads and while hiding.
the following css helped fix the messy transitions:
-the first rule hides the content until js loads and then adds the inline style="display:block"
-second rule hides the overflowing tabpages (mid-transition) that stretch the page.
attached is a patch (including js fades), please review.
Comment #8
theohawse commentedWhoops, tested with ajax style and the first css line wasn't being overwritten by js.
should be: html.js .quicktabs_tabpage{display:block;}
attached is fixed up patch
Comment #9
theohawse commentedalright, this has to be the one, fading-out just has too many theme related bugs to handle for me. simple fadeout does it, with one css fix.
subtle, but definitely an improvement over having no effect at all.
Comment #10
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.