Skip to content

Commit

Permalink
chore: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wellyshen committed Jun 4, 2020
1 parent afdbeb0 commit 3b1aa21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ const App: FC = () => {

const { ref, animation } = useWebAnimations<HTMLDivElement>({
// ref,
pausedAtStart: true,
keyframes: { transform: ["rotate(0deg)", "rotate(360deg)"] },
timing: { duration: 3000, fill: "forwards" },
timing: { duration: 5000, fill: "forwards" },
onFinish: (arg1, arg2) => {
console.log("LOG ===> onFinish: ", arg1, arg2);
},
Expand Down

0 comments on commit 3b1aa21

Please sign in to comment.