Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views FlipBox - Views Vanilla JavaScript 3D FlipBox (VVJF)

Security covered Maintenance fixes only 104 sites

This module allows you to create interactive 3D flipbox displays for your Drupal content using pure JavaScript, integrating with the Views module to provide a new display style. It offers customization for animations, colors, and responsiveness, with accessibility features like ARIA roles and keyboard navigation.

VVJF is a Views format for Drupal site builders. It shows each result as a two-sided card that turns in 3D: the first field on the front, the other fields on the back.

It is one of the VVJ format modules and needs VVJ Core, which Composer installs with it. What sets VVJF apart from the other VVJ formats is the 3D turn: a card turns around its vertical or horizontal axis, with settings for perspective, speed and easing and a color for each face. Visitors turn a card by hover or click, or with its "Turn" button.

Start here

See it working

The live demo shows VVJF cards in a grid. For the settings that VVJ Core shares with every format, see the VVJ Core page.

Features

Choose "Views Vanilla JavaScript 3D Flipbox" as the "Format" of a view. Set "Show" to "Fields". The first field is the front of each card. All other fields are the back.

  • "Dimensions settings": "Box height (in pixels)" (default 250), "Box min width (px)" (default 300), "Grid gap (px)" (default 16) and "Perspective" (default 1000). The grid fits as many columns as the space allows. Set "Box min width (px)" or "Perspective" to 0 to turn it off.
  • "Behavior settings": "Flip trigger" ("Hover" or "Click", default "Click") and "Flip direction" ("Horizontal (Y-axis)" or "Vertical (X-axis)", default "Vertical (X-axis)").
  • "Style settings": "Front side background color" and "Back side background color" (defaults #f0fbff and #b8e7ff).
  • "Animation settings": "Flip speed (seconds)" from 0.1 to 2.0 (default 0.9) and "Animation easing" ("Ease", "Linear", "Ease In", "Ease Out", "Ease In Out").
  • "Responsive settings": "Available breakpoints for flipbox". Choose "Active on all screens" or a width from "576 px / 36 rem" to "1400 px / 87.5 rem". The flip is off up to that width, and both faces show.
  • "Turn" button: every card has one. Enter and Space flip a card. Escape turns a turned card back. Enter on a link or button inside a face does that control's own job. The back face is inert until the card turns.
  • Theme bridges: pattern-bridge-solo and pattern-bridge-apex map Pattern colors to those themes. Under any other theme the look stays black and white.
  • Tokens: use [vvjf:field] and [vvjf:field:plain] in the view header, footer or empty text.
  • Deep linking: VVJF does not offer it. Each card keeps its own state.
  • Help page: read /admin/help/vvjf after you enable the module.
  • Example view: "VVJF Example" at /vvjf-example. It installs only when Node, Text and User are enabled.

Patterns

A Pattern is a ready-made design. VVJF ships five: Hand, Board, Rail, Figures and Plans. Choose one under "Patterns" in the format settings. It sets the trigger, direction, speed, easing, colors, perspective, height, minimum width, gap and breakpoint, and turns "Enable CSS library" off. Enable the VVJ Patterns submodule of VVJ Core first.

  • Hand: cards fanned like a hand of playing cards that lift when pointed at and turn sideways with a round turn button.
  • Board: a departure board with one row per item, in split-flap letters; a row flips top to bottom to the detail. Short words read best.
  • Rail: a sideways row of tall portrait cards that snap as you scroll; the back is a quotation.
  • Figures: number tiles, the first twice the size, with the photo inside the digits and numbers that count up. The front needs a whole number and a title.
  • Plans: plan cards with the second raised; a segmented control turns every card in a wave.

Each Pattern expects fields in a set order. The list headed "To finish the Pattern" shows what is left to do. Enable the "VVJ Patterns Demo" submodule to see the Patterns on pages such as vvj/vvjf/hand, vvj/vvjf/board and vvj/vvjf/rail, vvj/vvjf/figures and vvj/vvjf/plans.

Installation: get started in 3 steps

  1. Install the module with Composer:
    composer require 'drupal/vvjf:^2.0'
  2. Enable it on the Extend page, or with Drush:
    drush en vvjf
  3. Open a view under Structure > Views. Set "Format" to "Views Vanilla JavaScript 3D Flipbox" and set "Show" to "Fields". Then open the format settings and set "Flip trigger".

Requirements

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

No other contributed module is needed. Sites on Drupal 10 or on PHP 8.1 or 8.2 stay on VVJ 1.x. To upgrade from 1.x, update every installed VVJ module to 2.x together. Mixing 1.x and 2.x is not supported.

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 FlipBox - Views Vanilla JavaScript 3D FlipBox (VVJF)

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
15
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.3 Stable 10–11 Aug 21, 2024
1.0.2 Stable 10–11 Aug 21, 2024
1.0.1 Stable 10–11 Aug 18, 2024
1.0.0 Stable 10–11 Aug 17, 2024
1.0.x-dev Dev 10–11 Aug 11, 2024