Skip to header Skip to main navigation Skip to main content Skip to footer
Cookies UI
Site branding
Alaa Haddad - Drupal Expert
Consultant • Architect • Developer • Themer - Expert Drupal Solutions
Main navigation
Alaa Haddad Offers Exceptional Drupal Custom Theming and Modules in Austin TX Alaa Haddad - Drupal Expert
  • Professional Profile
  • Drupal Services
    • Drupal Development
    • Drupal Developer
    • Drupal Themer
    • Drupal Architect
    • Drupal Consultant
  • My Drupal Modules & Themes
      • Cloudflare Purge
      • Solo Copy Blocks
      • W3CSS Paragraphs
      • Paragraphs Bundles
      • Acquia Purge Varnish
      • Reference Blocked Users
      • Module Matrix
      • Paragraphs Bundles Import
      • Selectify
      • Solo Utilities
      • Utilikit
      • Solo
      • Amun
      • Anhur
      • Amunet
      • W3CSS Theme
      • 3D Carousel
      • 3D FlipBox
      • Accordion
      • Carousel
      • Hero
      • Lightbox
      • Parallax
      • Reveal
      • Slideshow
      • Tabs
  • Blog
  • Videos
  • Contact
  • Hire Me (opens in new tab)

Views Reveal (Drupal Module)

Breadcrumbs

Breadcrumb

  • Home
  • Drupal Modules
  • Views Reveal (Drupal Module)

Main page content

Alaa Haddad, professional Drupal developer based in Austin, TX   Alaa Haddad
  10:43 PM CDT, Sun September 13, 2026
Share

Views Reveal turns each row in a Drupal View into a two-sided card: a front face shown by default, and a back face that slides, fades or zooms into view on hover or click. It is a Views style plugin — machine name vvjr — built in vanilla JavaScript, with no jQuery and no front-end framework to load.

What a reveal card is actually for

A reveal card is not a slideshow and not a carousel — it is a way to put a second layer of content behind a first one, disclosed only when a visitor asks for it. That makes it the right tool for a narrower set of jobs than its siblings in this suite:

  • Staff or team directories — a photo and name on the front, a bio and contact links on the back.
  • Feature or service call-outs — an icon and headline on the front, the supporting detail on the back.
  • Before/after or comparison pairs — one state visible, the other revealed on interaction.

If you need visitors to click through a sequence of items, that is Views Slideshow or a carousel. If you need several panes selected by a label, that is Views Tabs. Reveal is specifically for one card with two states.

Requirements

Views Reveal requirements, from vvjr.info.yml
RequirementValue
Drupal core^11.3 || ^12
PHP8.3+
Core modulesViews, Filter
Contributed dependencyVVJ Core — required by every VVJ v2 module, and pulled in automatically by Composer

Note the version floor: Views Reveal 2.x requires Drupal 11.3 or later, or Drupal 12. There is no Drupal 10 path on the 2.x branch — if you are still on Drupal 10, install the 1.x series instead, and if that version gap is what is holding your site back, upgrading Drupal is work I do.

How the card is built

Reveal reads its row exactly once and splits it into two faces. Set the view's row style to Fields with at least two fields:

  • The first field becomes the front face. It can be any field type, and it should not be a link — the module disables any link on the front face automatically as a fallback, but it is cleaner to avoid one in the first place.
  • Every field after the first becomes the back face, shown when the card is revealed.

Every view rendered with this display style carries the CSS class vvj-reveal alongside Drupal's standard js-view-dom-id, and the revealed state adds a revealed class to the card. On hover, links inside the front face are disabled while links in the back face stay active; on click, links in both faces are disabled while the card is open, then re-enabled if the card collapses again on a small screen.

Configuration

Format settings for the Reveal display style, from vvjr.schema.yml
SettingControls
Reveal methodTrigger the back face on hover or on click
Reveal styleAnimation direction — fade, zoom, or slide from top, right, bottom or left
Reveal speedAnimation duration, from fast to slow
Animation easingThe easing curve applied to the reveal transition
Box height / box widthFixed height and minimum width for each card, in pixels
Grid gapSpacing between cards, in pixels
Front / back background colorIndependent background colors for the two faces
Available breakpointsWhich of the standard breakpoints (576–1400px) the responsive grid should honor
Enable CSS libraryTurn the shipped stylesheet on or off for full custom styling

On small screens, a revealed card collapses into a regular stacked card rather than trying to hold the hover interaction — there is no good way to "hover" on a touchscreen, so Reveal does not pretend otherwise.

Accessibility

Reveal ships with ARIA roles and state properties on the card and its two faces, full keyboard operation so a reveal can be triggered and read without a mouse, and focus management that moves focus to the revealed content when it opens. None of this needs configuration; it is the default behavior of the plugin.

Custom tokens in Views header and footer

If you add a Global: Text area or Global: Unfiltered text field to a view's header or footer and turn on "Use replacement tokens from the first row," Drupal's default {{ field_name }} tokens will not resolve. Use the tokens Reveal provides instead:

{{ title }}        becomes  [vvjr:title]
{{ field_image }}  becomes  [vvjr:field_image]

Append :plain to strip HTML from the resolved value — [vvjr:title:plain]. These tokens pull directly from the rendered row fields, so a field using a complex rewrite with embedded {{ tokens }} is not supported; reference the individual field instead. In v2, token resolution runs through the shared vvj_core.token_resolver service, but the [vvjr:field] syntax itself is unchanged from v1.

Installation

composer require drupal/vvjr
drush en vvjr -y
drush cr

Composer pulls in VVJ Core automatically. Then open the view you want to change, set the format to Reveal, and configure it under Format Settings.

Using more than one field as the front face

The front face reads from a single field by default, but you can combine several: add the fields you need, mark each one "Exclude from display" so it is available without being rendered directly, then add a Custom Global Field (Text) that uses Views' replacement-pattern tokens to combine them. Order the excluded fields first, the custom global field second, and the remaining visible fields after that — the custom field then becomes the effective front face.

A known limitation

Reveal does not support the Views Grouping Field feature. Grouping records by a field is not compatible with the current row-splitting implementation, so avoid combining the two.

Common questions

Can the front face be an image and the back face be text?

Yes — the front field can be any field type, and every field added after it renders on the back face, in the order you add them.

Does Reveal work on touchscreens?

Yes. Set the reveal method to click rather than hover for the most reliable touch behavior, and the card collapses to a regular stacked layout below your configured breakpoint.

Will it install on a Drupal 10 site?

No — 2.x requires Drupal 11.3 or later, or Drupal 12. Use the 1.x branch on Drupal 10.

Do I need to install VVJ Core separately?

No. It is a required dependency, and composer require drupal/vvjr installs it for you automatically.

Can I use Reveal without the shipped CSS?

Yes — the "Enable CSS library" setting turns the default stylesheet off if you want to style the card yourself.

Related modules

Reveal is one of ten Views display styles I maintain in the same suite. Views Tabs and Views Slideshow solve adjacent problems — a tabbed pane and a sequential slide, respectively — and all three share the VVJ Core foundation. If your content is built from Paragraphs Bundles, the Reveal paragraph type uses the same front/back pattern without a view.

Need it built into a real site?

Views Reveal is free and GPL-licensed. If you want a directory, feature grid or comparison layout built around it — or a Drupal 10 to 11/12 upgrade so you can run the 2.x branch — that is my day job. Read about my Drupal services, see what a Drupal developer handles day to day, or get in touch.

Views Vanilla JavaScript Reveal (VVJR)
Slide 1 of 27
Acquia Purge Varnish - API V2 (Drupal Module)
Slide 2 of 27
Amun - W3CSS Sub-Theme (Drupal Theme)
Slide 3 of 27
Amunet - W3CSS Sub-Theme (Drupal Theme)
Slide 4 of 27
Anhur - W3CSS Sub-Theme (Drupal Theme)
Slide 5 of 27
Cloudflare Purge (Drupal Module)
Slide 6 of 27
Module Matrix (Drupal Module)
Slide 7 of 27
Paragraphs Bundles (Drupal Module)
Slide 8 of 27
Paragraphs Bundles Import (Drupal Module)
Slide 9 of 27
Reference Blocked Users (Drupal Module)
Slide 10 of 27
Selectify (Drupal Module)
Slide 11 of 27
Solo (Drupal Theme)
Slide 12 of 27
Solo Copy Blocks (Drupal Module)
Slide 13 of 27
Solo Utilities (Drupal Module)
Slide 14 of 27
Utilikit (Drupal Module)
Slide 15 of 27
Views 3D Carousel (Drupal Module)
Slide 16 of 27
Views 3D FlipBox (Drupal Module)
Slide 17 of 27
Views Accordion (Drupal Module)
Slide 18 of 27
Views Carousel (Drupal Module)
Slide 19 of 27
Views Hero (Drupal Module)
Slide 20 of 27
Views Lightbox (Drupal Module)
Slide 21 of 27
Views Parallax (Drupal Module)
Slide 22 of 27
Views Reveal (Drupal Module)
Slide 23 of 27
Views Slideshow (Drupal Module)
Slide 24 of 27
Views Tabs (Drupal Module)
Slide 25 of 27
VVJ Core (Drupal Module)
Slide 26 of 27
W3CSS Paragraphs (Drupal Module)
Slide 27 of 27
W3CSS Theme (Drupal Theme)
1 of 27

Our mission is to make Drupal more accessible and user-friendly, empowering businesses of all sizes, especially small enterprises with powerful tools that streamline content customization and enhance digital experiences.

Need help with your Drupal project? Hire Me through Flash Web Center, LLC.

Search

The Drupal 11 Module and Theme Stack, With Versions Checked

ARIA Live Regions in Drupal 11: What Core Does, What You Add

Drupal Architect: The Decisions Expensive to Reverse

Drupal Services: Development, Theming, Upgrades | Austin TX

Paragraphs Bundles

Drupal Module - Paragraphs Bundles

Drupal Theme - Solo

Drupal Theme - Solo

Drupal Work List - Drupal Work

Reference Blocked Users (Drupal Module)

Solo Utilities (Drupal Module)

Views Hero (Drupal Module)

Solo (Drupal Theme)

Paragraphs Bundles Import (Drupal Module)

Drupal Theme - W3CSS Theme

Drupal Theme - W3CSS Theme

Drupal Module - W3CSS Paragraphs

Drupal Module - W3CSS Paragraphs

Inspiration

Inspiration is the fuel that powers our creative engine, often coming from our surroundings, experiences, or the works of others. It's that magical moment when something clicks inside your brain, and you suddenly see a path forward that you hadn't noticed before. Inspiration can strike at any time, providing the motivation and energy needed to explore new possibilities and bring your ideas to life.

Unique Ideas

Unique Ideas

Unique ideas are the seeds of innovation, representing original thoughts or concepts that stand out from the usual. They're the sparks that ignite the process of creating something new and different, often leading to unexpected and groundbreaking solutions or products. Whether in art, science, business, or technology, unique ideas challenge the status quo and pave the way for progress.

Brainstorming

Brainstorming

Brainstorming is a creative group activity designed to generate a large number of ideas or solutions to a problem. It's a free-flowing and open-ended discussion where every suggestion is welcomed and considered, no matter how outlandish it may seem. Brainstorming encourages thinking outside the box, fostering an environment where creativity and collaboration lead to innovative solutions.

Planning

Planning

Planning is the blueprint for turning your ideas into reality. It involves setting goals, outlining steps, and organizing resources in a way that makes achieving your objectives possible. Good planning considers potential challenges and opportunities, making it easier to navigate the journey from concept to completion. It's about preparing the groundwork so that your projects can grow and flourish.

Drupal Developer

A Drupal Developer stands as the technical powerhouse behind dynamic websites, wielding expertise in PHP, custom module development, and Drupal's sophisticated API ecosystem. This role transforms business requirements into functional, secure, and scalable web solutions that power everything from small business sites to enterprise platforms serving millions of users. A Drupal Developer's expertise spans the entire development lifecycle—from architecting custom modules and integrating third-party services to optimizing performance and ensuring security compliance. Discover the complete guide to Drupal Developer skills, career paths, and hiring strategies.

Drupal Themer

A Drupal Themer serves as the artistic craftsperson who transforms wireframes and design mockups into pixel-perfect, accessible, and responsive user experiences using Twig templates, CSS, and JavaScript. This specialized role bridges the gap between design vision and technical implementation, ensuring every website not only looks exceptional but performs flawlessly across all devices and meets WCAG accessibility standards. A Drupal Themer's work encompasses the entire front-end ecosystem—from creating custom theme architectures and optimizing Core Web Vitals to implementing complex responsive designs and ensuring seamless integration with Drupal's rendering system. Explore the comprehensive guide to Drupal Themer expertise, theming best practices, and career advancement.

Drupal Architect

A Drupal Architect emerges as the strategic visionary of web construction, armed with encyclopedic knowledge of enterprise architecture patterns, infrastructure design, and Drupal's extensive technological ecosystem. This senior role operates at the highest technical level, making critical decisions that determine whether complex implementations scale successfully or collapse under real-world demands. A Drupal Architect's responsibilities begin long before development starts—during strategic planning phases where the foundation for secure, performant, and maintainable systems is established through careful evaluation of technology stacks, integration strategies, and scalability requirements. Learn about Drupal Architect skills, enterprise architecture strategies, and career progression to principal roles.

Footer menu

  • Contact
  • Professional Resume
  • Resume Summary
  • Technical Skills
  • Privacy Policy
  • Terms & Conditions
  • Search
  • Login
  • Sitemap

Copyright © 2026 Flash Web Center, LLC - All rights reserved

Developed & Designed by Alaa Haddad