From a900df5c5f2a5a936c09e6a802e4c605b35844e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:47:03 +0200 Subject: [PATCH] added pop animation on mission buttons --- src/ts/ui/currentMissionDisplay.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ts/ui/currentMissionDisplay.ts b/src/ts/ui/currentMissionDisplay.ts index de522d6f..8acddb6d 100644 --- a/src/ts/ui/currentMissionDisplay.ts +++ b/src/ts/ui/currentMissionDisplay.ts @@ -87,10 +87,18 @@ export class CurrentMissionDisplay { SpaceShipControlsInputs.map.previousMission.on("complete", () => { this.setPreviousMission(); + this.previousMissionButton.animate([{ transform: "scale(1)" }, { transform: "scale(1.1)" }, { transform: "scale(1)" }], { + duration: 200, + easing: "ease" + }); }); SpaceShipControlsInputs.map.nextMission.on("complete", () => { this.setNextMission(); + this.nextMissionButton.animate([{ transform: "scale(1)" }, { transform: "scale(1.1)" }, { transform: "scale(1)" }], { + duration: 200, + easing: "ease" + }); }); }