Skip to content

Commit 4ef74ac

Browse files
authored
[feat] Add animation duration to oval (#177)
1 parent 632fd54 commit 4ef74ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/loader/oval.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ interface OvalProps extends BaseProps {
66
strokeWidth?: string | number
77
strokeWidthSecondary?: string | number
88
secondaryColor?: string
9+
animationDuration?: string | number
910
}
1011

1112
/**
@@ -53,6 +54,7 @@ export const Oval: FunctionComponent<OvalProps> = ({
5354
visible = true,
5455
strokeWidth = 2,
5556
strokeWidthSecondary,
57+
animationDuration = 1,
5658
}): ReactElement => (
5759
<SvgWrapper
5860
style={wrapperStyle}
@@ -94,7 +96,7 @@ export const Oval: FunctionComponent<OvalProps> = ({
9496
type="rotate"
9597
from="0 0 0"
9698
to="360 0 0"
97-
dur="1s"
99+
dur={`${animationDuration}s`}
98100
repeatCount="indefinite"
99101
/>
100102
</path>

0 commit comments

Comments
 (0)