Skip to content

Commit 1a542b1

Browse files
committed
fix custom animation duration
1 parent 764c512 commit 1a542b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function ReactSwimButton(props: ReactSwimButtonProps) {
1818
style,
1919
icon,
2020
loading,
21-
duration = 125,
21+
duration = 250,
2222
} = props;
2323
const waveRef = useRef(null);
2424
function animate(time: number | undefined) {
@@ -142,8 +142,8 @@ export interface ReactSwimButtonProps {
142142
*/
143143
loading?: boolean;
144144
/**
145-
* @description wave animation duration
146-
* @default 125
145+
* @description wave animation duration(ms)
146+
* @default 250
147147
*/
148148
duration?: number;
149149
}

0 commit comments

Comments
 (0)