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
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,625 PointsjQuery: 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
jason chan
31,009 PointsTutorial for arrows
https://youtu.be/Q6axUZJQtKg?list=PLHPcpp4e3JVpXbtgyD-k-nCmwpbbMIHOh
For left and right on keyboard
http://stackoverflow.com/questions/4104158/jquery-keypress-left-right-navigation
jason chan
31,009 PointsNo problem. :)
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,625 PointsJuliette Tworsey
Front End Web Development Techdegree Graduate 32,625 PointsThanks so much for these links Jason!