Views Reveal - Views Vanilla JavaScript Reveal (VVJR)
Security covered Maintenance fixes only 85 sitesThis module enhances Drupal Views by adding an interactive "reveal" display style. It allows you to present content in engaging reveal boxes with customizable animations, effects, and responsive design. The module uses pure JavaScript and offers accessibility features for keyboard and screen reader users.
VVJR adds a reveal format to Drupal Views. It is for site builders who want a view's results shown as a grid of two-faced cards, without custom code.
Each result row becomes one card. The first field of the row is the front of the card, and every other field is the back. The back appears on hover or on click, and below a screen width you choose the cards stack. What sets VVJR apart from the other VVJ formats is how the back appears: a fade, a zoom or a slide in from any side, not a 3D turn, with a real toggle button on each card and Escape to return to the front. It requires VVJ Core, which holds the settings shared by all VVJ formats.
Start here
Features
VVJR has no settings page of its own. Open a view under Structure > Views, set "Format" to "Views Vanilla JavaScript Reveal", then open "Settings". The format uses the "Fields" row plugin.
- "Responsive settings": "Available breakpoints for reveal" is "Active on all screens" (the default) or one of 576, 768, 992, 1200 and 1400 px. Below the chosen width the cards stack.
- "Dimensions": "Box min width (px)" (default 300) lets the grid fit as many columns as the space allows. "Box height (in pixels)" (default 250) is turned off with 0. "Grid gap (px)" defaults to 16.
- "Reveal settings": "Reveal Style" is Fade (default), Zoom, or Slide from Top, Right, Bottom or Left. "Reveal method" is Hover or Click, with Click as the default. "Reveal speed (seconds)" runs from 0.1 to 2, default 0.9. "Animation easing" is Linear, Ease (default), Ease-in, Ease-out or Ease-in-out.
- "Color settings": "Displayed side background color" (default #f0fbff) and "Revealed side background color" (default #b8e7ff).
- Keyboard: Enter or Space on a card reveals its back, and Escape shows the front again. The hidden face is skipped by the Tab key.
- Reduced motion: visitors who ask their device for reduced motion see no animation.
- No deep linking: VVJR 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
[vvjr:field]or[vvjr:field:plain]. - Theme bridges: two stylesheets map Pattern colors to the APEX and Solo themes.
- Help page: read
/admin/help/vvjrafter you enable the module. - Example view: an optional view named "VVJR Example" is available at
/vvjr-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. VVJR ships five. Their toggle button reads "Show details" and "Show front".
- Lens: dark. Portrait cards; the back face opens as a circle from where the pointer entered, with a round + button.
- Blinds: dark. Wide photo cards; the facts panel closes over the photo in eight blinds, opened by a pill button.
- Index: light. A numbered full-width list; each row wipes open into an accent panel, with "Open all" and "Close all" and a live count.
- Cover: light. A bento of photo cards, the first one large; a paper cover drops over the photo from a folded corner.
- Nocturne: dark. A dark band of tall cards; details sweep in on a band of light, chosen with a Photo and Details control.
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
- Install the module with Composer. This also installs VVJ Core:
composer require 'drupal/vvjr:^2.0' - Enable it on the Extend page, or with Drush:
drush en vvjr - Open a view under Structure > Views, set "Format" to "Views Vanilla JavaScript Reveal", and open "Settings" to choose the reveal method and card size.
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.
Ask your assistant about Views Reveal - Views Vanilla JavaScript Reveal (VVJR)
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.