vue-progressive-blur
v1.0.2
Published
A Vue component that progressively blurs an image in a manner like Apple.
Downloads
9
Readme
Vue Progressive Blur
This is a Vue implementation of Framer's Progressive Blur component.
Installation
npm i vue-progressive-blur
Usage
The parent of the component must be a relative positioned element. You can edit the blur and border-radius of the component by passing the props blur
and border-radius
respectively.
<template>
<div style="position: relative;">
<img src="..." />
<ProgressiveBlur
blur="32"
border-radius="24"
/>
</div>
</template>
Todo
- [ ] Add direction prop (current only blurs from bottom to top)
- [ ] Allow passing the prop values with 'px' suffix
License
MIT