Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

How to shrink the header while scrolling down the page?

Started by Muut Archive 12 years ago · 6 replies · 573 views
12 years ago

It's exactly the same as the header in Antimatter theme. You can see it in action here:

onepage skeleton demo

Basically it's just CSS and JavaScript. There's a JS function in antimatter.js called scrollHeader() and that just toggles a CSS class on the header element as you scroll past a certain point. Then the rest is just CSS to set the sizes and enable animations. You can find that in the scss/template/_header.scss file.

12 years ago

wow, this skeleton demo is great. love you guys !

12 years ago

In case you missed it, we have several skeletons with various themes, content, plugins and setups.

Grav Skeleton Packages

These are a great way to get quickly setup with a site to start developing on.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2602 9 years ago
Archive · by Muut Archive, 9 years ago
2 1711 9 years ago
Archive · by Muut Archive, 9 years ago
2 5005 9 years ago
Archive · by Muut Archive, 9 years ago
1 3836 9 years ago
Archive · by Muut Archive, 9 years ago
3 1818 9 years ago