jambonn / vue-concise-carousel

Vue Concise Carousel with True SSR Written for Jambon
https://jambonn.github.io/vue-concise-carousel
MIT License
23 stars 7 forks source link

changing element style while changing slides #27

Closed mukhrr closed 9 months ago

mukhrr commented 9 months ago

I was wondering how can one achieve the following feature by vue-concise-carousel:

let's say, my image is placed to left side in slider and between transitions I want it smoothly change its styles from

  transform: translateX(0);
  transform: scale(0);

to

  transform: translateX(10px);
  transform: scale(1.2);
jambonn commented 9 months ago

I don't understand why you need to use transform scale?

mukhrr commented 9 months ago

I don't understand why you need to use transform scale?

I just want image to zoom out while changing. I mean something like the following:

https://github.com/jambonn/vue-concise-carousel/assets/71601329/8224bf53-51ce-4e04-9d93-9bbc5040647e

P.s: I implemented it by custom animation in my code source itself. However, it's worth adding such feature to this library.

jambonn commented 9 months ago

Thanks for reporting! Would you like to send a Pull Request to address this issue?

mukhrr commented 9 months ago

I looked through and think this should be customized every time. I mean this is more related to element inside Slide component. Applying animation to Slide doesn't make sense.