Skip to content

image-component/vue-image-dangling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌈 vue-image-dangling

A Vue image component. Dangling interaction effect.

npm test-ci

πŸ“š Example

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

πŸŒ€ Template

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

πŸ“¦ Install

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

πŸŽ‰ Usage

// main.js
import ImageDangling from 'vue-image-dangling'
Vue.component('image-dangling', ImageDangling)

πŸ“” API

Property Description Type Required Default Version
alt The alt of the image. string βœ– - 1.0.0
blendMode Whether to enable mix-blend-mode.
When set true, the default is soft-light. More see mix-blend-mode.
boolean | string βœ– false 1.0.0
className Component extra class. string βœ– - 1.0.0
hoverScale The hover scale of the image. Require >= 1 && <=5. number βœ– 1.6 1.0.0
hoverSlope The hover slope of the image. Require >= 10 && <=90. number βœ– 60 1.0.0
radius The border radius of the component. number βœ– 8 1.0.0
shadeColor To set the mixed background color when use blendMode. string βœ– #000 1.1.0
src The src of the image. string βœ” - 1.0.0
width The width of the image. number βœ– 300 1.0.0

πŸ”¨ Development

yarn
yarn start

License

MIT