1.0.3 • Published 6 months ago

@oakjeser/fibonacci-carousel v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

A fibonacci inspered image carousel

Usage Example

        <FibonacciCarousel imageSources={[
            "./assets/1.png",
            "./assets/2.png",
            "./assets/3.png",
            "./assets/4.png",
        ]} cycleTimeMillies={2000}/>

Also exposes nextImage() and previousImage() through the imperative handle.

        const ref = useRef(null);

        <FibonacciCarousel imageSources={[
            "./assets/1.png",
            "./assets/2.png",
            "./assets/3.png",
            "./assets/4.png",
        ]} cycleTimeMillies={2000} ref={ref}/>

        ref.current?.nextImage() // <-- Changes the image;
1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago