---
title: "Slideshow"
description: "A full-width slideshow with a parallax effect between slides."
canonical_url: "https://www.blossom-carousel.com/docs/examples/advanced/slideshow"
---

> Index of every page on this site: [llms.txt](https://www.blossom-carousel.com/llms.txt)

<supports-view-timeline-support>
<caution>

View-timeline is not yet supported in this browser. Check browser compatibility at [caniuse.com](https://caniuse.com/?search=scroll-snap-change)

</caution>
</supports-view-timeline-support>

<example-slideshow>



</example-slideshow>

<tabs sync="example-code-style">
<tabs-item label="CSS">
<code-group>

```css [.css]
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  scroll-snap-type: x mandatory;
  height: 22.5rem;
}

.slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: center;

  view-timeline: --slide inline;
}

.slide .card {
  width: 100%;
  height: 100%;

  animation: parallax linear both;
  animation-timeline: --slide;
  animation-range: cover;
}

@keyframes parallax {
  0% {
    transform: translateX(-50%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(50%);
  }
}
```

```html [.html]
<BlossomCarousel class="carousel">
  <div class="slide">
    <div class="card"></div>
  </div>
  <div class="slide">
    <div class="card"></div>
  </div>
  <div class="slide">
    <div class="card"></div>
  </div>
  ...
</BlossomCarousel>
```

</code-group>
</tabs-item>

<tabs-item label="Tailwind">
<code-group>

```css [.css]
.slide {
  view-timeline: --slide inline;
}

.slide .card {
  animation: parallax linear both;
  animation-timeline: --slide;
  animation-range: cover;
}

@keyframes parallax {
  0% {
    transform: translateX(-50%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(50%);
  }
}
```

```html [.html]
<BlossomCarousel
  class="grid! h-90 snap-x snap-mandatory auto-cols-[100%] grid-flow-col"
>
  <div class="slide size-full overflow-hidden snap-center">
    <div class="card size-full"></div>
  </div>
  <div class="slide size-full overflow-hidden snap-center">
    <div class="card size-full"></div>
  </div>
  <div class="slide size-full overflow-hidden snap-center">
    <div class="card size-full"></div>
  </div>
  ...
</BlossomCarousel>
```

</code-group>
</tabs-item>
</tabs>

## Sitemap

See the full [sitemap](https://www.blossom-carousel.com/sitemap.md) for all pages.
