true-perfect-code
Version: 1.2.75

P11Carousel Component

The P11Carousel is a high-end content slider designed for emotional hero sections. It supports advanced cinematic effects like Ken Burns, Parallax, and Blur Reveal. It is fully responsive, optimized for performance via hardware acceleration, and includes an optional glassmorphism progress indicator.

P11 UI Carousel - Auto-Loop Demo


1. Hero Slider (Images)

2. Product Carousel (Colors & Icons)


3. Modern Gallery (4 Slots)

4. Multi-Row Gallery (4x3 Grid - 12 Slots)

Testet 3 Zeilen mit dynamischer Spaltenanzahl und automatischer Bildwiederholung.




Google
Google
Microsoft
Microsoft
Apple
Apple
Meta
Meta
Amazon
Amazon
Tesla
Tesla
Google
Google
Microsoft
Microsoft
Apple
Apple
Meta
Meta
Amazon
Amazon
Tesla
Tesla

5. Selecting Focus Mode (Slot-based)

Nutzt das neue Slot-Konzept mit Zoom.

Brückenbau
Frühlingserwachen
Alpine Gipfel
Urbanes Leben
Gourmet Welt
🏔️

5. Selecting Focus Mode (Slot-based)

Nutzt das neue Slot-Konzept mit Zoom.

Brückenbau
Frühlingserwachen
Alpine Gipfel
Urbanes Leben
Gourmet Welt

Implementation



Component API

Parameter Type Default Description
Type P11CarouselType Slider Specifies the carousel mode: Slider, Gallery, Carousel, Category or Selection (peeking/focus mode).
Items IEnumerable<TItem>? null The collection of items to display. Items should implement IP11CarouselEntity for best A11y & Category mode support.
BackgroundTemplate RenderFragment<TItem>? null Template for Layer 1 – background/media content (images, videos, etc.).
OverlayTemplate RenderFragment<TItem>? null Template for Layer 3 – static overlay content (titles, buttons, descriptions) that remains unaffected by animations.
IsFullScreen bool false If true, uses 100dvh (dynamic viewport height) – ideal for hero sections.
Height string "500px" Fixed height when IsFullScreen=false. Supports px, vh, rem, etc.
Animation P11AnimationType Slide Visual transition effect between items.
Interval int 5000 Time in ms between automatic transitions (when AutoCycle=true).
AutoCycle bool true Enables automatic cycling through items.
PauseOnHover bool true Pauses auto-cycle and animations on mouse hover / touch focus.
ShowNavigationArrows bool true Shows previous/next arrow buttons.
ShowNavigationIndicators bool true Shows dot indicators at the bottom (for Slider/Selection modes).
IconClassPrevious string "bi bi-chevron-left fs-1" CSS classes for the previous arrow icon (Bootstrap Icons + utilities).
IconClassNext string "bi bi-chevron-right fs-1" CSS classes for the next arrow icon.
ShowProgressBar bool? null (type-dependent) Shows a progress bar for auto-cycle. Default: true for Slider, false for Gallery.
OverlayColor string "black" Color of the semi-transparent overlay layer (Layer 2).
OverlayOpacity double 0.0 Opacity of the overlay layer (0.0 = transparent, 1.0 = fully opaque).
VisibleSlotsSm int 1 Visible items/columns on small screens (< 768px).
VisibleSlotsMd int 3 Visible items/columns on medium screens (≥ 768px).
VisibleSlotsLg int 4 Visible items/columns on large screens (≥ 1200px).
Rows int 1 Number of rows in Gallery mode.
Gap int 0 Gap between items using Bootstrap spacing scale (0–5).
GalleryOrder P11GalleryOrder Asc Order logic for Gallery rotation: Ascending, Descending or Random.
IsAsync bool false If true: each gallery slot uses its own timer (organic/wimmel effect).
AsyncRandom double 0.85 Randomization factor for async mode (0.0 = none, 1.0 = maximum variation).
ItemsBefore int 1 Number of peek items shown before the active/center item (Selection mode).
ItemsAfter int 1 Number of peek items shown after the active/center item (Selection mode).
CssClass string? null Additional CSS class(es) for the main carousel container.
AriaLabel string? null Global accessible label for the entire carousel component.
RightToLeft bool false Direction for Carousel/Ticker mode: true = right to left.
SkipValidation bool false Suppresses runtime configuration warnings (e.g. missing Items.Count check).
OnItemClick EventCallback<TItem> Callback when an item or its overlay is clicked.
BaseZIndex int 1 Base z-index value for layering inside the component.

Enums

P11CarouselType – Carousel Modes
ValueDescription
SliderClassic full-width hero slider (one item at a time)
GalleryGrid-based multi-item exploration (rows + columns)
CarouselContinuous seamless ticker / marquee (endless loop)
CategoryAuto-grouped by Category property – each group is its own carousel
SelectionFocus / peeking mode with centered active item + visible before/after items
P11AnimationType – Transition Effects
ValueDescription
SlideHorizontal slide transition
FadeCross-fade
ZoomScale in/out effect
VerticalDownSlide in from top to bottom
VerticalUpSlide in from bottom to top
DiagonalUpDiagonal slide from bottom-left
FlipCard-flip like rotation
KenBurnsContinuous slow zoom + pan (20s cycle)
ParallaxDepth effect – background moves slower
BlurRevealProgressive sharpen / focus reveal
NoneInstant hard cut (0ms transition)
P11GalleryOrder – Gallery Rotation Logic
ValueDescription
AscSequential ascending order
DescSequential descending order
RandomRandom selection on each cycle
An unhandled error has occurred. Reload 🗙