glarios / fbPhotoStream

jQuery plugin that allows you to pull Facebook photos from a public album.
1 stars 4 forks source link

Add lightbox function #2

Open schroef opened 8 years ago

schroef commented 8 years ago

Is it possible to add a lightbox function instead of the link to a new page?

qroft commented 7 years ago

Hi Schroef, i have not tried it out but the least thing you can do is a setTimeout function that adds a new class to the images. In Detail: once that the photos are loaded an running (you could create a Jquery event that checks if the parent element contains at least X childrens) you add the class "lightbox" to each child-element. At the same time add a prepend and append href tag to each child via Jquery so that it creates a link. I think that should work.