Created
November 4, 2020 18:23
-
-
Save leochocolat/74dab2069d0c45aac40963ca9f99c7d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="slide"> | |
slide | |
</div> | |
</template> | |
<script> | |
export default { | |
methods: { | |
transitionIn() { | |
const timeline = new gsap.timeline(); | |
timeline.to(this.$el, 1, { alpha: 1 }); | |
return timeline; | |
}, | |
transitionOut() { | |
const timeline = new gsap.timeline(); | |
timeline.to(this.$el, 1, { alpha: 0 }); | |
return timeline; | |
}, | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment