1.0.1 • Published 3 years ago

react-image-dangling v1.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

🌈 react-image-dangling

A React image component. Dangling interaction effect.

npm dumi npm.io npm.io codecov npm.io npm.io

📚 Example

Online: https://image-component.github.io/react-image-dangling/

🌀 Template

https://github.com/one-template/react-component-template

📦 Install

npm i react-image-dangling
# or
yarn add react-image-dangling

🎉 Usage

import ImageDangling from 'react-image-dangling';
import 'react-image-dangling/assets/index.css';

const src =
  'https://github.com/image-component/gallery/blob/main/girl/1.jpg?raw=true';

export default () => (
  <>
    <ImageDangling src={src} />
  </>
);

📔 API

PropertyDescriptionTypeRequiredDefaultVersion
altThe alt of the image.string-1.0.0
blendModeWhether to enable mix-blend-mode. When set true, the default is soft-light. More see mix-blend-mode.boolean | stringfalse1.0.0
classNameComponent extra class.string-1.0.0
hoverScaleThe hover scale of the image. Require >= 1 && <=5.number1.61.0.0
hoverSlopeThe hover slope of the image. Require >= 10 && <=90.number601.0.0
shadeColorTo set the mixed background color when use blendMode.string#0001.0.0
radiusThe border radius of the component.number81.0.0
srcThe src of the image.string-1.0.0
styleComponent extra style.CSSProperties-1.0.0
widthThe width of the image.number3001.0.0

🔨 Development

yarn
yarn start

License

MIT