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
Paul Roberts
7,928 PointsjQuery: Nav height increase on scroll
Hey there!
I'm really bad at jQuery so was wondering if someone could help.
Here is my jsfiddle:
It works! But how do I make this size increase smooth? The nav height jumps from small to big at the moment :(
1 Answer
Sam Hermes
20,862 PointsYou could add a CSS transition to the .nav element, such as
.nav {
transition: height 1s ease;
}