B
Bonzai 2
Web Parts

Slider

Rotating banner carousel for featured content with multiple transition animations, configurable click behavior, and auto-play.

ContentFeature Parity: 95%

Get Slider Working in 3 Steps

10-20 minutes

Prerequisites

  • Bonzai 2 package installed on your site
  • Site Pages with banner images
  • Pages tagged with Showcase (or Featured) = "Slider"
1

Add the web part

Edit your page and add "Bonzai Slider" to a full-width section.

2

Choose your data source

Select a site and list, then set the Showcase value (default: Slider). Optionally pre-filter by tags.

3

Configure animation and display

Choose a transition animation, enable auto-play, and set overlay/metadata options.

When to Use This Web Part

Use this when you need to...

  • Create a rotating hero banner
  • Highlight multiple featured stories
  • Display promotional content
  • Showcase news highlights

Best page locations

  • Homepage — hero carousel
  • News center — featured stories
  • Event pages — upcoming highlights

Consider alternatives when...

  • Static content — use Landing
  • All news articles — use News Rollup

Related web parts:

Landingstatic tile gridSpotlight Rollupstatic featured cards

Animation Options

The slider supports multiple transition animations:

  • Fade: Smooth fade transition between slides
  • Slide: Horizontal slide transition
  • Flip X: Horizontal flip animation
  • Flip Y: Vertical flip animation
  • Rotate: Rotation animation

Auto-Play Settings

  • Interval: 2-30 seconds (default: 5 seconds)
  • Transition Duration: 1-10 seconds (default: 3 seconds)
  • Slide Transition Delay: optional delay before the animation begins — None (instant), 500ms, 1s, 2s, or 3s (default: None)
  • Auto Loop: when disabled, navigation stops at the first/last slide and auto-play halts at the end (default: On)
  • Pause on hover: automatically pauses when the user hovers the slider; resumes on mouse leave
  • Single slide guard: auto-play never starts when there is only one slide

Slide Click Behavior

  • Entire Slide Clickable (default): the whole slide acts as a link to the page. It is keyboard-focusable (Enter or Space activates it) and exposes role="link".
  • Content Only Clickable: only the title link inside the overlay navigates to the page.

Slide Image Source

The slider chooses images in this order:

  • Banner Image (default): uses overrideImageUrl from the Bonzai Page Banner in CanvasContent1 first, then the list-item BannerImageUrl, then image URLs discovered in CanvasContent1, and finally an xl preview from getpreview.ashx. Best for full-resolution hero imagery.
  • Thumbnail: fetches BannerThumbnailUrl from the SitePages API and uses it when available, falling back to the Banner Image pipeline otherwise. Lighter weight, good for list-like carousels.

Recent Updates

  • New: Date Field control in the Date section lets authors choose which DateTime column drives the displayed date in slide metadata. Auto-populated from the source list's DateTime columns.
  • Site picker, list picker, and title icon picker.
  • Showcase selector + tag multi-select for curated slides.
  • Search and filter UI with metadata toggles (date/author/tags).
  • Configurable slide click behavior (content-only vs entire-slide).
  • Auto loop toggle + slide transition delay.
  • New: slide image source selector — Banner Image (full-resolution hero) vs Thumbnail (auto-generated preview).
  • New: image fit mode (cover/contain/fill/none/scale-down) and container padding, border radius, overlay text scale controls.
  • New: customizable date format — text/numeric style, long/short month, year order, separator, 2/4-digit year, with live preview.
  • Improved: property pane reorganized into pages (General / Behavior / Display / Advanced).

Common Configurations

Copy these ready-to-use configurations:

Homepage Hero

Auto-playing hero carousel

Best for: Homepage
Configuration
listNameSite Pages
showcaseValueSlider
autoPlayOn
autoPlayInterval5
transitionAnimationfade

Static Banner

Manual navigation only

Best for: Landing page
Configuration
autoPlayOff
showOverlayOn
fixedHeight400
imageFitcover

Dynamic Slide Effect

Slide animation with fast transitions

Best for: News page
Configuration
transitionAnimationslide
transitionDuration2
slideTransitionDelay0.5
autoPlayInterval4

Tagged Highlights

Curated slider items by tag

Best for: News center
Configuration
showcaseValueSlider
selectedTagsLeadership, Featured
showTagsOn

Best Practices

Limit to 3-5 slides

Too many slides reduces engagement. Keep the most important content visible.

Accessibility consideration

Some users prefer to disable auto-play. The slider includes navigation controls for manual browsing.

Troubleshooting

Still need help? Contact Bonzai Support


Reference

Site Pages Schema

Slider reads from Site Pages (fallbacks: Site Pages, SitePages, Pages). Use these columns to curate slider items:

  1. Create or use the Site Pages library on the source site.
  2. Add a Showcase column (Choice or Text) and set value Slider on items.
  3. Optional: add Tags and Category fields for filters.
  4. Ensure each page has a banner image and is published.
ColumnTypeRequiredNotes
TitleSingle line of textYesDefault Site Pages column — used as the slide headline
Banner ImageImageNoSlide background. The web part also falls back to overrideImageUrl in CanvasContent1, and to an auto-generated thumbnail/preview.
ShowcaseChoice or TextYesSet to Slider (internal names Showcase, Showcase_x003f_, Featured, and Featured_x003f_ are all recognised)
OwlNewsPageCategory / CategoryChoiceNoOptional category label shown in the overlay
Tags / Enterprise KeywordsManaged MetadataNoUsed for curation (pre-filter) and the optional runtime filter UI
AuthorPersonNoStandard Author column, shown when showAuthor is on
Created / ModifiedDate & TimeNoCreated date drives ordering and the shown date

Content type requirement

Slider only returns modern news pages — items whose ContentTypeId starts with 0x0101009D1CB255DA76424F860D91F20E6C4118. Regular Site Pages without that content type are filtered out even if they have a Showcase value.

Property Pane Configuration

Property pane pages

Slider settings are organized into four pages: General (title + data source), Behavior (slide behavior + animation/playback),Display (appearance + content display), and Advanced (search/filters + additional settings).

General (Title & Data Source)

PropertyTypeDescription
titleTextWeb part title (blank hides header row)
titleIconOptionDropdownTitle icon mode: Custom or None
titleIconNameIcon PickerFluent UI icon for the header
titleIconUrlTextCustom icon URL (overrides icon name)
titleUrlTextOptional title link URL
siteUrlModeDropdownPick a site or enter a manual URL
selectedSitesSite PickerSelected site when using Site Picker
siteUrlTextManual site URL when Site Selection Mode = manual
listIdList PickerSource list (Site Pages) from the selected site
showcaseValueDropdownShowcase/Featured value used to include items (default: Slider)
selectedTagsMulti-selectPre-filter by tags (optional)

Behavior (Slide Behavior, Animation & Playback)

PropertyTypeDescription
slideClickBehaviorDropdownContent only clickable, or entire slide clickable (default)
autoLoopToggleWrap navigation at boundaries (turn off to stop at first/last slide)
transitionAnimationDropdownAnimation: Fade, Slide, Flip X, Flip Y, Rotate
transitionDurationText (Number)Transition duration in seconds (1-10)
slideTransitionDelayDropdownDelay before transition animation begins (0–3s)
autoPlayToggleEnable auto-rotation (default: On)
autoPlayIntervalSlider (2-30)Seconds between slides (default: 5)

Display — Appearance

PropertyTypeDescription
fixedHeightSlider (0-1000, step 25)Slider height in pixels (default: 500)
containerPaddingSlider (0-40, step 2)Inner padding around the slider in pixels (default: 0)
borderRadiusSlider (0-20, step 1)Corner radius for the slider container in pixels (default: 0)
textScaleSlider (0.7-1.6, step 0.1)Overlay text scale factor applied via a --slider-text-scale CSS variable (default: 1)
showOverlayToggleShow dark overlay for text readability (default: On)
imageFitDropdownImage fit mode — cover (default), contain, fill, none, scale-down. Applied as background-size on slide images.
slideImageSourceDropdownImage source — BannerImage (default, full-resolution hero from Banner Image / CanvasContent1) or Thumbnail (auto-generated preview from BannerThumbnailUrl)

Display — Content Display

PropertyTypeDescription
showDateToggleShow item date (default: On). Reveals date formatting sub-options when enabled.
showAuthorToggleShow author name (default: Off)
openInNewTabToggleOpen slide links in a new browser tab (default: Off)
dateFieldNameDropdownWhich date to display in slide metadata. Default: "" (Auto). Auto-populated from the source list's DateTime columns: starts with Auto, then FirstPublishedDate / Created / Modified, then any non-hidden DateTime column found on the list.
showCategoryToggleShow category label when the field exists (default: On)
showTagsToggleShow tag pills when available (default: Off)
showExcerptToggleShow excerpt when the slide has one (default: On)
showLikesToggleShow likes count when available (default: On)
showCommentsToggleShow comments count when available (default: On)

Display — Date Format (shown when showDate is on)

PropertyTypeDescription
dateStyleChoicetext (e.g. April 9, 2026) or numeric (e.g. 09/04/2026)
dateMonthFormatDropdownText style only — long (April) or short (Apr)
dateShowYearToggleText style only — include the year
dateOrderDropdownNumeric style only — DMY, MDY, or YMD
dateSeparatorDropdownNumeric style only — /, -, or .
dateYearDigitsDropdownNumeric style only — 4 (2026) or 2 (26)

Live date preview

A live preview of the configured date format is shown directly under the date settings in the property pane.

Advanced (Search & Filters, Advanced Settings)

PropertyTypeDescription
enableSearchToggleShow an inline search box above the slider (default: Off). Filters by title, category, author, or tags.
enableFiltersToggleShow filter controls above the slider (default: Off) — page type, category, tags, and date-from / date-to pickers.
descriptionText (Multiline)Optional description for this web part
helpUrlTextOptional link to help documentation

Features Checklist

  • ✅ Multiple transition animations (Fade, Slide, Flip X, Flip Y, Rotate)
  • ✅ Configurable auto-play with interval (2-30s)
  • ✅ Auto loop toggle (wrap or stop at boundaries)
  • ✅ Configurable click behavior (content-only or entire-slide, with keyboard / Enter & Space support)
  • ✅ Slide transition delay (0 / 500ms / 1 / 2 / 3s)
  • ✅ Pause on hover
  • ✅ Navigation controls (dots and arrows)
  • ✅ Dark overlay option
  • ✅ Site picker or manual URL data source + list picker
  • ✅ Showcase-based curation + optional tag pre-filter
  • ✅ Runtime search and filter UI (search, page type, category, tags, date-from / date-to)
  • ✅ Metadata toggles (category, tags, date, author, excerpt, likes, comments)
  • ✅ Customizable date format (text or numeric, month / year / order / separator) with live preview
  • ✅ Image fit mode (cover / contain / fill / none / scale-down)
  • ✅ Image source selector (Banner Image vs auto-generated Thumbnail)
  • ✅ Configurable height, container padding, border radius, and overlay text scale
  • ✅ Title icon picker (Fluent UI icon or custom icon URL) and optional title link