Skip to content

Commit b6dcb6d

Browse files
committed
experimental: Allow styling staggering and text animations
1 parent f6d859c commit b6dcb6d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/sdk-components-animation/src/animate-text.ws.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { TextAnimationIcon } from "@webstudio-is/icons/svg";
22
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
33
import { animation } from "./shared/meta";
44
import { props } from "./__generated__/animate-text.props";
5+
import { div } from "@webstudio-is/sdk/normalize.css";
56

67
export const meta: WsComponentMeta = {
78
category: "animations",
@@ -18,6 +19,9 @@ export const meta: WsComponentMeta = {
1819
text: false,
1920
},
2021
],
22+
presetStyle: {
23+
div,
24+
},
2125
};
2226

2327
export const propsMeta: WsComponentPropsMeta = {

packages/sdk-components-animation/src/stagger-animation.ws.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { StaggerAnimationIcon } from "@webstudio-is/icons/svg";
22
import type { WsComponentMeta, WsComponentPropsMeta } from "@webstudio-is/sdk";
33
import { animation } from "./shared/meta";
44
import { props } from "./__generated__/stagger-animation.props";
5+
import { div } from "@webstudio-is/sdk/normalize.css";
56

67
export const meta: WsComponentMeta = {
78
category: "animations",
@@ -18,6 +19,9 @@ export const meta: WsComponentMeta = {
1819
text: false,
1920
},
2021
],
22+
presetStyle: {
23+
div,
24+
},
2125
};
2226

2327
export const propsMeta: WsComponentPropsMeta = {

0 commit comments

Comments
 (0)