SmoothKit
v1.0.0
DocsComponents

Smooth Image Load

Eliminate layout shifts and jarring image pops. A hook that gracefully fades and sharpens images as they load.

Installation

npm install smoothkit

Usage

typescript

API Reference

PropertyTypeDefaultDescription
fadeInDurationnumber600Duration of the fade-in effect in ms.
blurbooleanfalseWhether to apply a blur effect while loading.
blurAmountnumber10Amount of blur in pixels (if blur is true).