Deprecated
This hook is deprecated and will be removed in a future release.
import { useImageOnLoad } from "https://deno.land/x/netzo@0.5.63/deps/usehooks-ts.ts";
Custom hook for handling image loading events and providing related CSS styles.
Examples
const { handleImageOnLoad, css } = useImageOnLoad();
// Use handleImageOnLoad as the onLoad handler for the full-size image.
// Apply the CSS styles from the css
object to control visibility and transitions.
const { handleImageOnLoad, css } = useImageOnLoad();
// Use handleImageOnLoad as the onLoad handler for the full-size image.
// Apply the CSS styles from the css
object to control visibility and transitions.