It is a element for cycling through elements with animation effects. All child elements will are the slides of the carousel.
import React from 'react';
import ReactDom from 'react-dom';
import { Carousel, Image } from '@quarkly/elements';
ReactDom.render(
<Carousel dots height="400px" bg="black">
<Image
src="https://www.jpl.nasa.gov/images/mars/20160421/PIA00407-16.jpg"
variant="fluid"
height="400px"
/>
<Image
src="https://photojournal.jpl.nasa.gov/jpeg/PIA18182.jpg"
variant="fluid"
height="400px"
/>
<Image
src="https://www.jpl.nasa.gov/images/cassini/20160408/PIA11141-16.jpg"
variant="fluid"
height="400px"
/>
</Carousel>
document.getElementById('root'),
);
- variant
- p
- pt
- pr
- pb
- pl
- px
- py
- m
- mt
- mr
- mb
- ml
- mx
- my
- bg
- background / bg
- backgroundImage / bgi
- backgroundSize / bgsz
- backgroundPosition / bgp
- backgroundRepeat / bgr