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 Hero (Drupal Module)

Breadcrumbs

Breadcrumb

  • Home
  • Drupal Modules
  • Views Hero (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 Hero (VVJH) turns any Drupal Views listing into a full-width hero banner — or a grid of "Hero Cards" — using pure vanilla JavaScript, with no jQuery and no page-builder involved. It requires Drupal 11.3 or 12, and it is free on drupal.org.

What a hero banner needs, and why Views does not give it to you

A hero section is a specific layout problem: one large background image, a block of overlay text positioned somewhere on top of it, an entrance animation, and a guarantee that the whole thing still works on a phone. Views can output a list of rows. It has no concept of "the first field is the background, everything else is the caption," and no built-in way to animate an overlay into position. Building that by hand means a custom template, a chunk of CSS for the overlay positions, and enough JavaScript to handle the animation and the responsive collapse — for every view that needs one.

VVJH is that work, done once. It adds Vanilla JavaScript Hero as a Views style plugin — a display format you select in the Format section like any other — and it turns the row-style output into a hero section or a grid of Hero Cards without you writing a template or a line of CSS.

Requirements

Views Hero requirements, from vvjh.info.yml
RequirementValue
Drupal core^11.3 || ^12
PHP8.3+
Core modulesViews, Filter
Required contrib moduleVVJ Core (vvj_core) — not optional

VVJH will not enable without VVJ Core on the module list. VVJ Core is the shared foundation the whole VVJ pattern family runs on — the abstract style plugin base class, the token resolver, the accessibility helpers, and the JavaScript custom-element base every pattern module attaches to. Composer pulls it in for you:

composer require drupal/vvjh:^2.0

A manual tarball install does not resolve that dependency automatically — download vvj_core alongside vvjh and enable both.

If you are still on Drupal 10, this module is not for you. Version 2 of every VVJ pattern module, VVJH included, targets Drupal 11.3+ and 12 only and is built on the current Views #[ViewsStyle] attribute plugin system rather than the annotation discovery Drupal 12 removed. If a Drupal 10 to 11 upgrade is what is standing between you and this module, that upgrade is work I do.

What you build with it

Two shapes: full-width hero, or a grid of Hero Cards

The Hero Card Width setting decides which one you get. Set it to 0 and each row expands to the view's full available width — a stacked list of full-width hero sections, the classic landing-page banner. Give it a value in px, vw, vh, em or rem and rows lay out as fixed-width cards instead — a grid of visually rich "Hero Cards" that combine a background image with structured overlay content, useful for feature sections and category highlights below the main banner.

Overlay position, animation, and speed

The overlay — everything after the first field — can be positioned at nine points across the hero (middle, the four edges, the four corners) and animated in with fade, zoom, or a directional slide, at a speed and easing you choose. Not every combination reads well: a corner-positioned overlay animated with Zoom looks lopsided, and a Slide From Top overlay placed at Left or Right slides from an unexpected direction. The module does not block a bad combination — pick position and animation together, and preview it.

Responsive by construction

Configurable breakpoints collapse the hero into a regular stacked card on small screens, and the module works natively with Drupal's responsive image styles — set a responsive image field as the first field and the hero's background scales correctly across device sizes without extra configuration.

Building the view

What the Hero display style requires of the view, from the module's own site-builder notes
RequirementDetail
FormatRow style, with at least two fields
First fieldMust be an image field — Image or Responsive image formatter. Not a URL-to-image formatter. It can be clickable.
Remaining fieldsGrouped together as the hero overlay content
CSS classvvj-hero, added alongside Views' own js-view-dom-id class on every view using this plugin
Not supportedViews' "Grouping Field" option — the current implementation does not work with it; leave it off

Custom tokens for Views header and footer

Views' own "Use replacement tokens from the first row" option, available on a Global: Text area or Global: Unfiltered text field in a header or footer, does not work against this style plugin's output — the default {{ title }}-style tokens resolve to nothing. VVJH ships its own token set instead:

[vvjh:title]
Replaces the default {{ title }} token.
[vvjh:field_image]
Replaces the default {{ field_image }} token, and the same pattern applies to any other field.
[vvjh:title:plain]
Append :plain to any field token to strip HTML from the output.

These tokens pull data straight from the rendered view fields, so a field using a complex rewrite (Global: Custom text with its own {{ tokens }}) is not supported — use the individual field token instead. Under the hood, token resolution runs through the shared vvj_core.token_resolver service, but the [vvjh:field] syntax itself is unchanged from the 1.x branch.

Installation

composer require drupal/vvjh:^2.0
drush en vvjh -y
drush cr

Composer resolves and installs vvj_core automatically. After enabling, edit or create a view, and in the Format section choose Vanilla JavaScript Hero from the display style options.

Common questions

Does Views Hero work without Views UI enabled?

You need Views UI (core, not required to stay enabled permanently) to select the display style through the admin interface, or you can define the style in a view's exported configuration directly, as the module's own vvjh_example config in the codebase does.

Can I use a plain image URL field as the hero background?

No. The first field must be rendered through an Image or Responsive Image formatter, not a URL-to-image formatter. This is what lets the module read the actual image markup and apply responsive behaviour to it.

Does the hero section work with Drupal's Grouping Field option in Views?

No — this is a stated limitation of the current implementation. Leave the Grouping Field setting off for any view using this style.

What happens on a Drupal 10 site?

VVJH 2.x does not install — its core_version_requirement is ^11.3 || ^12. Stay on the 1.x branch, or plan the Drupal 11 upgrade first.

Do I need to write CSS to use this?

No. The module ships its own stylesheet, toggled with the Enable default CSS styling setting, and the responsive breakpoint stylesheets load automatically. You can still target .vvj-hero yourself if you want a different look.

Related VVJ display formats

Hero handles the top-of-page banner. For a similar full-width treatment with a scroll-driven background, see Views Parallax. For presenting a Views row set as a modal image gallery instead of a banner, see Views Lightbox. If your components live in Paragraphs rather than Views, Paragraphs Bundles ships a hero paragraph type built the same way.

If you want a hero section built and tuned for a specific site rather than configured yourself, or a Drupal 10 to 11/12 upgrade that clears the way for VVJH's requirements, see my Drupal services or get in touch.

Views Vanilla JavaScript Hero (VVJH)
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

Solo Utilities (Drupal Module)

Reference Blocked Users (Drupal Module)

Solo Copy Blocks (Drupal Module)

Views Hero (Drupal Module)

Amun - W3CSS Sub-Theme (Drupal Theme)

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