This commit is contained in:
“chrisshank” 2024-09-11 11:05:32 -07:00
parent 8dbc00635b
commit 1bd42742f4
1 changed files with 5 additions and 6 deletions

View File

@ -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,
}
); );
} }