Skip to content

Commit 6120134

Browse files
authored
Merge pull request #159 from shotstack/derk/motion-descriptions
Describe text animation, tween and transition options as they render
2 parents 20e5733 + a154a60 commit 6120134

4 files changed

Lines changed: 19 additions & 14 deletions

File tree

‎schemas/richcaptionproperties.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RichCaptionAnimation:
8080
<li>`highlight` - Word changes to active color when spoken (shows all words)</li>
8181
<li>`pop` - Each word scales up when active</li>
8282
<li>`fade` - Gradual opacity transition per word</li>
83-
<li>`slide` - Words slide in from a direction</li>
83+
<li>`slide` - Words slide in, travelling in `direction`</li>
8484
<li>`bounce` - Spring animation on word appearance</li>
8585
<li>`typewriter` - Words appear one by one and stay visible</li>
8686
<li>`none` - No animation, all words visible immediately</li>
@@ -98,7 +98,7 @@ RichCaptionAnimation:
9898
default: "highlight"
9999
example: "highlight"
100100
direction:
101-
description: Direction for directional animations (slide). Only applicable when style is `slide`.
101+
description: The direction words travel when style is `slide`.
102102
type: string
103103
enum:
104104
- left

‎schemas/richtextproperties.yaml‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,14 @@ RichTextAnimation:
275275
properties:
276276
preset:
277277
description: >-
278-
The animation preset to apply. Available presets:
278+
The animation preset to apply. Every preset starts with the clip. Available presets:
279279
<ul>
280-
<li>`fadeIn` - fadeIn in animation</li>
281-
<li>`slideIn` - slide in from a direction</li>
282-
<li>`typewriter` - typewriter effect</li>
283-
<li>`ascend` - ascend from a direction</li>
284-
<li>`shift` - shift in from a direction</li>
285-
<li>`movingLetters` - letters move in from a direction</li>
280+
<li>`fadeIn` - fade in</li>
281+
<li>`slideIn` - fade in while sliding in `direction`</li>
282+
<li>`typewriter` - type the text out behind a cursor</li>
283+
<li>`ascend` - each word rises (`up`) or drops (`down`) into place</li>
284+
<li>`shift` - fade in while shifting a short distance in `direction`</li>
285+
<li>`movingLetters` - fade in, then ripple the letters along `direction` for the rest of the clip. Ignores `duration` and `style`.</li>
286286
</ul>
287287
type: string
288288
enum:
@@ -296,22 +296,25 @@ RichTextAnimation:
296296
duration:
297297
description: >-
298298
Override animation duration in seconds.
299-
Must be between 0.1 and 30 seconds.
299+
Must be between 0.1 and 30 seconds. When omitted, the text animates at about 30 characters per second,
300+
taking at least 0.3 seconds and at most 90% of the clip.
300301
type: number
301302
minimum: 0.1
302303
maximum: 30
303304
example: 2
304305
style:
305306
description: >-
306-
Animation style - animate by character or by word. Only applicable for typewriter and shift animations.
307+
Animate by character or by word. Applies to `fadeIn`, `slideIn`, `typewriter` and `shift`, where `shift`
308+
defaults to `character`. `ascend` always animates by word.
307309
type: string
308310
enum:
309311
- character
310312
- word
311313
example: "character"
312314
direction:
313315
description: >-
314-
Direction for directional animations. Required for slideIn, ascend, shift, and movingLetters presets.
316+
The direction the text travels. Defaults to `left` for `slideIn` and `shift`, and to `up` for `ascend` and
317+
`movingLetters`.
315318
<ul>
316319
<li>`ascend` - supports: up, down</li>
317320
<li>`shift` - supports: left, right, up, down</li>

‎schemas/transition.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<li>`zoom` - fast zoom in</li>
2929
</ul>
3030
The transition speed can also be controlled by appending `Fast` or `Slow`
31-
to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
31+
to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
3232
enum:
3333
- none
3434
- fade
@@ -120,7 +120,7 @@
120120
<li>`zoom` - fast zoom out</li>
121121
</ul>
122122
The transition speed can also be controlled by appending `Fast` or `Slow`
123-
to the transition, e.g. `fadeFast` or `CarouselLeftSlow`.
123+
to any transition except `zoom`, e.g. `fadeFast` or `carouselLeftSlow`.
124124
enum:
125125
- none
126126
- fade

‎schemas/tween.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
<ul>
66
<li>Opacity - animate the transparency of a clip.</li>
77
<li>Offset - animate the x and y position of a clip.</li>
8+
<li>Scale - animate the size of a clip.</li>
89
<li>Rotation - animate the rotation of a clip.</li>
910
<li>Skew - animate the horizontal and vertical shearing effect.</li>
1011
<li>Volume - animate the audio volume of a clip.</li>
12+
<li>Speed - animate the playback speed of a video clip.</li>
1113
</ul>
1214
properties:
1315
from:

0 commit comments

Comments
 (0)