@@ -251,38 +261,39 @@ The `Lottie` component can also be used with the `LottieForeground` component to
import MyLottie from './lottie/my-lottie.zip?url';
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
```
+
### Using with ArchieML
+
With the graphics kit, you'll likely get your text and prop values from an ArchieML doc...
```yaml
@@ -315,8 +326,8 @@ With the graphics kit, you'll likely get your text and prop values from an Archi
{}
# Foreground 2: Text only
- startFrame: 50
- endFrame: 100
+ startFrame: 50
+ endFrame: 100
# Set foreground type
type: text
@@ -339,7 +350,7 @@ With the graphics kit, you'll likely get your text and prop values from an Archi
} from '@reuters-graphics/graphics-components';
import { assets } from '$app/paths';
- // Make an object of components to use as foregrounds
+ // Make an object of components to use as foregrounds
const Components = $state({
Headline,
});
@@ -348,7 +359,7 @@ With the graphics kit, you'll likely get your text and prop values from an Archi
{#each content.blocks as block}
{#if block.type == 'lottie'}
-
+
{#each block.foregrounds as foreground}
{#if foreground.type == 'text'}