Skip to content

How to change property value only when transition completed? #7415

Discussion options

You must be logged in to vote

Transition Hooks

<Transition @after-enter="handleAfterEnter">
      <Lottie ref="SnowFlakes" :animationData="SnowFlakes_Json" style="position: absolute;
          width: 125%; left: 0%; top: 0%; "
      />
    </Transition>

<script setup>
import { ref } from 'vue'
const SnowFlakes= ref(null)
function handleAfterEnter() {
   SnowFlakes.value?.pause()
}
</script>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlexRadch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants