domma-cms 1.66.8 → 1.66.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/admin/js/app.js +2 -2
- package/admin/js/templates/docs/usage-shortcodes-components.html +366 -0
- package/admin/js/templates/docs/usage-shortcodes-content.html +550 -0
- package/admin/js/templates/docs/usage-shortcodes-data.html +469 -0
- package/admin/js/templates/docs/usage-shortcodes-effects.html +880 -0
- package/admin/js/templates/docs/usage-shortcodes-layout.html +732 -0
- package/admin/js/templates/docs/usage-shortcodes.html +82 -0
- package/admin/js/templates/documentation.html +20 -0
- package/admin/js/views/doc-pages.js +1 -1
- package/admin/js/views/index.js +1 -1
- package/package.json +1 -1
- package/server/server.js +5 -0
- package/server/services/docs.js +5 -0
|
@@ -0,0 +1,880 @@
|
|
|
1
|
+
<div class="view-header">
|
|
2
|
+
<h1><span data-icon="sparkles"></span> Effect shortcodes</h1>
|
|
3
|
+
<a href="#/docs/usage/shortcodes" class="btn btn-ghost btn-sm"><span data-icon="arrow-left"></span> Shortcodes</a>
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-12">
|
|
8
|
+
<div class="docs-body">
|
|
9
|
+
|
|
10
|
+
<p>These shortcodes add movement: things that fade in as the page scrolls, text that types itself, numbers that count up, sparkles, light beams, and full-page celebrations for the seasons. Each one has its own section below, with an example to copy and every attribute it takes.</p>
|
|
11
|
+
<p>Three things are true of all of them:</p>
|
|
12
|
+
<ul>
|
|
13
|
+
<li><strong>In the editor</strong> the <strong>Effects</strong> button in the toolbar, beside Insert, has a form and a live preview for each. Right-click in the text for <strong>Add effect…</strong> and <strong>Celebrations…</strong>, or on an effect tag to change it.</li>
|
|
14
|
+
<li><strong>Reduced motion is respected.</strong> A visitor whose device asks for less movement sees the content still.</li>
|
|
15
|
+
<li><strong>Many can be added to another tag instead of wrapped around it</strong> - see "Adding an effect to a card, hero, banner, column or button" at the end.</li>
|
|
16
|
+
</ul>
|
|
17
|
+
<h3 id="sc-reveal"><code>reveal</code> - appear on scroll</h3>
|
|
18
|
+
<p>What is inside appears with an animation when it scrolls into view.</p>
|
|
19
|
+
<pre><code>[reveal animation="slide-up" duration="600"]
|
|
20
|
+
## Our story
|
|
21
|
+
It started in a shed.
|
|
22
|
+
[/reveal]
|
|
23
|
+
</code></pre>
|
|
24
|
+
<table class="table table-sm">
|
|
25
|
+
<thead>
|
|
26
|
+
<tr>
|
|
27
|
+
<th>Attribute</th>
|
|
28
|
+
<th>What it does</th>
|
|
29
|
+
</tr>
|
|
30
|
+
</thead>
|
|
31
|
+
<tbody><tr>
|
|
32
|
+
<td><code>animation</code></td>
|
|
33
|
+
<td><code>fade</code>, <code>slide-up</code>, <code>slide-down</code>, <code>zoom</code> or <code>flip</code></td>
|
|
34
|
+
</tr>
|
|
35
|
+
<tr>
|
|
36
|
+
<td><code>duration</code></td>
|
|
37
|
+
<td>How long it takes, in milliseconds</td>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<td><code>delay</code></td>
|
|
41
|
+
<td>A wait before it starts, in milliseconds</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td><code>threshold</code></td>
|
|
45
|
+
<td>How much has to be in view before it starts, 0 to 1</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td><code>once</code></td>
|
|
49
|
+
<td><code>false</code> plays it every time it comes into view, not just the first</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</tbody></table>
|
|
52
|
+
<p>Without <code>animation</code>, <code>duration</code> or <code>threshold</code>, the site's own settings under <strong>Effects</strong> are used (a 600 millisecond fade unless you have changed them).</p>
|
|
53
|
+
<p>To bring the columns of a row in one after another, use <code>[row reveal]</code> - see <a href="#/docs/usage/shortcodes-layout">Layout shortcodes</a>.</p>
|
|
54
|
+
<h3 id="sc-breathe"><code>breathe</code> - gentle, continuous movement</h3>
|
|
55
|
+
<p>What is inside gently grows and shrinks, continuously.</p>
|
|
56
|
+
<pre><code>[breathe amplitude="6" duration="3000"]
|
|
57
|
+
[button href="/offer" variant="primary"]See the offer[/button]
|
|
58
|
+
[/breathe]
|
|
59
|
+
</code></pre>
|
|
60
|
+
<table class="table table-sm">
|
|
61
|
+
<thead>
|
|
62
|
+
<tr>
|
|
63
|
+
<th>Attribute</th>
|
|
64
|
+
<th>What it does</th>
|
|
65
|
+
</tr>
|
|
66
|
+
</thead>
|
|
67
|
+
<tbody><tr>
|
|
68
|
+
<td><code>amplitude</code></td>
|
|
69
|
+
<td>How far it moves, in pixels (default 6)</td>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr>
|
|
72
|
+
<td><code>duration</code></td>
|
|
73
|
+
<td>The length of one breath, in milliseconds (default 3000)</td>
|
|
74
|
+
</tr>
|
|
75
|
+
</tbody></table>
|
|
76
|
+
<h3 id="sc-pulse"><code>pulse</code> - a repeating beat</h3>
|
|
77
|
+
<p>A repeating beat - stronger than breathe.</p>
|
|
78
|
+
<pre><code>[pulse scale="1.05" duration="2000"]
|
|
79
|
+
[badge variant="danger"]Live[/badge]
|
|
80
|
+
[/pulse]
|
|
81
|
+
</code></pre>
|
|
82
|
+
<table class="table table-sm">
|
|
83
|
+
<thead>
|
|
84
|
+
<tr>
|
|
85
|
+
<th>Attribute</th>
|
|
86
|
+
<th>What it does</th>
|
|
87
|
+
</tr>
|
|
88
|
+
</thead>
|
|
89
|
+
<tbody><tr>
|
|
90
|
+
<td><code>scale</code></td>
|
|
91
|
+
<td>How large it grows on each beat (default 1.05, which is 5% larger)</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<td><code>duration</code></td>
|
|
95
|
+
<td>The length of one beat, in milliseconds (default 2000)</td>
|
|
96
|
+
</tr>
|
|
97
|
+
</tbody></table>
|
|
98
|
+
<h3 id="sc-shake"><code>shake</code> - a single shake</h3>
|
|
99
|
+
<p>What is inside shakes once.</p>
|
|
100
|
+
<pre><code>[shake intensity="5" direction="horizontal"]
|
|
101
|
+
Last few tickets!
|
|
102
|
+
[/shake]
|
|
103
|
+
</code></pre>
|
|
104
|
+
<table class="table table-sm">
|
|
105
|
+
<thead>
|
|
106
|
+
<tr>
|
|
107
|
+
<th>Attribute</th>
|
|
108
|
+
<th>What it does</th>
|
|
109
|
+
</tr>
|
|
110
|
+
</thead>
|
|
111
|
+
<tbody><tr>
|
|
112
|
+
<td><code>intensity</code></td>
|
|
113
|
+
<td>How far it moves, in pixels (default 5)</td>
|
|
114
|
+
</tr>
|
|
115
|
+
<tr>
|
|
116
|
+
<td><code>duration</code></td>
|
|
117
|
+
<td>How long it lasts, in milliseconds (default 500)</td>
|
|
118
|
+
</tr>
|
|
119
|
+
<tr>
|
|
120
|
+
<td><code>direction</code></td>
|
|
121
|
+
<td><code>horizontal</code> (default) or <code>vertical</code></td>
|
|
122
|
+
</tr>
|
|
123
|
+
</tbody></table>
|
|
124
|
+
<h3 id="sc-animate"><code>animate</code> - simple animations</h3>
|
|
125
|
+
<p>Plays one of a set of simple animations on what is inside.</p>
|
|
126
|
+
<pre><code>[animate type="fade-in-up" duration="slow"]
|
|
127
|
+
Welcome.
|
|
128
|
+
[/animate]
|
|
129
|
+
</code></pre>
|
|
130
|
+
<table class="table table-sm">
|
|
131
|
+
<thead>
|
|
132
|
+
<tr>
|
|
133
|
+
<th>Attribute</th>
|
|
134
|
+
<th>What it does</th>
|
|
135
|
+
</tr>
|
|
136
|
+
</thead>
|
|
137
|
+
<tbody><tr>
|
|
138
|
+
<td><code>type</code></td>
|
|
139
|
+
<td>Which animation. Required: <code>fade-in</code>, <code>fade-in-up</code>, <code>fade-in-down</code>, <code>fade-in-left</code>, <code>fade-in-right</code>, <code>slide-in-up</code>, <code>slide-in-down</code>, <code>zoom-in</code>, <code>zoom-out</code>, <code>bounce</code>, <code>pulse</code>, <code>shake</code>, <code>spin</code> or <code>flip</code></td>
|
|
140
|
+
</tr>
|
|
141
|
+
<tr>
|
|
142
|
+
<td><code>duration</code></td>
|
|
143
|
+
<td><code>fast</code>, <code>normal</code> (default), <code>slow</code> or <code>slower</code></td>
|
|
144
|
+
</tr>
|
|
145
|
+
<tr>
|
|
146
|
+
<td><code>delay</code></td>
|
|
147
|
+
<td>A wait before it starts: <code>100</code>, <code>200</code>, <code>300</code>, <code>500</code> or <code>1000</code> milliseconds</td>
|
|
148
|
+
</tr>
|
|
149
|
+
<tr>
|
|
150
|
+
<td><code>repeat</code></td>
|
|
151
|
+
<td><code>once</code> (default) or <code>infinite</code></td>
|
|
152
|
+
</tr>
|
|
153
|
+
</tbody></table>
|
|
154
|
+
<h3 id="sc-scribe"><code>scribe</code> - text that types itself</h3>
|
|
155
|
+
<p>Text that types itself, like a typewriter. It can also type, pause, delete and type something else, in a loop.</p>
|
|
156
|
+
<p>The simple form types what is between the tags:</p>
|
|
157
|
+
<pre><code>[scribe speed="50"]
|
|
158
|
+
Build smoother experiences, one letter at a time.
|
|
159
|
+
[/scribe]
|
|
160
|
+
</code></pre>
|
|
161
|
+
<p>The script form plays a sequence of steps:</p>
|
|
162
|
+
<pre><code>[scribe loop="true" loop-delay="2000"]
|
|
163
|
+
[render]We build things that matter.[/render]
|
|
164
|
+
[wait]1200[/wait]
|
|
165
|
+
[redraw]We design for humans.[/redraw]
|
|
166
|
+
[/scribe]
|
|
167
|
+
</code></pre>
|
|
168
|
+
<table class="table table-sm">
|
|
169
|
+
<thead>
|
|
170
|
+
<tr>
|
|
171
|
+
<th>Attribute</th>
|
|
172
|
+
<th>What it does</th>
|
|
173
|
+
</tr>
|
|
174
|
+
</thead>
|
|
175
|
+
<tbody><tr>
|
|
176
|
+
<td><code>mode</code></td>
|
|
177
|
+
<td>What is typed at a time: <code>typewriter</code> (a letter, the default), <code>word</code> or <code>sentence</code></td>
|
|
178
|
+
</tr>
|
|
179
|
+
<tr>
|
|
180
|
+
<td><code>effect</code></td>
|
|
181
|
+
<td>How each piece arrives: <code>none</code> (default), <code>fade</code>, <code>bounce</code> or <code>glow</code></td>
|
|
182
|
+
</tr>
|
|
183
|
+
<tr>
|
|
184
|
+
<td><code>speed</code></td>
|
|
185
|
+
<td>Milliseconds per piece typed (default 50). <code>0</code> shows the text at once</td>
|
|
186
|
+
</tr>
|
|
187
|
+
<tr>
|
|
188
|
+
<td><code>delete-speed</code></td>
|
|
189
|
+
<td>Milliseconds per piece deleted (default 30)</td>
|
|
190
|
+
</tr>
|
|
191
|
+
<tr>
|
|
192
|
+
<td><code>cursor</code></td>
|
|
193
|
+
<td><code>false</code> hides the cursor</td>
|
|
194
|
+
</tr>
|
|
195
|
+
<tr>
|
|
196
|
+
<td><code>cursor-type</code></td>
|
|
197
|
+
<td><code>caret</code> (default), <code>block</code> or <code>underline</code></td>
|
|
198
|
+
</tr>
|
|
199
|
+
<tr>
|
|
200
|
+
<td><code>cursor-char</code></td>
|
|
201
|
+
<td>Your own cursor character</td>
|
|
202
|
+
</tr>
|
|
203
|
+
<tr>
|
|
204
|
+
<td><code>cursor-blink</code></td>
|
|
205
|
+
<td><code>false</code> stops the cursor blinking</td>
|
|
206
|
+
</tr>
|
|
207
|
+
<tr>
|
|
208
|
+
<td><code>loop</code></td>
|
|
209
|
+
<td><code>true</code> repeats for ever; a number repeats that many times</td>
|
|
210
|
+
</tr>
|
|
211
|
+
<tr>
|
|
212
|
+
<td><code>loop-delay</code></td>
|
|
213
|
+
<td>The wait between repeats, in milliseconds (default 1000)</td>
|
|
214
|
+
</tr>
|
|
215
|
+
<tr>
|
|
216
|
+
<td><code>pause-on-hover</code></td>
|
|
217
|
+
<td><code>true</code> pauses while the pointer is over the text</td>
|
|
218
|
+
</tr>
|
|
219
|
+
<tr>
|
|
220
|
+
<td><code>auto-start</code></td>
|
|
221
|
+
<td><code>false</code> waits for the visitor to press Play</td>
|
|
222
|
+
</tr>
|
|
223
|
+
<tr>
|
|
224
|
+
<td><code>controls</code></td>
|
|
225
|
+
<td><code>true</code> shows Play, Pause and Replay buttons</td>
|
|
226
|
+
</tr>
|
|
227
|
+
<tr>
|
|
228
|
+
<td><code>respect-motion-preference</code></td>
|
|
229
|
+
<td><code>false</code> types even for visitors who ask for reduced motion. Otherwise they see the text without typing</td>
|
|
230
|
+
</tr>
|
|
231
|
+
<tr>
|
|
232
|
+
<td><code>font</code>, <code>size</code>, <code>weight</code>, <code>colour</code>, <code>italic</code>, <code>align</code>, <code>line-height</code>, <code>spacing</code></td>
|
|
233
|
+
<td>The lettering of the typed text</td>
|
|
234
|
+
</tr>
|
|
235
|
+
</tbody></table>
|
|
236
|
+
<p>The steps of a script:</p>
|
|
237
|
+
<table class="table table-sm">
|
|
238
|
+
<thead>
|
|
239
|
+
<tr>
|
|
240
|
+
<th>Step</th>
|
|
241
|
+
<th>What it does</th>
|
|
242
|
+
</tr>
|
|
243
|
+
</thead>
|
|
244
|
+
<tbody><tr>
|
|
245
|
+
<td><code>[render]…[/render]</code></td>
|
|
246
|
+
<td>Types the text. Takes its own <code>effect</code></td>
|
|
247
|
+
</tr>
|
|
248
|
+
<tr>
|
|
249
|
+
<td><code>[wait]1200[/wait]</code></td>
|
|
250
|
+
<td>Pauses for that many milliseconds</td>
|
|
251
|
+
</tr>
|
|
252
|
+
<tr>
|
|
253
|
+
<td><code>[undo all="true" /]</code></td>
|
|
254
|
+
<td>Deletes everything typed so far. <code>[undo count="3" /]</code> deletes the last three pieces</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr>
|
|
257
|
+
<td><code>[redraw]…[/redraw]</code></td>
|
|
258
|
+
<td>Deletes everything, then types the new text</td>
|
|
259
|
+
</tr>
|
|
260
|
+
</tbody></table>
|
|
261
|
+
<p>In a script, only the steps count; words written between them are ignored. <strong>Insert > Scribe</strong> builds a script on a timeline.</p>
|
|
262
|
+
<h3 id="sc-scramble"><code>scramble</code> - text out of random characters</h3>
|
|
263
|
+
<p>Text that appears through a flurry of random characters, settling into the real words.</p>
|
|
264
|
+
<pre><code>[scramble speed="50"]Access granted[/scramble]
|
|
265
|
+
</code></pre>
|
|
266
|
+
<table class="table table-sm">
|
|
267
|
+
<thead>
|
|
268
|
+
<tr>
|
|
269
|
+
<th>Attribute</th>
|
|
270
|
+
<th>What it does</th>
|
|
271
|
+
</tr>
|
|
272
|
+
</thead>
|
|
273
|
+
<tbody><tr>
|
|
274
|
+
<td><code>speed</code></td>
|
|
275
|
+
<td>Milliseconds per character (default 50)</td>
|
|
276
|
+
</tr>
|
|
277
|
+
</tbody></table>
|
|
278
|
+
<h3 id="sc-counter"><code>counter</code> - a number that counts up</h3>
|
|
279
|
+
<p>A number that counts up (or down) to its target.</p>
|
|
280
|
+
<pre><code>[counter to="1250" suffix="+" separator="," /]
|
|
281
|
+
[counter from="0" to="99.9" decimals="1" suffix="%" duration="3000" /]
|
|
282
|
+
</code></pre>
|
|
283
|
+
<table class="table table-sm">
|
|
284
|
+
<thead>
|
|
285
|
+
<tr>
|
|
286
|
+
<th>Attribute</th>
|
|
287
|
+
<th>What it does</th>
|
|
288
|
+
</tr>
|
|
289
|
+
</thead>
|
|
290
|
+
<tbody><tr>
|
|
291
|
+
<td><code>to</code></td>
|
|
292
|
+
<td>The number to reach</td>
|
|
293
|
+
</tr>
|
|
294
|
+
<tr>
|
|
295
|
+
<td><code>from</code></td>
|
|
296
|
+
<td>The number to start from (default 0)</td>
|
|
297
|
+
</tr>
|
|
298
|
+
<tr>
|
|
299
|
+
<td><code>duration</code></td>
|
|
300
|
+
<td>How long the count takes, in milliseconds (default 2000)</td>
|
|
301
|
+
</tr>
|
|
302
|
+
<tr>
|
|
303
|
+
<td><code>prefix</code>, <code>suffix</code></td>
|
|
304
|
+
<td>Words or symbols before and after the number, such as <code>£</code> or <code>%</code></td>
|
|
305
|
+
</tr>
|
|
306
|
+
<tr>
|
|
307
|
+
<td><code>decimals</code></td>
|
|
308
|
+
<td>How many decimal places</td>
|
|
309
|
+
</tr>
|
|
310
|
+
<tr>
|
|
311
|
+
<td><code>separator</code></td>
|
|
312
|
+
<td>The thousands separator, such as <code>,</code></td>
|
|
313
|
+
</tr>
|
|
314
|
+
</tbody></table>
|
|
315
|
+
<h3 id="sc-ripple"><code>ripple</code> - a ripple on click</h3>
|
|
316
|
+
<p>A ripple spreads from wherever the visitor clicks inside it.</p>
|
|
317
|
+
<pre><code>[ripple colour="#7c6af7"]
|
|
318
|
+
[card title="Click me"]A ripple follows your click.[/card]
|
|
319
|
+
[/ripple]
|
|
320
|
+
</code></pre>
|
|
321
|
+
<table class="table table-sm">
|
|
322
|
+
<thead>
|
|
323
|
+
<tr>
|
|
324
|
+
<th>Attribute</th>
|
|
325
|
+
<th>What it does</th>
|
|
326
|
+
</tr>
|
|
327
|
+
</thead>
|
|
328
|
+
<tbody><tr>
|
|
329
|
+
<td><code>colour</code></td>
|
|
330
|
+
<td>The ripple's colour (default: a soft white)</td>
|
|
331
|
+
</tr>
|
|
332
|
+
<tr>
|
|
333
|
+
<td><code>duration</code></td>
|
|
334
|
+
<td>How long it lasts, in milliseconds (default 600)</td>
|
|
335
|
+
</tr>
|
|
336
|
+
</tbody></table>
|
|
337
|
+
<h3 id="sc-twinkle"><code>twinkle</code> - sparkles</h3>
|
|
338
|
+
<p>Sparkling particles over what is inside.</p>
|
|
339
|
+
<pre><code>[twinkle count="80" shape="star" colour="#ffffff"]
|
|
340
|
+
[card title="Winter sale" variant="dark"]
|
|
341
|
+
Everything reduced until Sunday.
|
|
342
|
+
[/card]
|
|
343
|
+
[/twinkle]
|
|
344
|
+
</code></pre>
|
|
345
|
+
<table class="table table-sm">
|
|
346
|
+
<thead>
|
|
347
|
+
<tr>
|
|
348
|
+
<th>Attribute</th>
|
|
349
|
+
<th>What it does</th>
|
|
350
|
+
</tr>
|
|
351
|
+
</thead>
|
|
352
|
+
<tbody><tr>
|
|
353
|
+
<td><code>count</code></td>
|
|
354
|
+
<td>How many particles (default 100)</td>
|
|
355
|
+
</tr>
|
|
356
|
+
<tr>
|
|
357
|
+
<td><code>shape</code></td>
|
|
358
|
+
<td><code>star</code> (default), <code>circle</code> or <code>square</code></td>
|
|
359
|
+
</tr>
|
|
360
|
+
<tr>
|
|
361
|
+
<td><code>colour</code></td>
|
|
362
|
+
<td>Their colour</td>
|
|
363
|
+
</tr>
|
|
364
|
+
<tr>
|
|
365
|
+
<td><code>min-size</code>, <code>max-size</code></td>
|
|
366
|
+
<td>Their smallest and largest size, in pixels (default 1 and 3)</td>
|
|
367
|
+
</tr>
|
|
368
|
+
</tbody></table>
|
|
369
|
+
<h3 id="sc-ambient"><code>ambient</code> - a moving background</h3>
|
|
370
|
+
<p>A slowly moving background behind what is inside.</p>
|
|
371
|
+
<pre><code>[ambient type="aurora" speed="slow"]
|
|
372
|
+
## A calm heading
|
|
373
|
+
[/ambient]
|
|
374
|
+
</code></pre>
|
|
375
|
+
<table class="table table-sm">
|
|
376
|
+
<thead>
|
|
377
|
+
<tr>
|
|
378
|
+
<th>Attribute</th>
|
|
379
|
+
<th>What it does</th>
|
|
380
|
+
</tr>
|
|
381
|
+
</thead>
|
|
382
|
+
<tbody><tr>
|
|
383
|
+
<td><code>type</code></td>
|
|
384
|
+
<td>Which background. Required: <code>float-blobs</code>, <code>float-orbs</code>, <code>float-particles</code>, <code>rotate-glow</code>, <code>rotate-dual</code>, <code>rotate-spotlight</code>, <code>wave</code>, <code>ripple</code> or <code>aurora</code></td>
|
|
385
|
+
</tr>
|
|
386
|
+
<tr>
|
|
387
|
+
<td><code>speed</code></td>
|
|
388
|
+
<td><code>slow</code>, <code>normal</code> (default) or <code>fast</code></td>
|
|
389
|
+
</tr>
|
|
390
|
+
<tr>
|
|
391
|
+
<td><code>intensity</code></td>
|
|
392
|
+
<td><code>subtle</code> (default) or <code>intense</code></td>
|
|
393
|
+
</tr>
|
|
394
|
+
</tbody></table>
|
|
395
|
+
<h3 id="sc-ticker-tape"><code>ticker-tape</code> - falling paper strips</h3>
|
|
396
|
+
<p>Coloured paper strips fall from the top, sway and fade. Self-closing, it covers the whole page; as a pair, it stays inside what it wraps.</p>
|
|
397
|
+
<pre><code>[ticker-tape palette="festive" /]
|
|
398
|
+
|
|
399
|
+
[ticker-tape palette="gold" burst="true"]
|
|
400
|
+
## We won!
|
|
401
|
+
[/ticker-tape]
|
|
402
|
+
</code></pre>
|
|
403
|
+
<table class="table table-sm">
|
|
404
|
+
<thead>
|
|
405
|
+
<tr>
|
|
406
|
+
<th>Attribute</th>
|
|
407
|
+
<th>What it does</th>
|
|
408
|
+
</tr>
|
|
409
|
+
</thead>
|
|
410
|
+
<tbody><tr>
|
|
411
|
+
<td><code>palette</code></td>
|
|
412
|
+
<td><code>theme</code> (default), <code>rainbow</code>, <code>gold</code>, <code>silver</code>, <code>festive</code>, <code>pastel</code> or <code>mono</code></td>
|
|
413
|
+
</tr>
|
|
414
|
+
<tr>
|
|
415
|
+
<td><code>density</code></td>
|
|
416
|
+
<td>How much falls (default 50)</td>
|
|
417
|
+
</tr>
|
|
418
|
+
<tr>
|
|
419
|
+
<td><code>speed</code></td>
|
|
420
|
+
<td>A multiplier: <code>2</code> is twice as fast</td>
|
|
421
|
+
</tr>
|
|
422
|
+
<tr>
|
|
423
|
+
<td><code>sway</code></td>
|
|
424
|
+
<td>How far the strips drift sideways, in pixels (default 60)</td>
|
|
425
|
+
</tr>
|
|
426
|
+
<tr>
|
|
427
|
+
<td><code>burst</code></td>
|
|
428
|
+
<td><code>true</code> throws one burst instead of falling continuously</td>
|
|
429
|
+
</tr>
|
|
430
|
+
<tr>
|
|
431
|
+
<td><code>burst-count</code></td>
|
|
432
|
+
<td>How many strips in a burst (default 150)</td>
|
|
433
|
+
</tr>
|
|
434
|
+
</tbody></table>
|
|
435
|
+
<h3 id="sc-butterflies"><code>butterflies</code> - butterflies</h3>
|
|
436
|
+
<p>Butterflies wander up the page, wings flapping. Self-closing, they cover the whole page; as a pair, they stay inside what it wraps.</p>
|
|
437
|
+
<pre><code>[butterflies palette="meadow" /]
|
|
438
|
+
</code></pre>
|
|
439
|
+
<table class="table table-sm">
|
|
440
|
+
<thead>
|
|
441
|
+
<tr>
|
|
442
|
+
<th>Attribute</th>
|
|
443
|
+
<th>What it does</th>
|
|
444
|
+
</tr>
|
|
445
|
+
</thead>
|
|
446
|
+
<tbody><tr>
|
|
447
|
+
<td><code>palette</code></td>
|
|
448
|
+
<td><code>meadow</code> (default), <code>theme</code>, <code>rainbow</code>, <code>pastel</code>, <code>festive</code>, <code>gold</code>, <code>silver</code>, <code>mono</code>, <code>sunset</code>, <code>ocean</code>, <code>forest</code>, <code>bridal</code> or <code>firefly</code></td>
|
|
449
|
+
</tr>
|
|
450
|
+
<tr>
|
|
451
|
+
<td><code>density</code></td>
|
|
452
|
+
<td>How many (default 18)</td>
|
|
453
|
+
</tr>
|
|
454
|
+
<tr>
|
|
455
|
+
<td><code>speed</code></td>
|
|
456
|
+
<td>A multiplier for how fast they fly</td>
|
|
457
|
+
</tr>
|
|
458
|
+
<tr>
|
|
459
|
+
<td><code>wander</code></td>
|
|
460
|
+
<td>How erratically they steer</td>
|
|
461
|
+
</tr>
|
|
462
|
+
<tr>
|
|
463
|
+
<td><code>rise-speed</code></td>
|
|
464
|
+
<td>How strongly they drift upward</td>
|
|
465
|
+
</tr>
|
|
466
|
+
<tr>
|
|
467
|
+
<td><code>flap-speed</code></td>
|
|
468
|
+
<td>How fast the wings beat</td>
|
|
469
|
+
</tr>
|
|
470
|
+
<tr>
|
|
471
|
+
<td><code>min-size</code>, <code>max-size</code></td>
|
|
472
|
+
<td>Smallest and largest wingspan, in pixels (default 14 and 26)</td>
|
|
473
|
+
</tr>
|
|
474
|
+
<tr>
|
|
475
|
+
<td><code>two-tone</code></td>
|
|
476
|
+
<td><code>false</code> gives single-colour wings</td>
|
|
477
|
+
</tr>
|
|
478
|
+
<tr>
|
|
479
|
+
<td><code>burst</code></td>
|
|
480
|
+
<td><code>true</code> releases one group instead of a steady flow</td>
|
|
481
|
+
</tr>
|
|
482
|
+
<tr>
|
|
483
|
+
<td><code>burst-count</code></td>
|
|
484
|
+
<td>How many in a burst (default 40)</td>
|
|
485
|
+
</tr>
|
|
486
|
+
</tbody></table>
|
|
487
|
+
<h3 id="sc-strobe"><code>strobe</code> - sweeping light beams</h3>
|
|
488
|
+
<p>Beams of light sweep across the page - a club, a concert, a searchlight. Self-closing, it covers the whole page; as a pair, it stays inside what it wraps.</p>
|
|
489
|
+
<pre><code>[strobe preset="searchlight" /]
|
|
490
|
+
[strobe preset="club" flicker="false" duration="10000" /]
|
|
491
|
+
</code></pre>
|
|
492
|
+
<table class="table table-sm">
|
|
493
|
+
<thead>
|
|
494
|
+
<tr>
|
|
495
|
+
<th>Attribute</th>
|
|
496
|
+
<th>What it does</th>
|
|
497
|
+
</tr>
|
|
498
|
+
</thead>
|
|
499
|
+
<tbody><tr>
|
|
500
|
+
<td><code>preset</code></td>
|
|
501
|
+
<td><code>club</code> (default), <code>concert</code>, <code>police</code>, <code>searchlight</code>, <code>scanner</code> or <code>mood</code>. The other attributes adjust it</td>
|
|
502
|
+
</tr>
|
|
503
|
+
<tr>
|
|
504
|
+
<td><code>motion</code></td>
|
|
505
|
+
<td><code>sweep</code> (back and forth, the default) or <code>rotate</code> (a full circle)</td>
|
|
506
|
+
</tr>
|
|
507
|
+
<tr>
|
|
508
|
+
<td><code>speed</code></td>
|
|
509
|
+
<td>A multiplier</td>
|
|
510
|
+
</tr>
|
|
511
|
+
<tr>
|
|
512
|
+
<td><code>sweep-arc</code></td>
|
|
513
|
+
<td>How wide the beams swing, in degrees (default 100)</td>
|
|
514
|
+
</tr>
|
|
515
|
+
<tr>
|
|
516
|
+
<td><code>beam-width</code></td>
|
|
517
|
+
<td>How wide each beam is, in degrees (default 16)</td>
|
|
518
|
+
</tr>
|
|
519
|
+
<tr>
|
|
520
|
+
<td><code>intensity</code></td>
|
|
521
|
+
<td>Brightness, 0 to 1 (default 0.7)</td>
|
|
522
|
+
</tr>
|
|
523
|
+
<tr>
|
|
524
|
+
<td><code>flicker</code></td>
|
|
525
|
+
<td><code>false</code> keeps the beams steady</td>
|
|
526
|
+
</tr>
|
|
527
|
+
<tr>
|
|
528
|
+
<td><code>hz</code></td>
|
|
529
|
+
<td>Flashes per second when flickering (default 10)</td>
|
|
530
|
+
</tr>
|
|
531
|
+
<tr>
|
|
532
|
+
<td><code>colours</code></td>
|
|
533
|
+
<td>Your own colours, as comma-separated hex values</td>
|
|
534
|
+
</tr>
|
|
535
|
+
<tr>
|
|
536
|
+
<td><code>duration</code></td>
|
|
537
|
+
<td>Stop after this many milliseconds. Without it, it runs until the visitor leaves</td>
|
|
538
|
+
</tr>
|
|
539
|
+
</tbody></table>
|
|
540
|
+
<p><strong>Take care with flicker.</strong> Flashing faster than about 3 times a second can trigger seizures in people with photosensitive epilepsy. On a public page, switch flicker off or set <code>hz</code> to 3 or less.</p>
|
|
541
|
+
<h3 id="sc-firework"><code>firework</code> and <code>fireworks</code> - fireworks</h3>
|
|
542
|
+
<p><code>[firework]</code> is a single firework. <code>[fireworks]</code> is a display: wrap it around several.</p>
|
|
543
|
+
<pre><code>[firework type="burst" colour="rainbow" size="lg" /]
|
|
544
|
+
|
|
545
|
+
[fireworks]
|
|
546
|
+
[firework type="burst" colour="primary" /]
|
|
547
|
+
[firework type="sparkle" colour="warning" /]
|
|
548
|
+
[firework type="trail" colour="danger" /]
|
|
549
|
+
[/fireworks]
|
|
550
|
+
</code></pre>
|
|
551
|
+
<table class="table table-sm">
|
|
552
|
+
<thead>
|
|
553
|
+
<tr>
|
|
554
|
+
<th>Attribute</th>
|
|
555
|
+
<th>What it does</th>
|
|
556
|
+
</tr>
|
|
557
|
+
</thead>
|
|
558
|
+
<tbody><tr>
|
|
559
|
+
<td><code>type</code></td>
|
|
560
|
+
<td><code>burst</code> (default), <code>sparkle</code> or <code>trail</code></td>
|
|
561
|
+
</tr>
|
|
562
|
+
<tr>
|
|
563
|
+
<td><code>colour</code></td>
|
|
564
|
+
<td><code>rainbow</code> (default), <code>primary</code>, <code>info</code>, <code>success</code>, <code>warning</code> or <code>danger</code></td>
|
|
565
|
+
</tr>
|
|
566
|
+
<tr>
|
|
567
|
+
<td><code>size</code></td>
|
|
568
|
+
<td><code>sm</code>, <code>md</code> (default) or <code>lg</code></td>
|
|
569
|
+
</tr>
|
|
570
|
+
<tr>
|
|
571
|
+
<td><code>continuous</code></td>
|
|
572
|
+
<td>Switch: keeps it going</td>
|
|
573
|
+
</tr>
|
|
574
|
+
<tr>
|
|
575
|
+
<td><code>hover</code></td>
|
|
576
|
+
<td>Switch: plays only while the pointer is over it</td>
|
|
577
|
+
</tr>
|
|
578
|
+
</tbody></table>
|
|
579
|
+
<p><code>[fireworks]</code> takes no attributes.</p>
|
|
580
|
+
<h3 id="sc-celebrate"><code>celebrate</code> - a full-page celebration</h3>
|
|
581
|
+
<p>A full-page celebration drawn over the page: falling snow, confetti, fireworks, characters walking across. The page underneath stays clickable.</p>
|
|
582
|
+
<pre><code>[celebrate theme="auto" /]
|
|
583
|
+
[celebrate theme="new-year" intensity="medium" firework="off" /]
|
|
584
|
+
[celebrate message="Best wishes for {year}!" sparkler-year="2027" /]
|
|
585
|
+
[celebrate character="snowman" size="large" /]
|
|
586
|
+
</code></pre>
|
|
587
|
+
<table class="table table-sm">
|
|
588
|
+
<thead>
|
|
589
|
+
<tr>
|
|
590
|
+
<th>Attribute</th>
|
|
591
|
+
<th>What it does</th>
|
|
592
|
+
</tr>
|
|
593
|
+
</thead>
|
|
594
|
+
<tbody><tr>
|
|
595
|
+
<td><code>theme</code></td>
|
|
596
|
+
<td>Which celebration (the names are in the next section), or <code>auto</code> to show whichever is in season today</td>
|
|
597
|
+
</tr>
|
|
598
|
+
<tr>
|
|
599
|
+
<td><code>intensity</code></td>
|
|
600
|
+
<td><code>light</code>, <code>medium</code> (default) or <code>heavy</code></td>
|
|
601
|
+
</tr>
|
|
602
|
+
<tr>
|
|
603
|
+
<td><code>falling-only</code></td>
|
|
604
|
+
<td><code>true</code> keeps only what falls (snow, confetti, leaves) and hides the decorations and greeting</td>
|
|
605
|
+
</tr>
|
|
606
|
+
<tr>
|
|
607
|
+
<td><code>message</code></td>
|
|
608
|
+
<td>Your own greeting, written in the sky by a sparkler. Up to 120 characters; <code>{year}</code> writes the year</td>
|
|
609
|
+
</tr>
|
|
610
|
+
<tr>
|
|
611
|
+
<td><code>sparkler-style</code></td>
|
|
612
|
+
<td>The lettering: <code>stroke</code> (default) or <code>cursive</code></td>
|
|
613
|
+
</tr>
|
|
614
|
+
<tr>
|
|
615
|
+
<td><code>sparkler-colour</code></td>
|
|
616
|
+
<td><code>gold</code> (default) or <code>silver</code></td>
|
|
617
|
+
</tr>
|
|
618
|
+
<tr>
|
|
619
|
+
<td><code>sparkler-greeting</code></td>
|
|
620
|
+
<td><code>best-wishes</code> writes "Best wishes for" and the year in place of the seasonal greeting</td>
|
|
621
|
+
</tr>
|
|
622
|
+
<tr>
|
|
623
|
+
<td><code>sparkler-year</code></td>
|
|
624
|
+
<td>The year to write (default: this year)</td>
|
|
625
|
+
</tr>
|
|
626
|
+
<tr>
|
|
627
|
+
<td><code>sparkler-message</code></td>
|
|
628
|
+
<td><code>off</code> hides the greeting</td>
|
|
629
|
+
</tr>
|
|
630
|
+
<tr>
|
|
631
|
+
<td><code>character</code></td>
|
|
632
|
+
<td>Shows one character where the tag is written, at any time of year, in place of the full celebration</td>
|
|
633
|
+
</tr>
|
|
634
|
+
<tr>
|
|
635
|
+
<td><code>size</code></td>
|
|
636
|
+
<td>The character's height: <code>small</code>, <code>medium</code> (default), <code>large</code>, <code>xlarge</code>, or a number of pixels</td>
|
|
637
|
+
</tr>
|
|
638
|
+
<tr>
|
|
639
|
+
<td><code>animate</code></td>
|
|
640
|
+
<td><code>false</code> shows the character standing still</td>
|
|
641
|
+
</tr>
|
|
642
|
+
<tr>
|
|
643
|
+
<td><code>facing</code></td>
|
|
644
|
+
<td><code>right</code> (default) or <code>left</code></td>
|
|
645
|
+
</tr>
|
|
646
|
+
</tbody></table>
|
|
647
|
+
<p>The characters: <code>elf</code>, <code>peeing-elf</code>, <code>thieving-elf</code>, <code>mooning-elf</code>, <code>leprechaun</code>, <code>mooning-leprechaun</code>, <code>bagpiper</code>, <code>knight</code>, <code>dragon</code>, <code>welsh-dragon</code>, <code>cupid</code>, <code>robin</code>, <code>snowman</code>.</p>
|
|
648
|
+
<p>Each celebration also has switches for its own decorations, listed in the next section: <code>firework="off"</code> on New Year, <code>bunny="off"</code> on Easter, and so on.</p>
|
|
649
|
+
<p>With <code>theme="auto"</code>, each celebration runs on its own dates:</p>
|
|
650
|
+
<table class="table table-sm">
|
|
651
|
+
<thead>
|
|
652
|
+
<tr>
|
|
653
|
+
<th>Celebration</th>
|
|
654
|
+
<th>Shown automatically</th>
|
|
655
|
+
</tr>
|
|
656
|
+
</thead>
|
|
657
|
+
<tbody><tr>
|
|
658
|
+
<td>Christmas</td>
|
|
659
|
+
<td>1 to 30 December</td>
|
|
660
|
+
</tr>
|
|
661
|
+
<tr>
|
|
662
|
+
<td>New Year</td>
|
|
663
|
+
<td>31 December to 2 January</td>
|
|
664
|
+
</tr>
|
|
665
|
+
<tr>
|
|
666
|
+
<td>Chinese New Year</td>
|
|
667
|
+
<td>Seven days from Chinese New Year's Day</td>
|
|
668
|
+
</tr>
|
|
669
|
+
<tr>
|
|
670
|
+
<td>Valentine's Day</td>
|
|
671
|
+
<td>9 to 14 February</td>
|
|
672
|
+
</tr>
|
|
673
|
+
<tr>
|
|
674
|
+
<td>St David's Day</td>
|
|
675
|
+
<td>24 February to 1 March</td>
|
|
676
|
+
</tr>
|
|
677
|
+
<tr>
|
|
678
|
+
<td>St Patrick's Day</td>
|
|
679
|
+
<td>12 to 17 March</td>
|
|
680
|
+
</tr>
|
|
681
|
+
<tr>
|
|
682
|
+
<td>Easter</td>
|
|
683
|
+
<td>The Tuesday before Easter to Easter Monday</td>
|
|
684
|
+
</tr>
|
|
685
|
+
<tr>
|
|
686
|
+
<td>St George's Day</td>
|
|
687
|
+
<td>18 to 23 April</td>
|
|
688
|
+
</tr>
|
|
689
|
+
<tr>
|
|
690
|
+
<td>Halloween</td>
|
|
691
|
+
<td>26 to 31 October</td>
|
|
692
|
+
</tr>
|
|
693
|
+
<tr>
|
|
694
|
+
<td>Guy Fawkes Night</td>
|
|
695
|
+
<td>1 to 5 November</td>
|
|
696
|
+
</tr>
|
|
697
|
+
<tr>
|
|
698
|
+
<td>St Andrew's Day</td>
|
|
699
|
+
<td>25 to 30 November</td>
|
|
700
|
+
</tr>
|
|
701
|
+
<tr>
|
|
702
|
+
<td>Summer Garden</td>
|
|
703
|
+
<td>June to August</td>
|
|
704
|
+
</tr>
|
|
705
|
+
<tr>
|
|
706
|
+
<td>Autumn</td>
|
|
707
|
+
<td>September to November</td>
|
|
708
|
+
</tr>
|
|
709
|
+
<tr>
|
|
710
|
+
<td>Winter</td>
|
|
711
|
+
<td>December to February</td>
|
|
712
|
+
</tr>
|
|
713
|
+
</tbody></table>
|
|
714
|
+
<p>A specific day wins over a season. Naming a theme shows it at any time of year.</p>
|
|
715
|
+
<h3 id="the-named-celebrations">The named celebrations</h3>
|
|
716
|
+
<p>Every celebration has a tag of its own, which is shorter to write than <code>[celebrate theme="…" /]</code> and does the same thing. All the <code>[celebrate]</code> attributes work on them.</p>
|
|
717
|
+
<pre><code>[christmas /]
|
|
718
|
+
[christmas snow-only="true" /]
|
|
719
|
+
[new-year sparkler-style="cursive" sparkler-colour="silver" /]
|
|
720
|
+
[easter intensity="light" bunny="off" /]
|
|
721
|
+
[birthday message="Happy Birthday, Sarah!" /]
|
|
722
|
+
[make-it-rain intensity="heavy" duration="8000" /]
|
|
723
|
+
</code></pre>
|
|
724
|
+
<table class="table table-sm">
|
|
725
|
+
<thead>
|
|
726
|
+
<tr>
|
|
727
|
+
<th>Tag</th>
|
|
728
|
+
<th>What it shows</th>
|
|
729
|
+
<th>Its own switches (<code>="off"</code> hides one)</th>
|
|
730
|
+
</tr>
|
|
731
|
+
</thead>
|
|
732
|
+
<tbody><tr>
|
|
733
|
+
<td><code>[christmas /]</code></td>
|
|
734
|
+
<td>Snow, trees, wreaths, snowmen, Santa's sleigh, a "Merry Christmas" sparkler</td>
|
|
735
|
+
<td><code>trees</code>, <code>wreaths</code>, <code>northstars</code>, <code>snowmen</code>, <code>sleigh</code>, <code>elf</code>, <code>train</code>, <code>firework</code>, <code>robin</code>. <code>snow-only="true"</code> leaves just the snow</td>
|
|
736
|
+
</tr>
|
|
737
|
+
<tr>
|
|
738
|
+
<td><code>[new-year /]</code></td>
|
|
739
|
+
<td>Confetti, streamers, fireworks, balloons, a midnight clock, a "Happy New Year" sparkler</td>
|
|
740
|
+
<td><code>confetti</code>, <code>streamer</code>, <code>firework</code>, <code>balloon</code>, <code>midnight-clock</code></td>
|
|
741
|
+
</tr>
|
|
742
|
+
<tr>
|
|
743
|
+
<td><code>[chinese-new-year /]</code></td>
|
|
744
|
+
<td>A dragon, red lanterns, red and gold confetti, fireworks, a greeting in Chinese</td>
|
|
745
|
+
<td><code>confetti</code>, <code>dragon</code>, <code>lantern</code>, <code>firework</code></td>
|
|
746
|
+
</tr>
|
|
747
|
+
<tr>
|
|
748
|
+
<td><code>[valentines /]</code></td>
|
|
749
|
+
<td>Hearts, rose petals, kisses, garlands, envelopes, a cupid, a neon sign</td>
|
|
750
|
+
<td><code>heart</code>, <code>rose-petal</code>, <code>sparkle</code>, <code>lips</code>, <code>heart-garland</code>, <code>butterfly</code>, <code>envelope</code>, <code>heart-moon</code>, <code>cupid</code>, <code>love-letter</code>, <code>neon-sign</code></td>
|
|
751
|
+
</tr>
|
|
752
|
+
<tr>
|
|
753
|
+
<td><code>[st-patricks /]</code></td>
|
|
754
|
+
<td>Shamrocks, gold coins, a pot of gold, a rainbow, a leprechaun</td>
|
|
755
|
+
<td><code>clover-petal</code>, <code>shamrock</code>, <code>gold-coin</code>, <code>sparkle</code>, <code>pot-of-gold</code>, <code>twinkling-star</code>, <code>leprechaun</code>, <code>rainbow</code>, <code>banshee</code>, <code>moon</code></td>
|
|
756
|
+
</tr>
|
|
757
|
+
<tr>
|
|
758
|
+
<td><code>[st-davids /]</code></td>
|
|
759
|
+
<td>Daffodils, leeks, a harp, a flag, the Welsh dragon</td>
|
|
760
|
+
<td><code>daffodil-petal</code>, <code>daffodil</code>, <code>spring-sparkle</code>, <code>leek</code>, <code>daffodil-field</code>, <code>twinkling-star</code>, <code>welsh-dragon</code>, <code>flag</code>, <code>harp</code>, <code>leek-bundle</code></td>
|
|
761
|
+
</tr>
|
|
762
|
+
<tr>
|
|
763
|
+
<td><code>[st-georges /]</code></td>
|
|
764
|
+
<td>Roses, oak leaves, a knight, a dragon, a castle</td>
|
|
765
|
+
<td><code>rose-petal</code>, <code>tudor-rose</code>, <code>oak-leaf</code>, <code>sparkle</code>, <code>english-rose</code>, <code>twinkling-star</code>, <code>knight</code>, <code>dragon</code>, <code>castle</code>, <code>shield</code>, <code>st-georges-cross</code></td>
|
|
766
|
+
</tr>
|
|
767
|
+
<tr>
|
|
768
|
+
<td><code>[st-andrews /]</code></td>
|
|
769
|
+
<td>Heather, thistles, a bagpiper, the saltire</td>
|
|
770
|
+
<td><code>heather-petal</code>, <code>heather</code>, <code>saltire-sparkle</code>, <code>thistle</code>, <code>thistle-plant</code>, <code>twinkling-star</code>, <code>bagpiper</code>, <code>saltire-flag</code>, <code>tartan-pattern</code>, <code>highland-scene</code></td>
|
|
771
|
+
</tr>
|
|
772
|
+
<tr>
|
|
773
|
+
<td><code>[easter /]</code></td>
|
|
774
|
+
<td>Blossom, flowers, butterflies, eggs and a hopping bunny</td>
|
|
775
|
+
<td><code>blossom</code>, <code>flower</code>, <code>butterfly</code>, <code>easter-egg</code>, <code>bunny</code></td>
|
|
776
|
+
</tr>
|
|
777
|
+
<tr>
|
|
778
|
+
<td><code>[summer-garden /]</code></td>
|
|
779
|
+
<td>Blossom, flowers, butterflies, bees and ladybirds</td>
|
|
780
|
+
<td><code>blossom</code>, <code>flower</code>, <code>butterfly</code>, <code>bee</code>, <code>ladybird</code></td>
|
|
781
|
+
</tr>
|
|
782
|
+
<tr>
|
|
783
|
+
<td><code>[halloween /]</code></td>
|
|
784
|
+
<td>Pumpkins, bats, ghosts, spiders, gravestones, a witch, a haunted house</td>
|
|
785
|
+
<td><code>pumpkin</code>, <code>bat</code>, <code>ghost</code>, <code>spider</code>, <code>gravestone</code>, <code>jack-o-lantern</code>, <code>scarecrow</code>, <code>twinkling-star</code>, <code>haunted-house</code>, <code>moon</code>, <code>witch</code>, <code>cauldron</code>, <code>floating-pumpkin</code>, <code>lightning</code></td>
|
|
786
|
+
</tr>
|
|
787
|
+
<tr>
|
|
788
|
+
<td><code>[guy-fawkes /]</code></td>
|
|
789
|
+
<td>Bonfires, a guy, Catherine wheels, rockets and fireworks</td>
|
|
790
|
+
<td><code>ember</code>, <code>spark</code>, <code>bonfire</code>, <code>guy-effigy</code>, <code>catherine-wheel</code>, <code>roman-candle</code>, <code>sparkler-bundle</code>, <code>firework</code>, <code>rocket</code>, <code>burst</code>, <code>moon</code>, <code>lightning</code></td>
|
|
791
|
+
</tr>
|
|
792
|
+
<tr>
|
|
793
|
+
<td><code>[autumn /]</code></td>
|
|
794
|
+
<td>Falling leaves, autumn trees, acorns and mushrooms</td>
|
|
795
|
+
<td><code>maple-leaf</code>, <code>oak-leaf</code>, <code>tree</code>, <code>acorn</code>, <code>mushroom</code></td>
|
|
796
|
+
</tr>
|
|
797
|
+
<tr>
|
|
798
|
+
<td><code>[winter /]</code></td>
|
|
799
|
+
<td>Snowflakes, frosted pines, snowdrifts, icicles and stars</td>
|
|
800
|
+
<td><code>snowflake</code>, <code>pine</code>, <code>snowdrift</code>, <code>icicle</code>, <code>star</code></td>
|
|
801
|
+
</tr>
|
|
802
|
+
<tr>
|
|
803
|
+
<td><code>[graduation /]</code></td>
|
|
804
|
+
<td>Confetti, tossed caps and diplomas</td>
|
|
805
|
+
<td><code>confetti</code>, <code>mortarboard</code>, <code>diploma</code></td>
|
|
806
|
+
</tr>
|
|
807
|
+
<tr>
|
|
808
|
+
<td><code>[birthday /]</code></td>
|
|
809
|
+
<td>Cake, balloons and confetti</td>
|
|
810
|
+
<td><code>confetti</code>, <code>balloon</code>, <code>cake</code></td>
|
|
811
|
+
</tr>
|
|
812
|
+
<tr>
|
|
813
|
+
<td><code>[anniversary /]</code></td>
|
|
814
|
+
<td>Rings, hearts and ribbon bows</td>
|
|
815
|
+
<td><code>heart</code>, <code>rings</code>, <code>ribbon</code></td>
|
|
816
|
+
</tr>
|
|
817
|
+
<tr>
|
|
818
|
+
<td><code>[greeting /]</code></td>
|
|
819
|
+
<td>Only a sparkler greeting: give it a <code>message</code></td>
|
|
820
|
+
<td></td>
|
|
821
|
+
</tr>
|
|
822
|
+
<tr>
|
|
823
|
+
<td><code>[make-it-rain /]</code></td>
|
|
824
|
+
<td>Rain, with splashes on the ground. Takes <code>duration</code> in milliseconds (default 8000; <code>0</code> keeps raining)</td>
|
|
825
|
+
<td><code>raindrop</code>, <code>splash</code></td>
|
|
826
|
+
</tr>
|
|
827
|
+
<tr>
|
|
828
|
+
<td><code>[money-rain /]</code></td>
|
|
829
|
+
<td>Falling banknotes. Takes <code>duration</code></td>
|
|
830
|
+
<td></td>
|
|
831
|
+
</tr>
|
|
832
|
+
</tbody></table>
|
|
833
|
+
<p>Good to know:</p>
|
|
834
|
+
<ul>
|
|
835
|
+
<li>A <code>message</code> can be given on Christmas, New Year, Chinese New Year, Graduation, Birthday and Anniversary, as well as on <code>[celebrate]</code> and <code>[greeting]</code>.</li>
|
|
836
|
+
<li>Christmas and St Patrick's Day have a few cheeky characters that are off unless you ask for them: <code>peeing-elf="true"</code>, <code>thieving-elf="true"</code> and <code>mooning-elf="true"</code> on Christmas, <code>mooning-leprechaun="true"</code> on St Patrick's Day.</li>
|
|
837
|
+
<li>Graduation, Birthday, Anniversary, Greeting, Make it rain and Money rain never start by themselves on a date.</li>
|
|
838
|
+
<li>To write a quotation mark or a square bracket in a hand-written <code>message</code>, use <code>&quot;</code>, <code>&#91;</code> and <code>&#93;</code>. The editor's form does this for you.</li>
|
|
839
|
+
</ul>
|
|
840
|
+
<h3 id="adding-an-effect-to-a-card-hero-banner-column-or-button">Adding an effect to a card, hero, banner, column or button</h3>
|
|
841
|
+
<p>Instead of wrapping a tag in an effect, write the effect's name on the tag as a switch. Its settings take the effect's name in front: <code>reveal-animation="zoom"</code> sets the reveal's <code>animation</code>.</p>
|
|
842
|
+
<pre><code>[card title="Why us" reveal reveal-animation="zoom" reveal-duration="600"]
|
|
843
|
+
Fast, file-based and friendly.
|
|
844
|
+
[/card]
|
|
845
|
+
|
|
846
|
+
[button href="/contact" pulse]Get in touch[/button]
|
|
847
|
+
</code></pre>
|
|
848
|
+
<table class="table table-sm">
|
|
849
|
+
<thead>
|
|
850
|
+
<tr>
|
|
851
|
+
<th>On this tag</th>
|
|
852
|
+
<th>These effects can be added</th>
|
|
853
|
+
</tr>
|
|
854
|
+
</thead>
|
|
855
|
+
<tbody><tr>
|
|
856
|
+
<td><code>[card]</code>, <code>[box]</code></td>
|
|
857
|
+
<td><code>reveal</code>, <code>breathe</code>, <code>pulse</code>, <code>shake</code>, <code>twinkle</code>, <code>ripple</code></td>
|
|
858
|
+
</tr>
|
|
859
|
+
<tr>
|
|
860
|
+
<td><code>[hero]</code></td>
|
|
861
|
+
<td><code>reveal</code>, <code>breathe</code>, <code>pulse</code>, <code>twinkle</code>, <code>ticker-tape</code>, <code>butterflies</code>, <code>strobe</code></td>
|
|
862
|
+
</tr>
|
|
863
|
+
<tr>
|
|
864
|
+
<td><code>[banner]</code></td>
|
|
865
|
+
<td><code>reveal</code>, <code>pulse</code>, <code>shake</code></td>
|
|
866
|
+
</tr>
|
|
867
|
+
<tr>
|
|
868
|
+
<td><code>[col]</code></td>
|
|
869
|
+
<td><code>reveal</code>, <code>breathe</code>, <code>ripple</code></td>
|
|
870
|
+
</tr>
|
|
871
|
+
<tr>
|
|
872
|
+
<td><code>[button]</code></td>
|
|
873
|
+
<td><code>breathe</code>, <code>pulse</code>, <code>shake</code>, <code>ripple</code></td>
|
|
874
|
+
</tr>
|
|
875
|
+
</tbody></table>
|
|
876
|
+
<p><code>[animate]</code> and <code>[ambient]</code> are always written as a pair of tags around the content.</p>
|
|
877
|
+
|
|
878
|
+
</div>
|
|
879
|
+
</div>
|
|
880
|
+
</div>
|