In my Nuxt/Vue application with Tailwind, by clicking on one element
I am uncovering the next element
. It works fine but the user needs to scroll down to see the new element. How can I make my app to go straight away to the bottom of the page to see the new element without scrolling down ??
<template>
<div @click="onClick">
<Element/>
</div>
<div v-if="Section > 0" @click="onClick">
<Element/>
</div>
<div v-if="Section > 1" @click="onClick">
<Element/>
</div>
</template>
<script>
export default {
data() {
return {
Section: 0
}
},
methods: {
onClick() {
this.Section++
}
</script>