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
Bonnie Martin
13,671 PointsDoes jQuery have packages for things like lightboxes?
I'm wondering if jQuery has pre-made "packages" or code snippets that would accomplish common projects like lightboxes, so that you don't have to code all the individual things.
So for example of an image lightbox, instead of needing to specify a mouse click, which then triggers a bigger image in a box, is there a jQuery thing that does that all together?
It just seems like this kind of thing is so often used that there shouldn't be any need to code it over and over again.
I guess it would be similar to a "plugin" but lighter than that. I hope that makes sense ;)
(Also this question was supposed to be associated with this video: https://teamtreehouse.com/community/video:7872 but I don't think it was put in that section.)
3 Answers
rydavim
18,814 PointsCSS Tricks has a section with jQuery code snippets. Although they don't specifically include a lightbox, they do have an overlay snippet.
jQuery Rain also has a snippets section, although I'm less familiar with that site and cannot vouch for how well maintained or up to date it is.
If you're looking for a particular bit of code, phrasing like 'jquery snippet [x]' into a search engine should help you find what you're looking for.
Hopefully that helps, happy coding! :)
Bonnie Martin
13,671 PointsThanks to both of you. I just meant like a library snippets in general that would take care of common problems. So it sounds like the answer is generally no but sometimes you can find what you want if you dig around.