GithubHelp home page GithubHelp logo

thenoim / vue-keen-slider Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 460 KB

Vue wrapper for keen-slider.io

JavaScript 10.80% HTML 2.45% Vue 82.49% TypeScript 4.26%
keen-slider-library slider autoplay keen-slider vue vuejs hacktoberfest

vue-keen-slider's Introduction

vue-keen-slider

A vue wrapper for the keen slider library.

Usage

<template>
    <keen-slider arrow-color="black" loop navigation-arrows navigation-dots>
    	<keen-slide>1</keen-slide>
    	<keen-slide>2</keen-slide>
    	<keen-slide>3</keen-slide>
    	<keen-slide>4</keen-slide>
    </keen-slider>
</template>

Note: You need to import the css file:

import 'vue-keen-slider/dist/vue-keen-library.css'

All options of the keen slider library are accessible as vue prop.

This library also includes 5 additional props for more easy use:

  1. navigation-arrows (boolean): Enables navigation arrows like in the "arrows and dots" example.
  2. navigation-dots (boolean): Enables navigation dots like in the "arrows and dots" example.
  3. arrow-color (css color string): Changes the color of the navigation arrow.
  4. useParentScopeId (boolean): Use the css scope of the parent component. Useful for styling.
  5. autoplay (boolean, string, number): Autoplay the slider. If you only pass true, the default value will be 3000ms. Autoplay is disabled by default. You need to pass the time in ms.

Further documentation: Component Docs

vue-keen-slider's People

Contributors

thenoim avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

vue-keen-slider's Issues

No repository field in package.json

Adding

"repository": {
  "type": "git",
  "url": "https://github.com/TheNoim/vue-keen-slider.git"
}

to package.json should allow this GitHub page to be found from the NPM registry's page.

I can go ahead and do this in a PR for you, if you'd like.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.