Skip to main content
CSS-Tricks
  • Articles
  • Alamanac
  • Guides
  • Videos
  • Books
  • Newsletter
Search

Articles Tagged
navigation

24 Articles
{
,

}
Direct link to the article Icon Glassmorphism Effect in CSS
backdrop-filter background-clip element() emoji filter hsl mask-clip navigation

Icon Glassmorphism Effect in CSS

I recently came across a cool effect known as glassmorphism in a Dribble shot. My first thought was I could quickly recreate it in a few minutes if I just use some emojis for the icons without wasting time …

Avatar of Ana Tudor
Ana Tudor on Nov 8, 2021
Direct link to the article Creating a Smart Navbar With Vanilla JavaScript
navigation sticky

Creating a Smart Navbar With Vanilla JavaScript

Sticky, or fixed, navigation is a popular design choice because it gives users persistent access to navigate the site. On the other hand, it takes up space on the page and sometimes covers content is a way that’s less than …

Avatar of Jemima Abu
Jemima Abu on Apr 5, 2021
Direct link to the article In Praise of the Unambiguous Click Menu
menus navigation

In Praise of the Unambiguous Click Menu

I still remember my excitement when I learned how to build a hover-triggered submenu with just CSS. (It was probably after reading this 2003 article from A List Apart.) At the time, it was a true CSS trick. Seriously. …

Avatar of Mark Root-Wiley
Mark Root-Wiley on Mar 18, 2021
Direct link to the article Table of Contents with IntersectionObserver
IntersectionObserver navigation

Table of Contents with IntersectionObserver

If you have a table of contents on a long-scrolling page, thanks to, say, position: fixed; or position: sticky;, the IntersectionObserver API in JavaScript is the perfect companion to highlight items in the table of contents when corresponding content …

Avatar of Chris Coyier
Chris Coyier on Mar 11, 2021 (Updated on Mar 15, 2021)
Direct link to the article How We Improved the Accessibility of Our Single Page App Menu
:focus-within accessibility focus menu navigation

How We Improved the Accessibility of Our Single Page App Menu

I recently started working on a Progressive Web App (PWA) for a client with my team. We’re using React with client-side routing via React Router, and one of the first elements that we made was the main menu. Menus …

Avatar of Luke Denton
Luke Denton on Feb 25, 2021
Direct link to the article How to Create a Shrinking Header on Scroll Without JavaScript
navigation scrolling sticky

How to Create a Shrinking Header on Scroll Without JavaScript

Imagine a header of a website that is nice and thick, with plenty of padding on top and bottom of the content. As you scroll down, it shrinks up on itself, reducing some of that padding, making more screen real …

Avatar of Håvard Brynjulfsen
Håvard Brynjulfsen on Feb 16, 2021 (Updated on Jun 7, 2021)
Direct link to the article I Saw Two Mega Menus Today…
navigation

I Saw Two Mega Menus Today…

One was the footer of an (older) U.S. Government website. The other was the navigation for AWS services from the AWS Console.
Avatar of Chris Coyier
Chris Coyier on Feb 2, 2021
Direct link to the article Parsing Markdown into an Automated Table of Contents
IntersectionObserver markdown navigation vue animations

Parsing Markdown into an Automated Table of Contents

A table of contents is a list of links that allows you to quickly jump to specific sections of content on the same page. It benefits long-form content because it shows the user a handy overview of what content there …

Avatar of Lisi Linhart
Lisi Linhart on Nov 13, 2020
Direct link to the article Menu Reveal By Page Rotate Animation
checkbox hack menu navigation

Menu Reveal By Page Rotate Animation

There are many different approaches to menus on websites. Some menus are persistent, always in view and display all the options. Other menus are hidden by design and need to be opened to view the options. And there are even …

Avatar of Preethi
Preethi on Sep 8, 2020
Direct link to the article Three CSS Alternatives to JavaScript Navigation
navigation

Three CSS Alternatives to JavaScript Navigation

Hey quick! You’ve gotta create the navigation for the site and you start working on the mobile behavior. What pattern do you choose? If you’re like most folks, it’s probably the “hamburger” menu that, when clicked, uses a little JavaScript …

Avatar of Blake Lundquist
Blake Lundquist on Jul 14, 2020
Direct link to the article Sticky Table of Contents with Scrolling Active States
IntersectionObserver navigation

Sticky Table of Contents with Scrolling Active States

Say you have a two-column layout: a main column with content and a sidebar. Say it has a lot of content, with sections that requires scrolling. The sidebar column that is largely empty, such that you can safely put a …

Avatar of Chris Coyier
Chris Coyier on Jan 30, 2020 (Updated on Feb 13, 2020)
  • 1
  • 2
  • 3
  • Older

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways hosting
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Write for us!
  • Advertise with us
  • Contact us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • X
Back to Top