Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Parallax - Views Vanilla JavaScript Parallax (VVJP)

Security covered Maintenance fixes only 97 sites

This module adds a parallax display style to Drupal Views, allowing you to create visually engaging parallax effects for your content. It uses pure JavaScript, is responsive, and offers various customization options for height, width, overlays, and animations.

VVJP adds a parallax format to Drupal Views. It is for site builders who want a view's results shown as full-width scrolling sections with a moving background photo, without custom code.

Each result row becomes one section. The first field of the row is the background photo, and the remaining fields sit on top as the content. What sets VVJP apart from the other VVJ formats is that scroll position drives it, not clicks or time: the photo moves at its own speed as the visitor scrolls. Below a screen width you choose, the sections collapse to cards. It requires VVJ Core, which holds the settings shared by all VVJ formats.

Start here

Features

VVJP has no settings page of its own. Open a view under Structure > Views, set "Format" to "Views Vanilla JavaScript Parallax", then open "Settings". The format uses the "Fields" row plugin. The first field must be an image with the formatter "URL to image". If it is not, the form shows an error and a red setup note.

  • "Responsive settings": "Available breakpoints for parallax" is "Active on all screens" (the default) or one of 576, 768, 992, 1200 and 1400 px. Below the chosen width the sections collapse to cards.
  • "Dimensions": "Section height" is a "Height value" (default 75) plus a "Height Unit" of vw, vh, px, %, em or rem (default vh). "Max width (px)" set to 0 keeps the section at 100% width.
  • "Parallax settings": "Parallax speed" from 0.1 to 2, default 0.3.
  • "Background settings": "Background position" has 18 options, default "Center". "Background animation speed" runs from 0.1 to 2, default 0.5. "Background animation easing" is Ease (default), Ease-In, Ease-Out, Ease-In-Out or Linear.
  • "Scroll effects": "Scroll effect" has 11 choices, from "None" to "Combined Effects". The default is "Fade In". Others include "Scale Up", "Rotate", "3D transformations", "Shadow Effects" and "Glow Effects".
  • "Overlay settings": "Overlay color" (default #ffffff), "Overlay opacity" from 0 to 1 (default 0.7), "Apply overlay background under content only" and "Disable overlay color".
  • Reduced motion: visitors who ask their device for reduced motion do not get the scroll-tied movement.
  • No deep linking: VVJP does not offer deep linking.
  • Shared sections: "Advanced options" with "Enable CSS library", "Token documentation" and "Patterns" come from VVJ Core.
  • Tokens: in the view header, footer or empty text, use [vvjp:field] or [vvjp:field:plain].
  • Theme bridges: two stylesheets map Pattern colors to the APEX and Solo themes.
  • Help page: read /admin/help/vvjp after you enable the module.
  • Example view: an optional view named "VVJP Example" is available at /vvjp-example. It needs the Article content type.

Patterns

A Pattern is a ready-made design. Enable the VVJ Patterns submodule from VVJ Core, then choose a Pattern in the "Patterns" section. VVJP ships five:

  • Horizon: dark. Full-height chapters (100vh); the photo rises in behind a slanted line and a huge title sits bottom left.
  • Skyline: dark, 85vh. Split rows with a dark card and an outlined number on the left, and the photo settling on the right.
  • Showroom: dark, 90vh. A black stage where a spotlight opens on the photo as it scrolls in, with centered thin words.
  • Shoreline: light, 80vh. Photos pull into focus, and a frosted card alternates left and right.
  • Field book: light, 82vh. Framed plates that open to full bleed, with a paper caption and a plate number.

After you pick a Pattern, the list headed "To finish the Pattern" shows what is left to set. With vvj_patterns_demo enabled, example content and demo views are added.

Installation: get started in 3 steps

  1. Install the module with Composer. This also installs VVJ Core:
    composer require 'drupal/vvjp:^2.0'
  2. Enable it on the Extend page, or with Drush:
    drush en vvjp
  3. Open a view under Structure > Views, set "Format" to "Views Vanilla JavaScript Parallax", make the first field an image with the formatter "URL to image", and open "Settings" to set the speed and height.

To upgrade from VVJ 1.x, upgrade every installed VVJ module to 2.x together. Mixing 1.x and 2.x is not supported. The steps are on the VVJ Core page.

Requirements

  • Drupal ^11.3 || ^12
  • PHP 8.3 or later
  • VVJ Core
  • Views and Filter (both in Drupal core)

Sites on Drupal 10 or on Drupal 11.0 to 11.2, or on PHP 8.1 or 8.2, stay on VVJ 1.x.

Support and maintenance

Questions, ideas, and bug reports are welcome. Please use this project’s issue queue so discussions and solutions remain available to the Drupal community.

Maintainers monitor issues, but response times depend on availability.

Developed and maintained by Alaa Haddad of Flash Web Center, LLC.

AI disclosure: AI tools assisted with drafting and reviewing this project description. The maintainer verified the final content against the project source.

Drupal 11 · not 10 PHP 8.3

Ask your assistant about Views Parallax - Views Vanilla JavaScript Parallax (VVJP)

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • VVJ Core
  • filter Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
17
Tracked since
Aug 2024
Latest release
1 day ago
Releases (12 mo)
5 ▲ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.5 Stable 10–11 Aug 26, 2024
1.0.4 Stable 10–11 Aug 25, 2024
1.0.3 Stable 10–11 Aug 21, 2024
1.0.2 Stable 10–11 Aug 18, 2024
1.0.1 Stable 10–11 Aug 17, 2024
1.0.x-dev Dev 10–11 Aug 9, 2024
1.0.0 Stable 10–11 Aug 9, 2024