Css lightbox experiment
How do I make an css lightbox experiment?
Visit: http://fivera.net/css-only-image-lightbox-zoom-editable-css-example/original by By Johnny Simpson http://www.inserthtml.com/. What is a css lightbox experiment? How do you make a css lightbox experiment? This script and codes were developed by Fivera on 31 January 2023, Tuesday.
Css lightbox experiment - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>css lightbox experiment</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="images-box"> <div class="holder"> <div id="image-1" class="image-lightbox"> <span class="close"><a href="#">X</a></span> <img src="http://fivera.net/wp-content/uploads/2013/12/earth.jpg" > <a class="expand" href="#image-1"></a> </div> </div>
</body>
</html>
Css lightbox experiment - Script Codes CSS Codes
body { background: #303335;
}
#images-box { /* The total width of the image-box, mainly for centering */ position: relative; top: 15px;
}
.image-lightbox img { /* Inherit the width and height from the parent element */ width: inherit; height: inherit;
}
.holder { /* The width and height, you can change these */ width: 250px; height: 166px; /* Float left, so everything aligns right */ float: left; margin: 0 0px 0 0;
}
.image-lightbox { /* Inherit width and height from the .holder */ width: inherit; height: inherit; padding: 10px; /* Box shadow */ box-shadow: 0px 0px 10px rgba(0,0,0,0.1); background: #fff; border-radius: 5px; /* Position absolutely so we can zoom it out later */ position: absolute; top: 0; font-family: Arial, sans-serif; /* Transitions to provide some eye candy */ -webkit-transition: all ease-in 0.5s; -moz-transition: all ease-in 0.5s; -ms-transition: all ease-in 0.5s; -o-transition: all ease-in 0.5s;
}
.image-lightbox span { display: none;
}
.image-lightbox .expand { width: 100%; height: 100%; position: absolute; top: 0; left: 0;
}
.image-lightbox .close { position: absolute; width: 20px; height: 20px; right: 20px; top: 20px;
}
.image-lightbox .close a { height: auto; width: auto; padding: 5px 10px; color: #fff; text-decoration: none; background: #22272c; box-shadow: inset 0px 24px 20px -15px rgba(255, 255, 255, 0.1), inset 0px 0px 10px rgba(0,0,0,0.4), 0px 0px 30px rgba(255,255,255,0.4); border-radius: 5px; font-weight: bold; float: right;
}
.close a:hover { box-shadow: inset 0px -24px 20px -15px rgba(255, 255, 255, 0.01), inset 0px 0px 10px rgba(0,0,0,0.4), 0px 0px 20px rgba(255,255,255,0.4);
}
div[id^=image]:target { width: 450px; height: 300px; z-index: 5000; top: 1px; left: 25px;
}
div[id^=image]:target .close { display: block;
}
div[id^=image]:target .expand { display: none;
}
Developer | Fivera |
Username | fivera |
Uploaded | January 31, 2023 |
Rating | 3 |
Size | 2,247 Kb |
Views | 2,024 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
A Pen by Fivera | 2,454 Kb |
Css3 buttons | 6,911 Kb |
Paper text area | 2,064 Kb |
Mac style Doc menu by fivera.net | 2,376 Kb |
Css image viewer | 2,054 Kb |
Social example 3 | 2,173 Kb |
Shrink | 1,490 Kb |
Rotate | 1,508 Kb |
Webkit brithness | 1,493 Kb |
Webkits blur | 1,486 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Jochaho Skeleton | Dhanushbadge | 1,689 Kb |
Classy Blockquote Styling | Andrewwright | 3,212 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
Image grid with captions | Mchernin34 | 2,222 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
Draggable directive | YahyaKacem | 2,277 Kb |
Wikipedia Viewer | Codinger | 4,681 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Fixed Scrolling Nav Bar | Philsinatra | 0 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!