webdevpuneet.com

Ecommerce Mega Menu — Department Sidebar

Desktop · 1280px · shown at 0% · edit the text, images and colours in the panel

Ecommerce Mega Menu — Department Sidebar — Free Website Section Template

Navbar · v1.0.0 · Updated 2026-11-14 · Responsive · GSAP animation · HTML, React & Vue

CategoryNavbar
Tagsnavbarmega menuecommercestoredepartmentscategoriessidebarmarketplaceheaderlight
Updated October 20, 2026

Extend with AI

Take This Section Further With AI

Ask an AI assistant to adapt the department menu: add product counts to each department, a recently viewed row in the panel, or a second level of links that opens on hover.

Prompt to recreate it

Copy this into your AI assistant of choice to build the effect from scratch, or as a jumping-off point for your own variant:

text
Create a department mega menu for a large online store in plain HTML, CSS and JavaScript.

- A header with logo, a pill search form (GET, field q) and account, wishlist and cart icons (cart has a count badge), and under it a bar with a blue "All categories" button with a hamburger icon, then quick links Deals, New in, Gift cards and Help.
- The button opens a full-width panel with a vertical list of five departments (each with an icon and a chevron) on the left and, on the right, the active department's title, a "View all" link, three link columns and a featured image card.
- Hovering, focusing or clicking a department switches the pane; Arrow Up and Down move between departments; the first department is active when the panel opens.
- The button has aria-expanded and aria-controls. Esc closes the panel and returns focus; tabbing out or clicking elsewhere closes it.
- Below 860 px turn the departments into pill chips above the active pane inside a burger menu.

Want to tighten it up first? Run this prompt through the AI Prompt Studio to score it across 8 quality dimensions, catch anti-patterns, and tune the wording for Claude, ChatGPT, or Gemini before you paste it in.

What's included

Features

All categories button that opens one large panel under the header
Vertical department list with icons; hover, focus or click switches the pane
Each pane has a title, a view-all link, up to three link columns and a featured image card
Up to eight departments, edited as a list with "Label | URL" link lines
Quick links beside the button, such as Deals, New in and Gift cards
Search form, account, wishlist and cart icons with a cart count badge
Arrow Up and Down move between departments; Esc and Tab close the panel
aria-expanded and aria-controls kept in sync on the button and tabs
Phone layout: the button joins the burger menu and departments become chips
Sticky header with optional hide-on-scroll-down and a switchable top bar
SiteNavigationElement structured data for the departments
Export HTML, a ZIP with images, React or Vue, or fork to My Code

About this section

Department Mega Menu — Free All Categories Dropdown Template

Ecommerce Mega Menu — Department Sidebar: The big-catalogue pattern used by marketplaces and department stores. Under the search header, an All categories button opens one large panel: a vertical list of departments with icons on the left, and on the right the sub-category columns and a featured card of whichever department you point at. Quick links such as Deals and Gift cards sit beside the button. On phones the departments turn into chips above the active panel.

Ecommerce Mega Menu — Department Sidebar is a free navigation template for shops with big catalogues. Under a search header sits an "All categories" button; open it and one large panel appears with a list of departments on the left and, on the right, the sub-category columns and a featured card of the department you are pointing at. Quick links such as Deals, New in and Gift cards sit beside the button.

The marketplace pattern, done properly

Department stores and marketplaces have too many categories for a row of tabs. A vertical list of departments, each with an icon, scales to eight categories while the right side shows three link columns, a view-all link and a promotion for the active one. Hover, focus or click a department to switch panes; Arrow Up and Down move between them, and the first department starts active so the panel is never empty.

Search first

Most shoppers of large catalogues start with search, so the search form takes the centre of the header, with account, wishlist and cart icons and a cart count on the right. The form is a plain GET form that sends visitors to your search page with their words in the q parameter.

Responsive and accessible

The All categories control is a real button with aria-expanded and aria-controls, Esc closes the panel and returns focus, and tabbing out closes it. On phones the button becomes the first row of the burger menu and the departments turn into chips above the active department's links, so the whole catalogue stays reachable with a thumb.

Edit and export

Add up to eight departments with an icon, three link columns written as "Label | URL" lines and a featured card with a photo. Edit the quick links, the button text and the top bar, and the theme restyles everything at once. The departments are also written as SiteNavigationElement data. Export one HTML file, a ZIP with images, a React or Vue component, or fork it into My Code. See also the Link Columns Mega Menu for a row of category dropdowns.

Why use it

Why Use the Ecommerce Mega Menu — Department Sidebar

🗂
Scales to a big catalogue
Eight departments with three columns each fit in one panel, so even large shops stay browsable.
🔎
Search comes first
A prominent search field sits in the header, because shoppers of large catalogues usually start there.
⌨
Fully keyboard operable
Buttons, aria attributes and arrow-key navigation between departments make the panel usable without a mouse.

How it’s different

How It’s Different From Other Free Section Templates

✎
Editable, not just copyable
Change text, links, images, colours and fonts in the browser before you export, instead of editing someone else’s code by hand.
◐
One theme for every section
Colours, fonts, radius and width are shared CSS variables, so every section you combine looks like one website.
⇲
Responsive by container
Container queries make each section adapt to its own width, in a full page, a column or a page builder.
✦
GSAP animation built in
Every section animates in with GSAP and ScrollTrigger, stays visible without JavaScript and respects reduced motion.
</>
HTML, React and Vue
Export a single HTML file, a ZIP with your images, a React component or a Vue component, or fork the code into My Code.
◍
Free, private, saved
No account and no watermark. Designs, uploaded images and fonts stay in your browser, with a backup file you can restore anywhere.

Step by step

How to Use

  1. 1
    Edit the contentFill in the logo, top bar, search & icons, departments and button & quick links in the panel. Switch the top bar on or off. Wrap words in *asterisks* to colour them.
  2. 2
    Add your imagesUpload your own images (resized in your browser and kept on your device) or paste a hosted image URL.
  3. 3
    Match your brandPick a colour preset or exact colours, choose heading and body fonts from Google Fonts or your own uploaded font, set the corner radius and width, or apply your brand kit.
  4. 4
    Animate and previewChoose a GSAP entrance effect and speed, press Play animation, and check the section on desktop, tablet and mobile.
  5. 5
    Save and exportSave it to My designs, then export a single HTML file, a ZIP with your images, a React or Vue component, or fork it into My Code.

Real-world uses

Common Use Cases

🛍
Marketplaces and multi-vendor shops
Organise dozens of product categories into departments, with a promoted brand or seller card for the department a shopper is browsing.
🔌
Electronics and hardware stores
Let shoppers jump from audio to smart home to accessories in one panel, with the three link columns showing the sub-categories that matter.
🥦
Grocery and household retailers
Use icons and short sub-category lists for aisles such as fresh, pantry and cleaning, and promote weekly deals in the featured card.
🏢
Business supply catalogues
Give buyers a dependable department list with quick links to quotes, order history and help, beside the all-categories button.

Got questions?

Frequently Asked Questions

Up to eight. Each has an icon, a title, a view-all link, three link columns and an optional featured card. For fewer, bigger categories, the Image Tiles mega menu may suit better.

Hovering, focusing or clicking a department activates its pane. Arrow Up and Down move between departments. The first department is active by default, so the panel never opens empty.

The All categories button becomes the first row of the burger menu. Opening it shows the departments as chips with the active department links beneath, followed by the quick links.

Yes. Empty the quick links field to hide that row, and switch off the top bar group to remove the thin bar above the header.

It saves an editable copy of your Ecommerce Mega Menu — Department Sidebar in My Code, the UI Snippets code editor: the section markup goes in the HTML panel, its CSS (theme variables, base styles and layout) in the CSS panel, and the GSAP library is added as a CDN link, so you can keep refining the code and save your own versions.

Yes. Every section is free for personal and commercial work, with no account, no watermark and no attribution: export it on its own as HTML, React, Vue or Next.js from its page, or use it in a website you build and export in the Website Builder.