What is the best way to implement div classes that change on click? https://i.sstatic.net/TS3wh.gif
I've attempted to add a border line, but it doesn't seem to work for me.
border-width: 0 0 10px 0;
The code above does not adjust the size of the div.
Is it necessary to create a new div or transition the "button" div?
Edit:
Vue template code:
<button role="link" @click="handleClick" class="timerButton" :class="active ? ' active' : ' non-active'" >START</button>
CSS:
.active { border-width: 0 0 10px 0; }