
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
nuxt-parallax
Advanced tools
A nuxt module that installs the directive "v-parallax" for a quick and easy parallax effect.
nuxt-parallax
dependency to your project# Using pnpm
pnpm add -D nuxt-parallax
# Using yarn
yarn add --dev nuxt-parallax
# Using npm
npm install --save-dev nuxt-parallax
nuxt-parallax
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'nuxt-parallax'
]
})
That's it! You can now use Nuxt Parallax in your Nuxt app ✨
Please note: If you encounter an issue where elements with the parallax effect overlap other elements, you can fix this by applying position: relative
to the overlapped elements. This adjusts the stacking context and prevents the parallax elements from overlaying other elements, that are rendered later in the markdown. Some elements have position: static
applied to them by default, which won't work.
Add the directive to any element like this: <div v-parallax="{ speed: 0.5 }">Hello World!</div>
Pass in the options as an object.
Currently, the vertical speed is the only option. More may be added in the future.
Those are all of the available options, with their default values:
{
speed: 1
}
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
FAQs
A nuxt module for an easy parallax Vue directive.
The npm package nuxt-parallax receives a total of 20 weekly downloads. As such, nuxt-parallax popularity was classified as not popular.
We found that nuxt-parallax 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.