Navbar With Announcement Bar

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

Navbar With Announcement Bar — Free Website Section Template

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

CategoryNavbar
Tagsnavbarheaderannouncement barbannerdismissiblemobile menulight
Updated October 20, 2026

What's included

Features

Announcement bar with text, link and close button
Dismiss collapses the bar smoothly (GSAP); bar can be switched off
Navbar with logo and links left, sign-in and CTA right
Animated hamburger menu with Esc, focus trap and aria-expanded
Sticky header with optional hide on scroll down
Upload a logo or use the icon + name mark
Links show without JavaScript
Export HTML, a ZIP, React or Vue

About this section

Navbar With Announcement Bar — Free Header Template

Navbar With Announcement Bar combines the two things most store and SaaS headers need: a slim bar across the top for news, offers and launches, and a full navigation bar underneath. The announcement has its own link and a close button that collapses it smoothly with GSAP, and the navbar has your logo and links on the left with sign-in and a call to action on the right.

Announce anything

Use the bar for a sale ("30% off yearly plans until 31 May"), a launch, a webinar or a changelog update. Emoji work fine. Switch the whole bar off when there's nothing to announce, or let visitors dismiss it themselves.

Navbar that adapts

On desktop, links sit next to the logo for a compact, store-style layout. On phones they fold into an animated hamburger menu with the sign-in link and a full-width button at the bottom, with Esc to close, a focus trap and aria-expanded built in. Without JavaScript the links simply show.

Sticky options

Keep the header stuck to the top, and optionally hide it while scrolling down and show it on the way back up. The warm cream theme with a raspberry accent suits fashion and lifestyle shops; switch presets or apply your brand kit.

Export it

Download HTML, a ZIP, React or Vue with the menu and dismiss scripts included, or fork into My Code. For a simpler header, see the Simple Sticky Navbar.

Navbar With Announcement Bar: A two-part site header: a slim announcement bar on top for news, launches or offers, with a link and a close button that collapses it smoothly; underneath, a navbar with the logo and links on the left and sign-in plus a CTA on the right. On phones the links fold into an animated menu.

Why use it

Why Use the Navbar With Announcement Bar

📣
Prime real estate
The very top of the page is the first thing every visitor sees, which makes it perfect for offers and news.
✕
Respectful
Visitors can dismiss the announcement, and it collapses smoothly instead of jumping.
🛍
Store-ready layout
Links beside the logo and a strong button suit shops with several categories.

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 announcement bar, logo, links and buttons in the panel. Switch the announcement 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

🏷️
Sale or discount
Announce "Free shipping this weekend" or a seasonal sale with a link straight to the offer.
🚀
Product launch
Point the bar to your launch post or Product Hunt page while the launch is live.
🎙️
Webinar or event
Promote an upcoming webinar with the date in the text and a registration link.
🛠️
Status or changelog
Share a new release or scheduled maintenance notice with a link to details.

Got questions?

Frequently Asked Questions

Yes. The × button collapses the bar with a smooth GSAP animation and removes it. It reappears on the next page load; to remember the choice, store it in localStorage in your exported code.

Yes. Switch the Announcement bar group off and only the navbar remains.

Yes. It is a real button with an editable screen-reader label such as "Dismiss announcement".

The announcement text wraps to the left of the close button, and the navbar shows the logo and a hamburger that opens the links, sign-in link and button.

It saves an editable copy of your Navbar With Announcement Bar 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. It is free for personal and commercial websites, with no sign-up, no watermark and no attribution required. Everything runs in your browser and your edits are saved locally.