You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been developing a website as a personal project and have included your wonderful lightbox within to offer the great functionality it provides and while implementing an image gallery I thought about a possible improvement or addition that could be made to the simple lightbox.
I've noticed that some photographers and people who host images on portfolio's etc like to have a title and a description associated with a photograph or image and displayed inside the caption so they can display a creative name for the photo/image as the title and use the description to add extra detail like where it was taken or who is featured in the shot. The title and description for a photo/image would then be contained within the 'title' and 'alt' attributes respectively inside the 'img' element although there is no reason the information could not be held within data attributes instead. Assuming classes were then added to both the title and description inside the caption they could then be styled appropriately to suit the users requirements.
I don't know if you feel this functionality would be useful to have or whether it would add a level of complexity that would take away the simplicity of the lightbox but I thought I would share my thoughts and suggestion.
Thank you for reading,
Daniel.
The text was updated successfully, but these errors were encountered:
I've been developing a website as a personal project and have included your wonderful lightbox within to offer the great functionality it provides and while implementing an image gallery I thought about a possible improvement or addition that could be made to the simple lightbox.
I've noticed that some photographers and people who host images on portfolio's etc like to have a title and a description associated with a photograph or image and displayed inside the caption so they can display a creative name for the photo/image as the title and use the description to add extra detail like where it was taken or who is featured in the shot. The title and description for a photo/image would then be contained within the 'title' and 'alt' attributes respectively inside the 'img' element although there is no reason the information could not be held within data attributes instead. Assuming classes were then added to both the title and description inside the caption they could then be styled appropriately to suit the users requirements.
I don't know if you feel this functionality would be useful to have or whether it would add a level of complexity that would take away the simplicity of the lightbox but I thought I would share my thoughts and suggestion.
Thank you for reading,
Daniel.
The text was updated successfully, but these errors were encountered: