Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kravse/shifter

A Ken Burns style automatic background image shifter.
https://github.com/kravse/shifter

Last synced: 14 days ago
JSON representation

A Ken Burns style automatic background image shifter.

Awesome Lists containing this project

README

        

Background Shifter
===========

This is a little plugin that lets you add a rotating background to any div. This is not a user controlled slideshow, it's simply a rotating background.

Instructions:

1) In the project root, run 'npm install'

2) Run gulp to compile all static assets from 'src' into their build destinations.

3) Optional: Run gulp watch to poll for changes.

Setup the Background shifter

1) Include the shifter.js file.

2) Add as many slides with the class .bg-shifter into any parent div. The shifter takes the height and width of the parent div, so you may need to style the parent appropriately. Each bg-shifter should have an inline style setting the background image.

i.e.

```


```

3) Initialize the shifter using Shifter.shift(object, time)(i.e. Shifter.shift($('.test-box'), 6000); )