### TTML2 Common Caption Style Examples Source: https://www.w3.org/TR/ttml2/index Provides examples of common caption styling techniques used in TTML2, such as pop-on, roll-up, and paint-on captions. ```APIDOC Common Caption Style Examples: Pop-On Caption Example: Demonstrates the pop-on caption style. Roll-Up Caption Example: Illustrates the roll-up caption style. Paint-On Caption Example: Shows the paint-on caption style. ``` -------------------------------- ### TTML2 tts:textShadow Example Source: https://www.w3.org/TR/ttml2/index An example demonstrating the use of the tts:textShadow attribute to apply a lime-colored shadow with specific offsets and blur to a span of text. ```XML I serve it with greens in those shadowy scenes,
And I use it for striking a light:
``` -------------------------------- ### TTML2 Region Style Animation Example Source: https://www.w3.org/TR/ttml2/index Illustrates the basic structure for using the 'set' element to animate region styling, although the example is incomplete. ```XML ... ``` -------------------------------- ### TTML2 Media Timing Example 2 Source: https://www.w3.org/TR/ttml2/index A second TTML2 fragment illustrating media timing. This example shows how the computed document times are shifted to align with media times, resulting in different absolute begin and end times for the content. ```xml ...

First paragraph

Second paragraph

``` -------------------------------- ### TTML2 Opacity Example Source: https://www.w3.org/TR/ttml2/index An example demonstrating the usage of the tts:opacity style attribute in TTML2 to control the transparency of text spans. ```html

And then there were none.

``` -------------------------------- ### Pop-On Caption Example in TTML Source: https://www.w3.org/TR/ttml2/index Demonstrates the implementation of Pop-On captions using TTML. This example showcases how to define regions, time content, and style captions for a pop-on effect, where captions appear simultaneously and remain on screen for their duration. ```xml

Lorem ipsum dolor sit

Amet consectetur adipiscing elit

Sed do eiusmod tempor incididunt labore

et dolore magna aliqua

Ut enim ad minim veniam quis, nostrud

``` -------------------------------- ### TTML2 Media Timing Example 1 Source: https://www.w3.org/TR/ttml2/index An example TTML2 fragment demonstrating media timing where the document times are directly mapped to media times. The 'ttp:timeBase="media"' attribute is used. ```xml ...

First paragraph

Second paragraph

``` -------------------------------- ### TTML2 Text Decoration Example Source: https://www.w3.org/TR/ttml2/index An example fragment demonstrating the usage of the tts:textDecoration attribute within TTML2 to apply different text decorations (underline, noUnderline, lineThrough) to various spans of text. ```XML