Skip to content

Commit

Permalink
fix(tabs): make indicator animation faster
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 559670244
  • Loading branch information
asyncLiz authored and Copybara-Service committed Aug 24, 2023
1 parent bd7cf23 commit b542d2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tabs/internal/tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {classMap} from 'lit/directives/class-map.js';
import {ARIAMixinStrict} from '../../internal/aria/aria.js';
import {requestUpdateOnAriaChange} from '../../internal/aria/delegate.js';
import {dispatchActivationClick, isActivationClick} from '../../internal/controller/events.js';
import {EASING} from '../../internal/motion/animation.js';

/**
* An element that can select items.
Expand Down Expand Up @@ -142,7 +143,8 @@ export class Tab extends LitElement {
});
const frames = this.getKeyframes();
if (frames !== null) {
this.indicator.animate(frames, {duration: 400, easing: 'ease-out'});
this.indicator.animate(
frames, {duration: 250, easing: EASING.EMPHASIZED});
}
}

Expand Down

0 comments on commit b542d2a

Please sign in to comment.