Skip to content

1NEAT1/vue-future-slider

Repository files navigation

Vue Future Slider

img.png

Installation

# npm
npm i vue-future-slider

Use globally

import Vue from 'vue'
import FutureSlider from 'vue-future-slider'
import 'vue-future-slider/dist/vue-future-slider.css'

Vue.use(FutureSlider);

Quick Start

<div class="container">
    <h1>Vue Future Slider</h1>
    <div class="slider">
        <future-slider :items="images"/>
    </div>
</div>
export default {
    name: 'App',
    data: function () {
        return {
            images: [
                {
                    image: 'https://dummyimage.com/1000x500/000/fff',
                    link: 'https://github.com/1NEAT1/vue-future-slider',
                    target: true,
                },
                {
                    image: 'https://dummyimage.com/1000x500/000e4f/000000',
                    link: 'https://github.com/1NEAT1/vue-future-slider',
                    target: false,
                },
                {
                    image: 'https://dummyimage.com/1000x500/121e1f/000000',
                    link: 'https://github.com/1NEAT1/vue-future-slider',
                    target: true,
                },
                {
                    image: 'https://dummyimage.com/1000x500/121e1f/b00000'
                }
            ]
        }
    }
}
.container {
  width: 1000px;
  height: 500px;
  margin-inline: auto;

  .slider {
    width: inherit;
    height: inherit;
  }
}

DOCS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published