Skip to content

Instantly share code, notes, and snippets.

@Dromediansk
Created January 8, 2022 07:30
Show Gist options
  • Save Dromediansk/aaf9b6598524b3892e5d2ffed0f7f03c to your computer and use it in GitHub Desktop.
Save Dromediansk/aaf9b6598524b3892e5d2ffed0f7f03c to your computer and use it in GitHub Desktop.
Image carousel component for nextJS and tailwind
@JawadUllah9T9
Copy link

well done

@JawadUllah9T9
Copy link

animate-fadeIn how to add
transiton , duration where

@BernMasache
Copy link

this is good.

@robert-kratz
Copy link

Replacing line 43 from:

image={image}

to

src={image}

worked for me fine. Thanks!

@exodos
Copy link

exodos commented Apr 12, 2023

Well done. Works for me
Replace image={image} with src={image} and
layout="fill"
objectFit="contain" are depreciated and replace with fill and object-fit='contain'

@iamVisheshSharma
Copy link

Thanks it help me a lot

@truong11t2
Copy link

any idea to make it responsive. the image's height is not change in mobile mode

@bluegalaxy614
Copy link

It was good.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment