Socket
Socket
Sign inDemoInstall

vue-blur-loader

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-blur-loader

A Vue.js component to load images with a blur animation like the site Medium


Version published
Maintainers
1
Install size
4.33 kB
Created

Readme

Source

Vue-blur-loader

A Vue.js component to load images with a blur animation like the site Medium

Installation

npm install vue-blur-loader --save

#or

yarn add vue-blur-loader

Usage

import BlurLoader from 'vue-blur-loader'

export default {
  ...,
  components: { BlurLoader }
}
<BlurLoader src='myImagePath.jpg' smallSrc='mySmallImagePath.jpg' />

src and smallSrc can either be an url or a local path or even require with your module bundler

<BlurLoader :src='require("myImagePath.jpg")' :smallSrc='require("mySmallImagePath.jpg")' />

You can also provide an element which will be showing before the small image load if the internet connexion is really slow (like a loader gif)

<BlurLoader src='myImagePath.jpg' smallSrc='mySmallImagePath.jpg'>
  <img src='myLoader.gif'>
</BlurLoader>

Keywords

FAQs

Last updated on 23 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc