You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-44Lines changed: 19 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ _The GIF tag the internet deserves_
10
10
<x-gifsrc="probably_cats.gif"></x-gif>
11
11
```
12
12
13
-
Playback modes:
13
+
###Playback modes:
14
14
15
15
Mutually exclusive. Can't be changed once initialised (create a new x-gif if you want a new mode)
16
16
@@ -23,7 +23,7 @@ Defers playback to an external object. The DOM element will then expose a `clock
23
23
`bpm="120"`
24
24
Syncs GIFs to a given beats-per-minute. If multiple x-gifs are on the page, they will all be synced together. By default, will spread long GIFs over multiple beats, unless the `snap` option is also included. Uses `sync` and `clock` under the hood. Can be changed and will take immediate effect.
25
25
26
-
Options:
26
+
###Options:
27
27
28
28
`stopped`
29
29
Regardless of playback mode, this will prevent the GIF from animating. Removing this attribute resumes playback. In `speed` mode, the GIF will always resume playback from the beginning.
@@ -40,15 +40,15 @@ Instead of allowing longer GIFs to sync to multiple beats, force them to fit int
40
40
`ping-pong`
41
41
Boolean attribute. Plays the GIF front-to-back then back-to-front, which looks more awesome for some GIFs. Works with all playback modes. Can be removed/added at any time.
42
42
43
-
Debugging:
43
+
###Debugging:
44
44
45
45
`debug`
46
46
Turns on debug output from the Gif Exploder, which can help track down errors with some GIFs being parsed incorrectly.
47
47
48
48
`exploded`
49
49
For visual inspection of the frames. Stops playback, and renders each frame out side-by-side. Many frames will appear semi-transparent, because that's how GIFs work. But this might come in handy.
50
50
51
-
What does it do?
51
+
##What does it do?
52
52
53
53
* AJAX fetches the GIF as a binary stream
54
54
* Slices the GIF into frames like a total boss
@@ -57,52 +57,27 @@ What does it do?
57
57
58
58
**[Here's a demo! It just might work in your browser!](http://geelen.github.io/x-gif)**
59
59
60
-
## Options
61
-
62
-
### Speed
63
-
64
-
Spins through the frames at its natural rate multiplied by `speed`
Defers playback to an external clock, such as beat data from an audio stream to make rad synchronised GIFs & music. [See an example](http://geelen.github.io/x-gif/demos/audio.html).
102
-
103
-
**[Check out the rest of the demos](http://geelen.github.io/x-gif)**
78
+
This will detect support for Web Components, shim them if needed, then load x-gif with a HTML import.
104
79
105
-
## Status
80
+
## Roadmap
106
81
107
82
* Web Component - YES! (zero-dependencies on Chrome 36!)
108
83
* Polymer element - Nah, just use the Web Component
0 commit comments