Skip to content

Carousel Banner

Carousel Banner

Carousel Banner displays promotional banners in an auto-playing carousel with dots navigation and responsive configuration.

PropertyValue
Container Max-Width1440px
Aspect Ratio16:9
Image Border-Radius20px 20px 20px 0
Loading AnimationShimmer effect (1.5s)
Desktop Padding3rem (48px) horizontal

Carousel Banner is a wrapper component that utilizes app-basic-carousel.

These variables must be applied to app-basic-carousel:

VariableValue
--carousel-horizontal-padding0
--carousel-dots-alignflex-start
BreakpointPrev LeftNext Right
Mobile-65px-65px
Tablet (768px+)7px7px
Desktop (1280px+)-42px-42px
OptionTypeDescription
configOwlOptionsCarousel settings
bannersCarouselBannerData[]Banner data array

The component utilizes a loading state with a shimmer animation (1.5s infinite) applied to banner images during the fetch cycle, ensuring a smooth transition from loading to display.

Single static banner display (carousel disabled).

Single Banner

Multiple banners with dot pagination and auto-play.

Multiple Banners

Clickable banners directing users to product or category detail pages.

Linked Banners
  • Homepage hero banners
  • Promotional content
  • Featured products
  • Marketing campaigns
✅ Do❌ Don’t
Optimize image sizesLarge file loads
Provide alt textPoor accessibility
Test autoplay behaviorToo fast/slow
Link to relevant contentBroken/dead links
Use consistent aspect ratioJanky transitions

View in Storybook →