Question: A javascript lightbox allows us to view full - size images by clicking on image thumbnails. Here's what you'll be building. ( Click on any
A javascript lightbox allows us to view fullsize images by clicking on image thumbnails.
Here's what you'll be building. Click on any of the small images.
Lets create a lightbox gallery using the Luminous Javascript library:
Make a copy of your working index.php file. Call this copy: lightbox.php
Modify lightbox.php to only display your locally stored images.
Remove the links to the photographers Unsplash pages.
Make thumbnail versions of all your images that are pixel wide. Name each thumbnail with thumbnail at the end of the filename.
Example: mountain.jpg becomes mountainthumbnail.jpg
Modify each image such that the thumbnail displayed within a link to the fullsize image. For example:
Add these CDNserved link and script tags to your HTML head element:
Add the following script tag directly above your closing tag:
This step assumes that the CSS selector image a targets all the link tags youve got your images stored within. Modify as required, If you used different HTML from the example.
Check if your gallery looks and acts like the provided example. give me a code for this
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
