
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
vue-lazy-picture
Advanced tools
Responsive lazy loading vue component with meduim-style blur effect
Responsive Vue component for Medium-style lazy loading pictures.
Uses intersection-observer
and stackblur-canvas
internally.
https://codesandbox.io/s/4jp678mw09
Warning!
You need to install intersection-observer polyfill
separately to support IE and mobile browsers.
Creates sandwich of images in container:
<div class="lazy-picture">
<img> // placeholder
<canvas> // blurred placeholder
<img> // full-size image
</div>
Install by npm:
npm i vue-lazy-picture
Then in your vue app:
// App.vue
<template>
<div id="app">
<lazy-picture
:src="image.src"
:placeholder="image.ph"
lazy
/>
</div>
</template>
<script>
import LazyPicture from 'vue-lazy-picture';
export default {
name: "app",
components: {
LazyPicture
},
data() {
return {
image: {
ph: "./images/New_york_times_square-terabass_480@0x.jpg",
src: "./images/New_york_times_square-terabass_480@1x.jpg",
},
};
</script>
containerBgColor: {
type: String,
default: "rgb(222, 222, 222)"
},
maxWidth: {
type: String,
default: "100%"
},
containerClass: {
type: String,
default: "lazy-picture"
},
title: {
type: String,
default: "Image"
},
placeholder: {
type: String,
required: true
},
src: {
type: String,
required: true
},
lazy: {
type: Boolean,
default: false
},
blurRadius: {
type: Number,
default: 5
},
transitionDuration: {
type: Number,
default: 500
},
easing: {
type: String,
default: "ease"
},
threshold: {
type: Number,
default: 0.5
}
FAQs
Responsive lazy loading vue component with meduim-style blur effect
The npm package vue-lazy-picture receives a total of 2 weekly downloads. As such, vue-lazy-picture popularity was classified as not popular.
We found that vue-lazy-picture demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.