Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/pageshadow
page shadow for pageturner book pages
https://github.com/binocarlos/pageshadow
Last synced: 11 days ago
JSON representation
page shadow for pageturner book pages
- Host: GitHub
- URL: https://github.com/binocarlos/pageshadow
- Owner: binocarlos
- Created: 2014-07-10T09:31:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-15T11:42:30.000Z (over 10 years ago)
- Last Synced: 2024-04-14T14:36:45.245Z (7 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pageshadow
==========page shadow for [pageturner](https://github.com/binocarlos/pageturner) book pages
## installation
```
$ component install binocarlos/pageshadow
```## example
```js
var PageTurner = require('pageturner')
var PageShadow = require('shadow')var pages = [{
title:'Page 1'
},{
title:'Page 2'
},{
title:'Page 3'
}]var book = PageTurner()
var shadows = PageShadow(book)shadows.on('render', function(shadow, index){
})
book.loadData(pages)
book.appendTo(document.querySelector('#container'))
```## api
#### `var shadows = PageShadow(book, opts)`
Create a new shadow module - pass a new [pageturner](https://github.com/binocarlos/pageturner) book to the constructor.
## events
#### `shadows.on('render', function(elem, index){})`
A shadow element has been rendered to a page
## css
The DOM structure for the page shadows:
```html
```## licence
MIT