Ecosyste.ms: Awesome

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

https://github.com/drygiel/csslider

Pure CSS slider
https://github.com/drygiel/csslider

Last synced: 22 days ago
JSON representation

Pure CSS slider

Lists

README

        

CSS Slider
==========

Pure CSS, simple slider.



ight design

## Examples

Here are some examples:

- [Dark](http://rawgithub.com/drygiel/csslider/master/examples/dark.html)
- [Bright](http://rawgithub.com/drygiel/csslider/master/examples/light.html)
- [Basic](http://rawgithub.com/drygiel/csslider/master/examples/basic.html)
- [Playground](http://codepen.io/drygiel/pen/rtpnE)

## Supported browsers

- Chrome `(tested only on 30)`
- Firefox `(tested only on 24)`
- IE
- `9` No transitions
- `10+` Works perfect
- Opera `(tested only on 12)`

## Installation

- Include the CSS stylesheet at the end of `` element:

```html

```
- Put code into webpage:

```html








  • Content of slide 1

  • Content of slide 2

  • Content of slide 3

  • Content of slide 4

  • Content of slide N













```
Code you can generate from [JADE](https://github.com/drygiel/csslider/blob/master/build/template.jade) template file [here](http://codepen.io/drygiel/pen/rtpnE)

## Global configuration
Default configuration can be set in [LESS](https://github.com/drygiel/csslider/blob/master/build/csslider.less) file.

## Local configuration
If you want to change configuration for specific element you must override default config.
For instance if you have an element with id `#my-slider` and you want to change:
- arrows color

```css
#my-slider .arrows label {
border-left-color: red;
border-right-color: red;
}
```
- inside navigation border

```css
#my-slider.inside .navigation label {
border: 1px solid red;
}
```