
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
vue-vanta-revamp
Advanced tools
> Add animated vanta.js backgrounds to vue and nuxt projects in a few lines of code.
vue-vanta-revamp is a revamped version of the original vue-vanta package, offering a seamless way to integrate animated Vanta.js backgrounds into your Vue and Nuxt projects. With Vue-vanta-revamp, you can enhance your applications with stunning visual effects in just a few lines of code.
Methods | Description | type | params |
---|---|---|---|
setupVanta(effect, options) | sets up vanta if destroyed | Function | String,Object |
destroyVanta() | destroy vanta instance | Function | N/A |
changeOptions(newOptions) | change effect options | Function | Object |
changeEffect(newEffect, newOptions) | change vanta effect/options | Function | String,Object |
resizeEffect() | not sure how this works yet, but its here. | Function | none |
npm i vue-vanta-revamp
/components/Background.vue
<template>
<div>
<v-vanta></v-vanta>
</div>
</template>
<script>
import VVanta from 'vue-vanta-revamp';
export default {
components: { VVanta }
}
</script>
<style>
#vanta-bg {
z-index: -1000;
position: absolute;
left: 0;
top: 0;
height: 100vh;
width: 100vw;
}
</style>
/pages/index.vue
<template>
<div>
<Background></Background>
<div>
<h1>skewll.com</h1>
</div>
</div>
</template>
<script>
export default {}
</script>
/components/Background.vue
<template>
<div>
<v-vanta ref="vantaInstance" vantaId="vanta-bg" :effect=effect :options=options>
<slot/>
</v-vanta>
</div>
</template>
<script>
import VVanta from 'vue-vanta-revamp';
export default {
components: { VVanta },
data() {
return {
effect: 'waves',
options: {
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x0,
shininess: 85.00,
waveHeight: 6.00,
waveSpeed: 1,
zoom: .75,
}
}
},
methods: {
setupVanta(effect = this.effect, options = this.options) {
this.$refs.vantaInstance.setupVanta(effect, options);
},
destroyVanta() {
this.$refs.vantaInstance.destroyVanta();
},
changeOptions(newOptions) {
this.$refs.vantaInstance.changeOptions(newOptions);
},
changeEffect(newEffect, newOptions) {
this.$refs.vantaInstance.changeEffect(newEffect,newOptions);
},
resizeEffect() {
this.$refs.vantaInstance.resizeEffect();
}
}
}
</script>
<style>
#vanta-bg {
z-index: -1000;
position: absolute;
left: 0;
top: 0;
height: 100vh;
width: 100vw;
}
</style>
/pages/index.vue
<template>
<div>
<Background> You can now pass content through to a slot </Background>
<div>
<h1>skewll.com</h1>
</div>
</div>
</template>
<script>
export default {}
</script>
<style>
</style>
The following parameters can be passed into the component:
Property | Description | Type | Default |
---|---|---|---|
vantaId | #id of your vanta element | String | vanta-bg |
effect | See all effects at vantajs.com | String | waves |
options | Each effect has its own specific parameters. Check them out at vantajs.com | Object |
The component provides the following methods:
${effect}-vanta
.0.1.2 - 2024-03-10
FAQs
> Add animated vanta.js backgrounds to vue and nuxt projects in a few lines of code.
The npm package vue-vanta-revamp receives a total of 7 weekly downloads. As such, vue-vanta-revamp popularity was classified as not popular.
We found that vue-vanta-revamp 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.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.