-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
106 lines (75 loc) · 2.19 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
split-flap.jquery.js
Author: J. Phillip Nelson http://jpnelson.com
ABOUT
-------
This is a super simple JQuery plugin to display feeds of information as an N-N grid of characters simulating a split-flap display board.
http://en.wikipedia.org/wiki/Split-flap_display
Right now, the transition for each character is a simple text change, or a CSS3 3-D rotiation on the X-axis.
TODO: The 3-D transition is a little slow, so the goal will be to write a really awesome one that will work on a much smaller 8x1 grid.
USAGE
-------
// Initiate feed
var display = $('#solari-feed').splitflap();
// The feed can be a list of titles
var news = ['A','B','C'];
// Or a list of url,title tuples
var news = [['http://example.com/A','A'],['http://example.com/B','B']];
// Pass in a feed of titles to cycle through
display.cycle(news);
// Or you can always just write a title
display.write('Hello!');
OPTIONS
--------
speed: 60,
rotationSpeed: 50,
cycleSpeed: 10000,
rows: 4,
columns: 39,
characters: " ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.!@#$%^&*¡§®µ¶¼½¾¿".split(''),
default_character: " ", // Starting character
cssClass: "split-flap-line",
attrName: "split-flap-character",
transform: false // Use a 3-D Transition
CSS (to get started...)
------
.split-flap-line {
list-style-type: none;
-webkit-padding-start: 0;
-webkit-margin-after: 0;
padding-bottom: 2px;
margin-top: 0;
}
.split-flap-line:last-child { padding-bottom: 0; }
.split-flap-link { cursor: pointer; }
.split-flap-line li, .split-flap-line li .split-flap-new {
background: #333;
color: #EEE;
width: 16px;
height: 24px;
font-size: 18px;
text-align: center;
line-height: 26px;
vertical-align: top;
}
.split-flap-line li {
border: 1px solid black;
display: inline-block;
margin-right: 2px;
position: relative;
z-index: 8000;
}
.split-flap-line li .split-flap-new {
z-index: 9000;
position: absolute;
top: 0;
left: 0;
}
.split-flap-line li:last-child {
margin-right: 0px;
}
THANKS
-------
A special thanks to authors of TransformJS (included in plugin).
http://transformjs.strobeapp.com/
Another thanks for my friend Robin Willis for inspiring project with CharCycle
http://www.robincwillis.com/CharCycle/