Skip to main content

<Slide/>

Slide is a wrapper for your Slide content.

There are some level of elements inside it:

Slide -> Margin wrapper -> Padding wrapper -> Inner wrapper -> Your element

Import

import {Slide} from "react-scroll-snap-anime-slider";

Usage

<Slide
key={i}
aria-label="my slide"
>
<div>Content<div/>
</Slide>

Props

NameTypeRequiredDefaultDescription
DIV PropsReact.HTMLAttributes<HTMLDivElement>NoDIV Element props
innerMarginDivPropsReact.HTMLAttributes<HTMLDivElement>NoProps to the margin DIV
innerPaddingDivPropsReact.HTMLAttributes<HTMLDivElement>NoProps to the padding DIV
innerWrapperDivPropsReact.HTMLAttributes<HTMLDivElement>NoProps to the inner wrapper DIV

CSS

You can override the default style by using these class names.

Rule NameDescription
.rssas-slideFor Slide
.rssas-slide-inner-marginFor margin DIV
.rssas-slide-inner-paddingFor padding DIV
.rssas-slide-inner-wrapperfor inner wrapper DIV