console
new Vue({
el: '#app',
methods: {
startEffect: function() {
// setInterval
}
}
})
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id="exercise">
<div>
<button @click="startEffect">Start Effect</button>
<div id="effect"></div>
</div>
<div>I got no class :(</div>
<div>
<input type="text">
<div></div>
</div>
<div>
<input type="text">
<input type="text">
<div></div>
</div>
<div>
<input type="text">
<div></div>
</div>
<div>
<button>Start Progress</button>
<div></div>
</div>
</div>
#effect {
width: 100px;
height: 100px;
border: 1px solid black;
}
.highlight{
background-color: red;
width: 200px;
}
.shrink{
background-color: gray;
width: 50px
}
.blue{
background-color: blue;
}