ANTSAND Styles STYLES by ANTSAND
  • Docs
  • Databoard
  • Components
  • Utilities
  • Layouts
  • Templates
  • API
  • Download

Carousel

Slide, fade, cards, and cover variants all use the same H/B/F data contract. Change header.carousel_variant and the Sass v2 parent class changes the behavior.

Component
Slide carousel

Slide carousel

Full-width panels with transform-based navigation.

View contract
H/B/F friendly

H/B/F friendly

Header defines behavior; body is just an ordered slide list.

Use data
Accessible controls

Accessible controls

Keyboard, touch, indicators, previous, and next controls come from the template.

Inspect classes

Fade carousel

Crossfade between slides for editorial hero sections and quotes.

Variant
Soft transitions

Soft transitions

The same slide data renders through the fade variant.

Editorial rhythm

Editorial rhythm

Good for stories where motion should feel calm.

One contract

One contract

Only header.carousel_variant changes.

Cards carousel

Multiple visible cards for testimonials, blog posts, projects, or profile posts.

Variant
Card One

Card One

Multi-item carousel with captions.

Card Two

Card Two

A strong fit for profile post cards.

Card Three

Card Three

Uses the same controls.

Card Four

Card Four

Scrollable on mobile.

Cover carousel

Hero-style slides for landing pages and image-led sections.

Variant
Cover Slide

Cover Slide

Large visual first, content overlaid by Sass v2.

Hero Motion

Hero Motion

Useful for landing pages and campaign headers.

No custom JS

No custom JS

The carousel module reads the same data attributes.

Carousel data contract

Use header.carousel_variant plus body[] slides. The renderer emits the exact Sass v2 and JS classes.

Contract

H/B/F JSON

The body array is the slide list. Each item can provide img_src, title/h3, description/p, and cta.

databoard.menu.carousel.topo json
{
  "header": {
    "component_type": "carousel",
    "carousel_variant": "cards",
    "autoplay": false
  },
  "body": [
    {
      "img_src": "/images/slide.jpg",
      "title": "Slide title",
      "description": "Slide copy",
      "cta": { "title": "Read more", "link": "/docs" }
    }
  ]
}

Renderer classes

The focused template emits antsand-carousel-slide/fade/cards/cover, carousel-track, carousel-item, carousel-controls, and carousel-indicators.

ANTSAND

AI-readable CSS, Header/Body/Footer contracts, and generated-site hardening across the ANTSAND ecosystem.

Framework

  • Getting Started
  • Components
  • Utilities
  • Templates

Integration

  • API Reference
  • AI Quick Start
  • Databoard Concept
  • Databoard Utilities

Ecosystem

  • ShivasNotes
  • ANTSAND Blog
  • Antshiv Robotics
  • C Kernel Engine
  • YouTube
  • GitHub
  • Styles GitHub

ANTSAND Styles v2 - Open Source CSS Framework