Is there a way to dynamically disable a transition animation in Vue based on a boolean value?
Currently, the animation is enabled with the following code:
<transition name="fadeUp">
<div v-if="elIsVisible">
<p>Foo Bar</p>
</div>
</transition>
However, I would like to achieve something like this:
<transition name="fadeUp" animation-enabled="false">
<div v-if="elIsVisible">
<p>Foo Bar</p>
</div>
</transition>
Are there any smart workarounds for achieving this?
This is for a module-based website where each block corresponds to one component. It would be useful if users could easily enable or disable animations for specific blocks.