Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ctx-core/carousel


https://github.com/ctx-core/carousel

Last synced: 30 days ago
JSON representation

Awesome Lists containing this project

README

        

# @ctx-core/carousel

## Install

`npm i @ctx-core/carousel`

## Usage

```html

import Carousel from '@ctx-core/carousel'


Slide 1




Slide 2




Slide 3


.slide {
background-size: cover;
}
.slide-1 {
background-image: url(https://images.unsplash.com/photo-1517770317945-aa2dd9c9306f);
}
.slide-2 {
background-image: url(https://images.unsplash.com/photo-1556023176-4b9ee95cfe9b);
}
.slide-3 {
background-image: url(https://images.unsplash.com/photo-1555999003-3f2bc447570e);
}

```

## Styling

This Carousel is a simple left/right carousel.
The slide styling is left up to you.

You can override:

* `:global(.Carousel .button)`
* `:global(.Carousel .button:hover)`
* `:global(.Carousel .button.prev)`
* `:global(.Carousel .button.next)`
* `:global(.Carousel svg)`