Command Palette
Search for a command to run...
Loading component...
Perspective carousel
A beautiful 3D coverflow carousel with smooth animations and customizable navigation. Features a stunning 3D effect that creates depth and visual interest with centered slides and customizable options.
Dependencies
Interaction Type
Try swiping or dragging images | |
Try clicking on the pagination dots | |
Observe 3D coverflow effect with depth and rotation | |
Optional autoplay with customizable timing |
with shacn cli3.0
//components.json
"registries": {
"@skiper-ui": "https://skiper-ui.com//registry/{name}.json"
}
npx shadcn add @skiper-ui/skiper47
OR with old shacncli
npx shadcn@latest add https://skiper-ui.com/registry/skiper47.json
How to use
import { Carousel_001 } from "@/components/v1/skiper47"; // Using the carousel component with custom images const CustomCarousel = () => { const images = [ { src: "/path/to/image1.jpg", alt: "Description 1", }, { src: "/path/to/image2.jpg", alt: "Description 2", }, // ... more images ]; return ( <Carousel_001 images={images} showPagination={true} showNavigation={true} loop={true} autoplay={true} spaceBetween={40} /> ); };
Props | Description |
---|---|
images | Array of image objects with src and alt properties |
className | Additional CSS classes for styling |
showPagination | Show pagination dots at the bottom |
showNavigation | Show navigation arrows |
loop | Enable infinite loop |
autoplay | Enable automatic slideshow |
spaceBetween | Space between slides in pixels |
Customization
The carousel uses Swiper.js with the coverflow effect. You can customize the 3D effect by modifying the coverflowEffect object
{{ rotate: 0, // Rotation angle slideShadows: false, // Enable/disable slide shadows stretch: 0, // Stretch effect depth: 100, // Depth of the 3D effect modifier: 2.5, // Effect modifier }}
style Customization
- Well most of the style you can customize inline.
- But some style you have to do it with css classes.
- Find out the style name from dev tools.
- Access it with you className.
<Swiper className="Carousal_001" />
.Carousal_001 { padding-bottom: 50px !important; } .Carousal_001 .swiper-slide { border: 1px solid red; } .Carousal_001 .swiper-pagination { color: red; } .Carousal_001 .swiper-pagination-bullet-active { background: red; }
Attribution
Source code
Click on the top right to view the source code
Keep in mind
Most components here are recreations of the best out there. I don't claim to be the original creator. This is my attempt to reverse-engineer, replicate, and often add a few extra features. I've tried to credit everyone, but if I missed something, let me know.
Contact
Additionlly, if you find any bug or issue, feel free toDrop a dm.
License & Usage:
- Free to use and modify in both personal and commercial projects.
- Attribution to Skiper UI is required when using the free version.
- No attribution required with Skiper UI Pro.