@oakjeser/fibonacci-carousel
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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;

Readme

Keywords

none

Package Sidebar

Install

npm i @oakjeser/fibonacci-carousel

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

7.21 kB

Total Files

7

Last publish

Collaborators

  • oakjeser