user.id.toString() + '.' + crypto.randomBytes(40).toString('hex');
vue init webpack my-project
cd my-project
npm i -S gsap
npm run dev
<template>
<div class="hello">
<div class="tween-max-test" ref="tweenmax"></div>
</div>
</template>
<script>
import { TweenMax } from 'gsap'
export default {
name: 'HelloWorld',
data () {
return {}
},
mounted () {
TweenMax.to(this.$refs.tweenmax, 1, { autoAlpha: 0, repeatDelay: 0.5, repeat: -1, yoyo: true })
}
}
</script>
<style scoped>
.tween-max-test {
width: 100px;
height: 100px;
margin: 100px auto;
background: red;
}
</style>