Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


How is the navigation bar made like that?

here is a link: https://blog.axosoft.com/2017/03/14/5-electron-apps/ Now I really want to know how that nav bar fills up as the user scrolls down. Not only that, it also shrinks back as the user scrolls up.

At least anyone please tell me what that styling is called. So I can google it at least... Thanks a lot.

3 Answers

There is a course on here that will help you achieve this :)


Second section - Add a Sticky Navigation Bar

It is a combination of JavaScript and CSS. CSS gives it the styles, color, size, etc. JavaScript reads the scrolling position on the screen to trigger the changes in CSS. Hope that helps.

Thank you very much for that. I've been trying to know what that was for a long time. I'll definitely take that course, but I intend to focus on that after I learn a few more things. Thanks once again...