ragnarlotus / vue-flux

Image slider which comes with 20 cool transitions
https://ragnarlotus.github.io/vue-flux-docs/demos/demos
MIT License
542 stars 49 forks source link

Transition options not working #105

Closed crazydrummer81 closed 2 years ago

crazydrummer81 commented 2 years ago

Transition works great, transitionOptions not working. What am I doing wrong?

<vue-flux
  :options="vfOptions"
  :images="vfImages"
  :transitions="vfTransitions"
  :transitionOptions="vfTransitionOptions"
>
</vue-flux>

<script>
import { VueFlux } from "vue-flux";

export default {
  name: "Hero",
  components: {
    VueFlux,
  },
  data() {
    return {
      vfOptions: {
        autoplay: true,
        delay: 3000,
        aspectRatio: this.$store.getters.isMobile ? '2:3' : '16:9',
      },
      vfTransitionOptions: {
        transitionFade: {
          totalDuration: 200,
          easing: "ease",
        },
      },
      vfImages: [
        "/wp-content/themes/vue/assets/images/slider/home-slider-1.png",
        "/wp-content/themes/vue/assets/images/slider/home-slider-2.png",
        "/wp-content/themes/vue/assets/images/slider/home-slider-3.png",
      ],
      vfTransitions: ["fade"],
    };
  },
};
</script>

In DevTools Elements html looks like: <div class="vue-flux" transitionoptions="[object Object]" style="width: 406.467px; height: 609.701px;">

ragnarlotus commented 2 years ago

Hello and sorry for the delay, you can see the way to set the transition options here: https://ragnarlotus.github.io/vue-flux-docs/v6/components/vue-flux.html#transition-options

Regards