Skip to content

Commit f4d5669

Browse files
committed
Set both as default fill
1 parent 46e8ae7 commit f4d5669

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

src/hooks/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const createAnimation = (
4545
options: AnimationOptions | undefined
4646
): Animation => {
4747
const modifiedOptions: AnimationOptions = {
48-
fill: "forwards",
48+
fill: "both",
4949
...options,
5050
};
5151
try {

stories/hooks/useAnimation.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ const Bar = ({
292292
},
293293
target,
294294
],
295-
{ duration: 150, easing: "ease-out", delay: i * 100, fill: "both" }
295+
{ duration: 150, easing: "ease-out", delay: i * 100 }
296296
);
297297

298298
useEffect(() => {

stories/hooks/useAnimationFunction.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export const Canvas: StoryObj = {
6969
easing: "ease-in-out",
7070
duration: 1000,
7171
iterations: Infinity,
72-
fill: "both",
7372
}
7473
);
7574

stories/hooks/useAnimations.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const WavedRect = ({ i }: { i: number }) => {
99
easing: "ease-in-out",
1010
iterations: Infinity,
1111
direction: "alternate",
12-
fill: "both",
1312
delay: i * 98,
1413
};
1514
const animate = useAnimations({

0 commit comments

Comments
 (0)