Is there a way, that the variant Image changes smooth? Like in the Video (First Part) and in the second Part, there is the Version, that is not that smooth.
you could try something like this: <div x-data="{ opacity: 1 }"> <!-- put this somewhere on the variant selector --> <div @click="opacity = 0; setTimeout(() => { opacity = 1 }, 500)">Animate Opacity</div>
<!-- Image with dynamic opacity and transition --> <img src="image1.jpg" :style="{ opacity: opacity }" class="w-full h-auto transition-opacity duration-500 ease-in-out" alt="Image with fading effect" /> </div>