Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

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

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...