UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

8 lines (7 loc) 247 B
import { isClient } from "@vueuse/core"; const raf = (fn) => isClient ? window.requestAnimationFrame(fn) : setTimeout(fn, 16); const caf = (handle) => isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle); export { caf, raf };