How to dynamically modify the custom transition class name of Transition in Vue?

problem description

use Animate.css to switch components. I want to modify the animation effect dynamically, but the following two class names of transition (enter-active-class,leave-active-class) cannot be bound, nor can I modify them directly with DOM.

related codes

< transition

  name="fade"
  enter-active-class="animated fadeInRight"
  leave-active-class="animated fadeOutLeft"
>
  <component
    class="view_item"
    v-bind:is="currentTabComponent"
  ></component>
</transition>
Apr.15,2022

can actually be bound, but I haven't learned enough

< transition

  name="fade"
  :enter-active-class="enterClass"
  :leave-active-class="leaveClass"
>
  <component
    class="view_item"
    v-bind:is="currentTabComponent"
  ></component>
</transition>

data() {
return {     
  enterClass: "animated fadeInRight",
  leaveClass: "animated fadeOutLeft"
};

},
methods: {
animationSwitch (enter, leave) {

  this.enterClass = `animated ${enter}`;
  this.leaveClass = `animated ${leave}`;
}

}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b9819c-2f0d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b9819c-2f0d9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?