Skip to content

Instantly share code, notes, and snippets.

@Twipped
Created February 24, 2012 19:16
Show Gist options
  • Save Twipped/1903079 to your computer and use it in GitHub Desktop.
Save Twipped/1903079 to your computer and use it in GitHub Desktop.
new Effect.Parallel([
new Effect.Move(previousBackdrop, { sync: true, x:w, mode: 'absolute' }),
new Effect.Move(nextBackdrop, { sync: true, x:0, mode: 'absolute' }),
new Effect.Fade(previousTabHilight, {sync:true}),
new Effect.Appear(nextTabHilight, {sync:true}),
new Effect.Morph(previousTab, {style:'normal'}),
new Effect.Morph(nextTab, {style:'selected'})
], {
duration: 0.8,
transition: Effect.Transitions.easeOutQuad,
beforeStart: function () {Accordion.animating = true;},
afterFinish: function () {
previousBackdrop.hide();
previousTab.className = '';
nextTab.className = 'selected';
Accordion.animating = false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment