@stone-payments/emd-basic-slideshow

1.1.0 • Public • Published

Button

Emerald Slideshow UI component.

Usage

<emd-slideshow current="2">
  <div>One</div>
  <div>Two</div>
  <div>Three</div>
</emd-slideshow>

Attributes and Properties

current

Sets the current slide and trigger the transition. Defaults to 1.

  • Type: Number
  • Attribute and property

delay

The delay of the transition in milliseconds. Defaults to 300 if unset.

  • Type: Number
  • Attribute and property

CSS Properties

--emd-slideshow-gap

Controlls the gap between slides.

  • Default: 0px

Slots

Default

The slide's container. Each component's child element becomes a slide.

Events

slidechange (alias slidechangestart)

Dispatched when the current slide changes but before the animation begins.

  • Detail:
{
  previous: 2,
  current: 3
}

slidechangeend

Dispatched after the current slide changes and the animation ends.

  • Detail:
{
  previous: 2,
  current: 3
}

Readme

Keywords

none

Package Sidebar

Install

npm i @stone-payments/emd-basic-slideshow

Weekly Downloads

3

Version

1.1.0

License

none

Unpacked Size

48.3 kB

Total Files

29

Last publish

Collaborators

  • sling-web