Skip to content

Commit

Permalink
added pop animation on mission buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Oct 9, 2024
1 parent b343e85 commit a900df5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ts/ui/currentMissionDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
});
}

Expand Down

0 comments on commit a900df5

Please sign in to comment.