ragnarlotus / vue-flux

Image slider which comes with 20 cool transitions

Home Page:https://ragnarlotus.github.io/vue-flux-docs/demos/demos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS - image jumps below image during transition

bikedel opened this issue · comments

Hello,

I am not sure if I need css or how to implement it. Below is the code I am using.

It all works apart from during the transition the 'transition to image' is below the transition and when the transition is over it jumps back up into position.

Very nice work! Thank you

/*

<button @click="$refs.slider.show('next')">NEXT</button>
<style> .FluxImage </style> <script setup> import { ref, shallowReactive, onMounted } from "vue"; import { VueFlux, Img, Fade, Wave, Cube, Book, Waterfall, Swipe, Zip, Blinds2D, Kenburn, Blocks1, Warp, Explode, FluxControls, FluxIndex, } from "vue-flux"; const mounted = ref(false); const rscs = shallowReactive([ new Img("images/f1.jpg"), new Img("images/f2.jpg"), new Img("images/s1.png"), ]); const transitions = shallowReactive([Wave, Fade, Warp, Book]); const options = shallowReactive({ allowFullscreen: true, autoplay: true, bindKeys: true, infinite: true, controls: true, lazyLoadAfter: 10, }); onMounted(() => { mounted.value = true; }); */

Yes, in your main.js or main.ts you need to import the CSS like this:

import '../node_modules/vue-flux/dist/style.css';

Cheers and thanks for your words