I am in the process of changing the card mode by utilizing a boolean variable called editMode
. Whenever editMode === true
, additional content displays in the child div causing an increase in both height and width of the parent div. My goal is to apply a transition effect to this expansion of the parent div specifically when editMode is equal to true
. Currently, I am coding in Vue.js.
Any ideas on how I can achieve this?
<div class="parent">
<h2> Card Title </h2>
<div class="child" v-if="editMode">
some content including inputs, labels, ...
<div>
<button @onClick="editMode = !editMode"/>
</div>