We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 632fd54 commit 4ef74acCopy full SHA for 4ef74ac
src/loader/oval.tsx
@@ -6,6 +6,7 @@ interface OvalProps extends BaseProps {
6
strokeWidth?: string | number
7
strokeWidthSecondary?: string | number
8
secondaryColor?: string
9
+ animationDuration?: string | number
10
}
11
12
/**
@@ -53,6 +54,7 @@ export const Oval: FunctionComponent<OvalProps> = ({
53
54
visible = true,
55
strokeWidth = 2,
56
strokeWidthSecondary,
57
+ animationDuration = 1,
58
}): ReactElement => (
59
<SvgWrapper
60
style={wrapperStyle}
@@ -94,7 +96,7 @@ export const Oval: FunctionComponent<OvalProps> = ({
94
96
type="rotate"
95
97
from="0 0 0"
98
to="360 0 0"
- dur="1s"
99
+ dur={`${animationDuration}s`}
100
repeatCount="indefinite"
101
/>
102
</path>
0 commit comments