beyonk-group / svelte-carousel

A super lightweight, super simple Carousel for Svelte 3
MIT License
213 stars 38 forks source link

Control the slider from the parent component #33

Closed jokin closed 4 years ago

jokin commented 4 years ago

I want to control the slides (move left, right, select an specific slide, pause the autoslider when the carousel is focused or hovered).

I make it work exporting the left - right functions, is there another way without having to export the functions?

If do you think is something useful, I can make a pull request adding some comments on the usage to the readme.

antony commented 4 years ago

Exporting the functions is the correct way to do this. I would welcome a PR exporting all the functions :)