Skip to content

Instantly share code, notes, and snippets.

@sdras

sdras/about.vue Secret

Created Jul 5, 2020
Embed
What would you like to do?
<template>
<div class="about">
<h1>This is an about page</h1>
<p>Test</p>
</div>
</template>
<script>
// we don't put scoped on script
import gsap from "gsap";
export default {
methods: {
entranceIn() {
gsap.from("div", {
duration: 1,
opacity: 0,
x: 200,
y: 150,
// yoyo: true,
//repeatRefresh: true,
// I took these out because you're not repeating so they will do nothing
});
}
},
mounted() {
this.entranceIn();
}
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment