re-carousel
re-carousel copied to clipboard
Adding functionality to set frame index directly
- Adding functionality to set the intital "current frame index" by passing it as a prop into Carousel.
- Adding the function setFrame to Carousel and passing it as a Widget prop ('setFrameHandler') which can be used by Indicator dots to transition multiple frames at once.
Solves issues: #125 #100
Thanks @liuloppan! will look into it soon :D
@liuloppan Great! Just a few changes:
- since
loop
cannot work withcurrentFrameIndex
, we should log a warning in case of that,- let's keep the default demo as original, add some description of
currentFrameIndex
in README.md
-
loop
works with my intended use ofcurrentFrameIndex
, I renamed it toonStartFrameIndex
and added description in README.md - I changed back to the original demo index.js