<template>
<div>
<div id="app" class="hello">
<p>hogehoge</p>
<a class="up" v-scroll-to="'#app'"></a>
</div>
</div>
</template>
<script>
export default {
name: "HelloWorld",
props: {
msg: String,
},
methods: {},
};
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello {
background: #eee;
height: 200vh;
}
p {
padding-top: 100px;
}
.up {
width: 60px;
height: 60px;
background: #000;
border-radius: 50%;
position: fixed;
bottom: 20px;
right: 20px;
}
h3 {
margin: 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>