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

JavaScript

Swapnil Srivastava
Swapnil Srivastava
13,146 Points

how to auto hide header when scrolling down ? I have a header with position fixed and top 0 property

hi , i wanted to know how to auto hide the header which is having the position fixed and top : 0 and width of 40 px, i wanted auto hide the header mentioned above by scrolling down and again by showing the header upon scrolling back up. i want to know the code for angular js , in order to manipulate the header. using $window to fetch the scroll function . could someone help me out with that