nitpicks
This commit is contained in:
parent
8dbc00635b
commit
1bd42742f4
|
|
@ -280,6 +280,7 @@ export class RecordPlayer extends HTMLElement {
|
||||||
if (this.paused) return;
|
if (this.paused) return;
|
||||||
|
|
||||||
const arm = this.shadowRoot!.querySelector('.tone-arm') as HTMLElement;
|
const arm = this.shadowRoot!.querySelector('.tone-arm') as HTMLElement;
|
||||||
|
|
||||||
const animation = arm.getAnimations()[0];
|
const animation = arm.getAnimations()[0];
|
||||||
|
|
||||||
if (animation) {
|
if (animation) {
|
||||||
|
|
@ -289,13 +290,11 @@ export class RecordPlayer extends HTMLElement {
|
||||||
arm.style.rotate = '';
|
arm.style.rotate = '';
|
||||||
arm.animate(
|
arm.animate(
|
||||||
[
|
[
|
||||||
{ rotate },
|
{ offset: 0, rotate },
|
||||||
{ rotate, transform: 'rotateX(20deg)', offset: 0.2 },
|
{ offset: 0.2, rotate, transform: 'rotateX(20deg)' },
|
||||||
{ transform: 'rotateX(20deg)', offset: 0.8 },
|
{ offset: 0.8, transform: 'rotateX(20deg)' },
|
||||||
],
|
],
|
||||||
{
|
{ duration: 3000 }
|
||||||
duration: 3000,
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue