Skip to content

zFunx/vue-image-slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vue-image-slider

Image Slider using <Transition> component

I was learning how to animate in Vue here https://vuejs.org/guide/built-ins/transition.html#css-based-transitions and thinking why install another carousel or slider package when we can make a slider using <Transition> component? Everything is around us. Just need to look

<template>
  <ImageSlider :imgs="images" />
</template>

<script setup>
    import ImageSlider from "./ImageSlider";

    // Images
    import img1 from "./assets/beautiful-rain.jpg";
    import img2 from "./assets/tree.jpg";
    import img3 from "./assets/water.jpg";
    const images = [img1, img2, img3];
</script>

Showcase

Feel free to correct me✌

About

Image Slider using Transition component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages