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

General Discussion

Side Bar of this Site

The side bar to the left of this website is just fantastic. The opening and closing animation and the icons themselves are just really pleasing to the yes.

I was wondering how to make it. I'm not even sure what coding it is to make it open and close the way it is.

If anyone has a DIY/ tutorials or any information on how to create something like that, that would be awesome!

Thank you!

2 Answers

You could reverse engineer the code with your developer tools. :)

Which languages does the bar use? Javascript?

HTML for structure, CSS for layout and presentation, and JS to add classes to the HTML, that trigger different CSS rules to apply or not apply.

It's adding a class called "shelf-open" to the a element.