fix(settings/clock/achievements): remove animation when coming from achievemnts screen
This commit is contained in:
@@ -90,7 +90,7 @@ const isAnimating = ref(true);
|
||||
const animation = reactive({
|
||||
offsetY: SLIDE_OFFSET,
|
||||
opacity: 0,
|
||||
upArrowOffsetY: ARROW_IMAGE_HEIGHT,
|
||||
upArrowOffsetY: +ARROW_IMAGE_HEIGHT,
|
||||
downArrowOffsetY: -ARROW_IMAGE_HEIGHT,
|
||||
});
|
||||
|
||||
@@ -125,7 +125,15 @@ const animateOutro = async () => {
|
||||
.to(animation, { opacity: 0, duration: SLIDE_DURATION, ease: "none" }, 0);
|
||||
};
|
||||
|
||||
defineExpose({ animateIntro, animateOutro });
|
||||
const showInstant = () => {
|
||||
animation.offsetY = 0;
|
||||
animation.opacity = 1;
|
||||
animation.upArrowOffsetY = 0;
|
||||
animation.downArrowOffsetY = 0;
|
||||
isAnimating.value = false;
|
||||
};
|
||||
|
||||
defineExpose({ animateIntro, animateOutro, showInstant });
|
||||
|
||||
const increase = () => {
|
||||
const newValue = value.value + 1;
|
||||
|
||||
Reference in New Issue
Block a user