5.1.2 • Published 6 years ago

veams-component-slider v5.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Slider

Description

The component represents a simple but powerful slider.

The slider module is a component for cycling through elements, like a carousel or slideshow. It allows users to swipe on touch-enabled devices.


Requirements

  • Veams >= v5.0.0 - Veams Framework.

Installation

Installation with Veams

veams install vc slider


Fields

slider.hbs

The partial is a wrapWith partial.

Settings

  • settings.sliderContextClass {String} default - Context class of component.
  • settings.sliderClasses {String} - Modifier classes for component.
  • settings.sliderJsOptions {Object} - JavaScript options which gets stringified.
  • settings.sliderInnerFullWidth {Boolean} false - Delete the class .is-container from .slider__content.
  • settings.sliderHidePagination {Boolean} false - Hide the pagination when set to true.

slider__controls.hbs

Content

  • content.sliderButtons {Object} - Contains the controls content. When the object is not defined, the controls will not be printed out.
  • content.sliderButtons.prev {String} - Define the button text for the previous button.
  • content.sliderButtons.next {String} - Define the button text for the next button.

slider__list.hbs

The partial is a wrapWith partial.

Settings

  • settings.sliderOverflow {Boolean} - Set this option to true if you want to add the class .is-overflow which gives you the possibility to show all hidden items next to the active element(s).

slider__item.hbs

The partial is a wrapWith partial.


JavaScript Options

The module gives you the possibility to override default options:


Sass Options

There are multiple global variables which you can change:

  • $slider-darken 10 !default - Darken value for hover effects.
  • $slider-unresolved-height 300px !default - Set a fix height when the slider is in unresolved state.
  • $slider-duration 600ms !default - Slide item animation duration.
  • $slider-ease-method ease !default - Slide item animation ease method.
  • $slider-control-bg-color #a5cfd1 !default - Background color of control buttons.
  • $slider-pagination-color [#555 !default] - Background color of pagination items.
  • $slider-pagination-color-active [$slider-pagination-color !default] - Active vackground color of pagination items which gets darken by $slider-darken.
  • $slider-pagination-size 15px !default - Pagination size (width & height).
  • $slider-pagination-border-radius 25% !default - Border radius of pagination items.
5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.0

7 years ago

4.0.1

7 years ago