npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-easy-carousel

v1.2.0

Published

A responsive and easy slideshow/carousel for Vue.js

Downloads

14

Readme

Vue Easy Carousel

npm version

Vue Easy Carousel is a customizable carousel component for Vue.js applications. Simple to implement, customize, and responsive, its intention is to be able to be compatible with simple projects without requiring very advanced configurations, which take a long time.

How to Use

Installing as a package

npm install --save vue-easy-carousel
 
yarn add vue-easy-carousel
Usage

In the main.js file, import the package and install the component globally.

import VueEasyCarousel from 'vue-easy-carousel'

Vue.use(VueEasyCarousel)

After the global configuration, anywhere within your project, you can insert the component:

<vue-easy-carousel :my-images="" show-text show-dots />

Pay attention to the description of the component parameters so that it works correctly. However, there is a rule for the insertion of images, as we inform below:

| Parameter | Type | Default value | |--------------------|--------------------|---------------| | my-images | Array | [ ] | | show-text | Boolean | false | | show-arrows | Boolean | true | | show-dots | Boolean | false | | animation | String | null | | time-slide | Number | |

show-text:

This parameter tells you if you want to have an informative text at the bottom of each slide. By default, it is set to false.

show-dots:

This parameter displays points below the slides indicating which index it is at. By default, it is set to false.

show-arrows:

This parameter displays Arrows side the slides indicating which index it is at. By default, it is set to true.

time-slide:

This parameter sets the Carrousel's automatic rotation, determined by the time in milliseconds (ex: 3000). If you don't want it to be automatic, just omit it.

animation:

This parameter will receive the value of a slide transition effect. At the moment only the FADE effect is available (we are accepting new effects as a contribution). By default, it is given a null value, so it has no effect on your transition from one slide to another.

my-images:

This parameter receives an array of objects containing the image and text keys. It is important that the keys contain these names so that the component can recognize and render the images in the browser. Below is an example of the structure:

{
  image: 'url',
  text: 'description text of image'
}
Examples
<!-- Show all attributes in component --> 
<vue-easy-carousel :my-images="array" show-text show-dots :show-arrows="false" time-slide="5000" animation="fade" />

<!-- Show only descriptions text attributes in component -->
<vue-easy-carousel :my-images="array" show-text />

<!-- Show only the dots how the attribute in component -->
<vue-easy-carousel :my-images="array" show-dots />

<!-- Show only the images slide -->
<vue-easy-carousel :my-images="array" />

Next steps

New Features

The project is just beginning and we count on the help of the community to expand it. New features will always appear and are welcome to the project.

Contribute

If you are interested, please submit a pull request from your code and we will help to get developers a simple and quality system to provide the services.

Raising questions

When indicating / reporting a problem, write a text with as much detail as possible. If possible, attach screenshots or anything else that makes it easier to understand the bug you are reporting to the community to help fix it.

If you already have the solution, be sure to send your Pull Request, it will be very welcome and we will all thank you for your contribution.

License

Vue Easy Carousel is Open Source software released under the MIT license.