https://github.com/dimitarchristoff/spritzy
spritz clone for funz.
https://github.com/dimitarchristoff/spritzy
Last synced: about 1 year ago
JSON representation
spritz clone for funz.
- Host: GitHub
- URL: https://github.com/dimitarchristoff/spritzy
- Owner: DimitarChristoff
- Created: 2014-03-09T14:58:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-11T12:30:35.000Z (over 12 years ago)
- Last Synced: 2025-03-23T03:32:43.405Z (about 1 year ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
spritzy
=======
It's like Spritz - only it's without all the science and the niceties. Yet, it kind of works.
In action - [http://fragged.org/spritzy/example/](http://fragged.org/spritzy/example/)
## usage
Here's an example under AMD:
```javascript
define(function(require){
var textNode = document.querySelector('[data-spritzy]'),
text = textNode.innerText || textNode.textContent;
var Sptitzy = require('spritzy'),
spritzy = new Sptitzy(document.querySelector('div.reader'), {
text: text,
cycle: false,
cache: true
});
});
```
## todo
Coming:
- build (minified)
- bookmarklet
- controls + keyboard shortcuts