paint-brush
How to Implement a Sticky Header in Oxygen Builderby@grezvany13
1,858 reads
1,858 reads

How to Implement a Sticky Header in Oxygen Builder

by Johan de Jong5mOctober 11th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This snippet allows you to make (almost) any header sticky on the page which pops-up when you scroll down, but hides itself when you. you scroll up. And as a bonus a step-by-step guide on how to implement this in Oxygen Builder. It’s simple, yet a very fancy, way to prevent your header taking up space which can be used for displaying your content. This snippet contains a small piece of CSS and a couple of lines of Javascript. The last step is to add some Javascript which will handle the showing and hiding of the header when scrolling up and down.

Company Mentioned

Mention Thumbnail
featured image - How to Implement a Sticky Header in Oxygen Builder
Johan de Jong HackerNoon profile picture
Johan de Jong

Johan de Jong

@grezvany13

Johan de Jong, a lazy programmer with experience in WordPress, Laravel and Full-stack Development

0-item

STORY’S CREDIBILITY

Code License

Code License

The code in this story is for educational purposes. The readers are solely responsible for whatever they build with it.

L O A D I N G
. . . comments & more!

About Author

Johan de Jong HackerNoon profile picture
Johan de Jong@grezvany13
Johan de Jong, a lazy programmer with experience in WordPress, Laravel and Full-stack Development

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite