Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/usehooks-ts.ts>useImageOnLoad

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function useImageOnLoad
Deprecated
Deprecated

This hook is deprecated and will be removed in a future release.

import { useImageOnLoad } from "https://deno.land/x/netzo@0.4.72/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.

Returns

ImageOnLoadType

An object containing a function to handle image load events and related CSS styles.