Skip to content

Commit 88fa448

Browse files
committed
Fix usage of the package server-side
1 parent cf487e8 commit 88fa448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/js-toolkit/utils/css/animate.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { domScheduler as scheduler } from '../scheduler.js';
77

88
let id = 0;
99
const running = new WeakMap();
10-
const raf = useRaf();
1110
const noop = () => {};
1211
const PROGRESS_PRECISION = 0.0001;
1312

@@ -178,6 +177,8 @@ function render(element, from, to, progress) {
178177
* @returns {Animate}
179178
*/
180179
export function animate(element, keyframes, options = {}) {
180+
const raf = useRaf();
181+
181182
let progressValue = 0;
182183
let easedProgress = 0;
183184

0 commit comments

Comments
 (0)