Drupal is a registered trademark of Dries Buytaert

vvjf

79 sites Security covered
View on drupal.org

The Vanilla Views suite F.L.A.S.H.C.R.P.T.B FlashCrptb is a collection of ten powerful Drupal modules designed to enhance the visual and interactive experience of Drupal Views using pure, lightweight Vanilla JavaScript. Originally developed as Paragraphs Bundles, these modules Accordion, Basic Carousel, 3D Carousel, 3D FlipBox, Hero, Lightbox, Parallax, Reveal, Slideshow, and Tabs.

Additionally, I have created a demo for each module: Accordion Demo, 3D Carousel Demo, Carousel Demo, 3D FlipBox Demo, Hero Demo, Lightbox Demo, Parallax Demo, Reveal Demo, Slideshow Demo, and Tabs Demo.
To get started, check out our Video Demo for a step-by-step guide on using the module effectively. Explore our mixed demos here: Live Demo One | Live Demo Two. The site for the live demo is built with the Solo Theme.

Overview

The Views Vanilla JavaScript 3D Flipbox module (machine name: vvjf) allows you to create engaging 3D FlibBox displays for content on your Drupal site. This module integrates seamlessly with the Views module, offering a new display style specifically for 3D FlibBoxes. The best part? It leverages pure vanilla JavaScript, ensuring a lightweight and modern user experience without the need for jQuery.

Features

  • 3D FlipBox Format: Renders content items in an interactive 3D flipBox format, adding depth and visual appeal to your site.
  • Customizable Options: Offers adjustable settings for flip triggers (Hover/Click), flip direction (Horizontal/Vertical), animation speed, background colors (Front/Back), perspective, and more.
  • Responsive Design: Includes configurable breakpoints to ensure the flipBox adapts seamlessly to different screen sizes or remains active across all screens.
  • 3D Perspective: Option to tune 3D perspective, enhancing the depth effect of the flipBox.

Accessibility

The Views Vanilla JavaScript 3D FlipBox module includes several accessibility features to ensure that your FlibBoxes are usable by all visitors, including those using screen readers. Features include:

  • ARIA Roles and Properties: Proper ARIA roles and properties are used to provide context and state information to screen readers.
  • Keyboard Navigation: Users can navigate through FlibBox items using keyboard shortcuts, ensuring full functionality without a mouse.
  • Focus Management: Ensures that the currently displayed item is focused, providing a better experience for keyboard and screen reader users.

Configuration

After installing and enabling the module, you can configure it through the Views UI:

  1. Flip Trigger: Choose between 'hover' or 'click' to trigger the flip animation.
  2. Flip Direction: Select the flip direction—either horizontal (Y-axis) or vertical (X-axis).
  3. Flip Speed: Set the animation speed for the flip (e.g., 0.6s for smooth transitions).
  4. Front/Back Background Colors: Customize the background colors for both the front and back sides of the FlibBox.
  5. Enable Perspective: Option to tune the 3D perspective for a more immersive experience.
  6. Available Breakpoints: Choose breakpoints to ensure the FlibBox is responsive, or select 'none' to keep it active on all screen sizes.
  7. Box Height and Width: Define the height and minimum width for each FlibBox.

Custom Token for views header/footer from first row

In Views header/footer, if you add a field using Global: Text area or Global: Unfiltered text, there is an option called "Use replacement tokens from the first row."
The default tokens will not work in this case. Please use the custom tokens created by VVJA instead.
For example:

  • The default token {{ title }} should be replaced with [vvjf:title].
  • The default token {{ field_image }} should be replaced with [vvjf:field_image].

You can append :plain to the token to strip any HTML.

Example: [vvjf:title:plain]

Note: The [vvjf:*] tokens pull data directly from the rendered View fields.
Fields using complex rewrites (e.g., Global: Custom text with {{ tokens }}) are not supported by default for token replacement. Please use individual field tokens like [vvjf:title], [vvjf:field_image], etc.

Example Usage

  1. Install and enable the Views Vanilla JavaScript 3D Flipbox module.
  2. Create or edit a view in the Views module.
  3. In the Format section, select 3D Flipbox from the available display styles.
  4. Configure the various options available under the Format Settings to customize the FlibBox according to your needs.
  5. Set the number of items to display in the Pager settings.

Additional Information

  • Dependencies: This module has no dependencies on other contributed modules.

Installation

  1. Download and install the VVJF module from Drupal.org:
    composer require drupal/vvjf
  2. Enable the module through the Drupal admin interface or using Drush:
    drush en vvjf
  3. Clear caches to ensure the new plugin is available:
    drush cr

Support and Contributions

If you encounter any issues or have suggestions for improvements, please open an issue in the module's issue queue. Contributions are welcome and appreciated!

3D FlipBox - Developer & Site Builder Tips:

  • Every view created with this plugin has a CSS class vvj-flipbox placed alongside js-view-dom-id.
  • You must choose "Row Style" as the format, with at least two fields.
  • The flipped card has the CSS class flipped.
  • The first field should not be clickable. If this is forgotten, the module includes a fallback to disable any links.
  • The first field can be any field type and will be used for the front card; any other fields added will be used for the back card.
  • Hover and click classes are added to the main view.
  • On hover, any links in the front are disabled, but links in the back are active.
  • On click, any links in the front/back are disabled, but they are enabled if the 3D card is collapsed on small screens.
  • Vertical and horizontal CSS classes are added to each side.
  • The card has the option to collapse into a regular card on small devices.

How to Configure Multiple Fields as the Button or Front Card in Views Display

Our contrib modules for Drupal Views Plugin Display, such as Accordion, Tabs, Reveal, and 3D FlipBox, allow for dynamic content display based on the first field in your view. By default, the first field selected in the view configuration is used as the button or front card. However, if you wish to utilize more than one field as the "first field" for the button or front card, follow these steps:

Step-by-Step Instructions:

  1. Add Desired Fields: In your Views configuration, add all the fields you want to use as the button or front card.
  2. Exclude from Display: For each of these fields, mark them as "Exclude from display". This ensures that these fields are available for use but are not directly shown in the final output.
  3. Create a Custom Global Field:
    • Add a Custom Global Field (Text) to your view.
    • Use the Replacement Patterns feature to insert tokens for the fields you've excluded from the display. This allows you to combine multiple fields into one single output.

Field Ordering Guidance:

  • Arrange the fields in your view so that the hidden fields (the ones excluded from display) come first.
  • Follow the hidden fields with the custom global field that will act as the button or front card.
  • After these fields, add any remaining fields that will make up the rest of your content.

By following these steps and arranging your fields in this order, you can use multiple fields as the first field for your button or front card, offering greater flexibility and customization in your Drupal Views displays.

Module Limitation Notice: Grouping Field Feature

Please note that the current version of this module does not support the
Grouping Field feature available in Drupal Views. The
"Grouping Field" option allows you to group records by a specified field,
but this functionality is not compatible with the module's current implementation.

We recommend avoiding the use of this feature with this module to ensure
proper functionality and display of your Views.

back to top ☝️

Developed & Designed By: Alaa Haddad

A Personal Thank You for Your Support

Every project you see here, including this one, reflects countless hours of work driven by my passion for making Drupal better for everyone. Your support truly makes a difference, and there are a few simple ways you can help these projects grow and reach others who might benefit:

  • Use & Share Feedback: Have you found this project (or any of my other work) helpful? Let me know what worked well or how it could be improved. Real user input drives better tools for the entire community.
  • Click "Like" on Drupal.org: It may seem small, but liking this project on Drupal.org helps others discover and trust these tools.
  • Spread the Word: Share these projects on social media, Slack groups, or anywhere Drupal folks connect. Your word of mouth helps these tools find the people who need them.
  • Explore More of My Work: Check out my other projects on Drupal.org to see what else might support your workflow or inspire your next build.

W3CSS Theme (d8w3css) - Solo - W3CSS Paragraphs - Paragraphs Bundles - Amun - Amunet - Anhur - Acquia Purge Varnish - Cloudflare Purge - Reference Blocked Users - Solo Copy Blocks - Solo Utilities - PB Import - VVJA - Accordion - VVJC - 3D Carousel - VVJB - Basic Carousel - VVJF - 3D FlipBox - VVJH - Hero - VVJL - Lightbox - VVJP - Parallax - VVJR - Reveal - VVJS - Slideshow - VVJT - Tabs - Module Matrix - Selectify - Utilikit

If you have any questions, ideas, or feedback about my Drupal.org projects, I’d love to hear from you! To keep things open and helpful for the entire community, I encourage you to post directly in the project's issue queue on Drupal.org. This way, your questions and the answers can benefit others who may have the same needs.

At the end of the day, my goal is to make Drupal easier and more enjoyable for everyone, especially small businesses and site builders who want to create professional sites without extra hassle. Together, we can build something even better. Thank you for your support, and for being part of this journey!

Activity

Total releases
4
First release
Jan 2025
Latest release
3 months ago
Release cadence
98 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.0.8 Stable Nov 12, 2025
1.0.7 Stable Jun 3, 2025
1.0.6 Stable Jun 1, 2025
1.0.5 Stable Jan 21, 2025