liquid-image
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha.7 • Public • Published

Liquid Image Demo

💧 Liquid Image

A React component for creating liquid metal effects on images.

Just for fun, complete ripoff of: liquid.paper.design

Installation

npm install liquid-image

Usage

import { LiquidImage } from 'liquid-image'

<LiquidImage src="/liquid-image.png" invert showControls />

Props

Prop Type Default Description Range
src string - The URL of the image to display -
invert boolean false Invert the liquid image -
className string - The className of the container -
width number - The width of the image, overrides img width if provided -
height number - The height of the image, overrides img height if provided -
background string 'transparent' The background color of the image -
refraction number 0.015 Refraction amount [0, 0.06]
edge number 0.4 Edge thickness [0, 1]
patternBlur number 0.005 Pattern blur amount [0, 0.05]
liquid number 0.07 Liquid distortion amount [0, 1]
speed number 0.3 Animation speed [0, 1]
patternScale number 2 Pattern scale [1, 10]
showControls boolean false Display the controls panel -

Readme

Keywords

none

Package Sidebar

Install

npm i liquid-image

Weekly Downloads

4

Version

0.1.0-alpha.7

License

none

Unpacked Size

129 kB

Total Files

15

Last publish

Collaborators

  • zrfpr