Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.
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.5.108/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.