# angular-skitter

> awesome slider for angularJS build on top skitter.js

Latest version **1.0.2** (published 2017-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-skitter
pnpm add angular-skitter
yarn add angular-skitter
bun add angular-skitter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-01 |
| First published | 2017-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | kinotto88 |

## Links

- npm: https://www.npmjs.com/package/angular-skitter
- Repository: https://github.com/kinotto/angular-skitter
- Issues: https://github.com/kinotto/angular-skitter/issues
- npm.io page: https://npm.io/package/angular-skitter

## Dependencies (4)

- [jquery](https://npm.io/package/jquery.md) ^3.2.1
- [angular](https://npm.io/package/angular.md) ^1.6.4
- [jquery-easing](https://npm.io/package/jquery-easing.md) 0.0.1
- [skitter-slider](https://npm.io/package/skitter-slider.md) ^5.1.4

## Recent versions

- 1.0.2 (latest) — 2017-08-01

## README

# angular-skitter

[![Build Status](https://travis-ci.org/kinotto/angular-skitter.svg?branch=master)](https://travis-ci.org/kinotto/angular-skitter) [![Coverage Status](https://coveralls.io/repos/github/kinotto/angular-skitter/badge.svg)](https://coveralls.io/github/kinotto/angular-skitter)


<a href="https://kinotto.github.io/angular-skitter/github-page/"> <img src="http://res.cloudinary.com/ddbdqb6js/image/upload/v1496330642/skitter_01.png" /></a>

Angular skitter is a responsive and customizable image gallery. The library is extremely flexible, built on top <a href="https://skitter-slider.net/">skitter.js</a> . angular skitter is no more than a wrapper , expose all the functionality of skitter.js inside an angular component.

A simple directive along with a configuration object and you're ready to go

## Installation

`bower install angular-skitter --save`

`npm install angular-skitter --save`

import the script in your html:

```html
<link type="text/css" href="/bower_components/skitter-slideshow/dist/skitter.css" media="all" rel="stylesheet" />
<script src="/bower_components/jquery/dist/jquery.min.js"></script>
<script src="/bower_components/jquery.easing/js/jquery.easing.min.js"></script>
<script src="/bower_components/skitter-slideshow/dist/jquery.skitter.min.js"></script>
<script src="/bower_components/angular-skitter/dist/skitter.min.js"></script>
 ```

 and the module as a dependency
 ```javascript
angular.module('myApp', ['skitter']);
```

## Usage

Use angular skitter is pretty straight forward.

just decorate your html with the directive passing an option object that represents
the configuration applied to the gallery.



```html
<ng-skitter items="photos" options="skitterOption"></ng-skitter>
```

Below a valid configuration, only src is required for each slide, the others are optional

```javascript
$scope.photos = [
    {
        src: 'https://skitterp-4b51.kxcdn.com/images/mountains/3-sand-mountain-clouds.jpg',
        title: 'Title 1',
        description: 'Description 1',
        url: 'http://www.google.com'
    },
    {
        src: 'https://skitterp-4b51.kxcdn.com/images/mountains/4-landscape-with-tree-hills-and-lake.jpg',
        title: 'Title 2',
        description: 'Description 2',
        url: 'http://www.facebook.com'
    }
]
```


```javascript
$scope.skitterOption = {
    auto_play: false,
    theme: "clean",
    navigation: true,
    animation: "cubeShow",
    dots: true
}
```

The list of available configurations are here: [official skitter documentation](https://skitter-slider.net/options.html)

## Transclude
Angular skitter let the user decide how to customize the gallery, by defining a custom html to add a title, description and if necessary a custom css

the content can be added inside the directive and will be transcluded at runtime. available in the scope of the content will be the `item` the `$index`.


```html
<ng-skitter items="photos" options="skitterOption">
    <!-- this spot is free to be customized as you want-->
    <p><strong>#{{$index}} {{item.title}}</strong></p>
    <p>{{item.description}}</p>
</ng-skitter>
```

## Service
if necessary is available a `SkitterService` that allow to set a default configuration valid for each instance of the `ng-skitter directive` inside the application.


```javascript
.controller('MyCtrl', function(SkitterService){
  SkitterService.setOptions({animation: "cubeShow"});
})
```

In this scenario:
```html
<ng-skitter items="photos" options="skitterOption"></ng-skitter>
```
skitterOption will extend the base options


## Examples

<a href="https://kinotto.github.io/angular-skitter/github-page/"><b>Demo</b></a>

## Available animations

**Skitter has 38 different animations:** ['cube', 'cubeRandom', 'block', 'cubeStop', 'cubeStopRandom', 'cubeHide', 'cubeSize', 'horizontal', 'showBars', 'showBarsRandom', 'tube', 'fade', 'fadeFour', 'paralell', 'blind', 'blindHeight', 'blindWidth', 'directionTop', 'directionBottom', 'directionRight', 'directionLeft', 'cubeSpread', 'glassCube', 'glassBlock', 'circles', 'circlesInside', 'circlesRotate', 'cubeShow', 'upBars', 'downBars', 'hideBars', 'swapBars', 'swapBarsBack', 'swapBlocks', 'cut']


## Credit

credit to @Thiago for <a href="https://github.com/thiagosf/skitter">skitter.js</a>

---
_Source: https://npm.io/package/angular-skitter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
