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

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,625 Points

jQuery: How to make prev/next arrows and keydown() keyboard nav functional for gallery lightbox overlay

Hi,

I am working on a project for a photo (lightbox) gallery without using a plugin and I am trying to get my prev/next arrows to filter through the images in the gallery/overlay. I am also attempting to create keyboard navigation via the keydown() method. I feel like I am close, but I have been unable to find a solution.

Can anyone see what I am doing wrong? Or am I missing something?

Here is my project:

http://firebuggirl.github.io/lightgallery/

Thanks in advance!

2 Answers

No problem. :)