If the value is true, I would like the attribute animation-slide-right to be given, and if the value is false, then the attribute animation-slide-left should be applied.
Unfortunately, after the initial rendering, the animation does not happen when the value changes.
I am looking for a solution where the animation will be triggered every time the value changes.
You can view the scenario I am experiencing here: https://stackblitz.com/edit/node-gnlpbz?file=tailwind.config.js