Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How to shrink the header while scrolling down the page?

Started by Muut Archive 11 years ago · 6 replies · 359 views
11 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.

11 years ago

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

11 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 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1104 9 years ago