1.0.3 • Published 2 years ago

@oakjeser/fibonacci-carousel v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago