Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@lucien144/vue3-parallaxy
Advanced tools
Readme
💥 Lightweight yet powerful parallax component for Vue3 with breakpoints option and animation callback. Nuxt3 ready.
npm i @lucien144/vue3-parallaxy
# yarn add @lucien144/vue3-parallaxy
<template>
<Parallaxy :speed="20" :animation="(delta: number) => `transform: translate3d(0, ${delta}px, 0);`">
<img src="https://picsum.photos/400">
</Parallaxy>
</template>
<script setup lang="ts">
import Parallaxy from '@lucien144/vue3-parallaxy';
</script>
Props | Type | Default / Options | Description |
---|---|---|---|
axis | string | y / y, x | Axis of the movement. |
speed | number | 50 | Speed of the movement. Higher number -> faster. Negative values changes the direction. |
direction | string | normal / normal, opposite | Direction of the movement. normal -> up on y axis etc. |
breakpoints | object | undefined / {[breakpoint: number]: {ParallaxyOptions}} | You can specify all props for different breakpoints. If window width >= breakpoint then the settings is applied, zero breakpoint is the default settings. See the Example 5. |
animation | Function | (delta: string) => ... | Custom CSS style animation where delta is the position offset of the element relative to the bottom of the viewport. |
(delta: string) => transform: translate3d(0, ${delta.value}px, 0); | For the y axis. | ||
(delta: string) => transform: translate3d(${delta.value}px, 0, 0); | For the x axis. | ||
disabled | boolean | false | Enable / disable the parallax effect. |
debug | boolean | false | Show the debug panel. |
transform: translate3d(0, 0, 0)
to turn on the GPU acceleration.overflow: hidden
as much as you can.FAQs
Lightweight yet powerful parallax component for Vue3.
The npm package @lucien144/vue3-parallaxy receives a total of 246 weekly downloads. As such, @lucien144/vue3-parallaxy popularity was classified as not popular.
We found that @lucien144/vue3-parallaxy demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.