Nivo Lightbox

Size
3,584 Kb
Views
16,192

How do I make an nivo lightbox?

What is a nivo lightbox? How do you make a nivo lightbox? This script and codes were developed by Brendan Skousen on 09 December 2022, Friday.

Nivo Lightbox Previews

Nivo Lightbox - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Nivo Lightbox</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <a title="This is an image title" href="http://placehold.it/1000x500" data-lightbox-gallery="gallery1">
<img alt="" src="http://placehold.it/150x150" />
</a>
<a title="This is an image title" href="http://placehold.it/1000x500" data-lightbox-gallery="gallery2">
<img src="http://placehold.it/150x150" alt="Testing" />
</a>
<a title="This is an image title" href="http://placehold.it/1000x500" data-lightbox-gallery="gallery3">
<img alt="" src="http://placehold.it/150x150" />
</a>
<a title="This is an image title" href="http://placehold.it/1000x500" data-lightbox-gallery="gallery4">
<img alt="" src="http://placehold.it/150x150" />
</a>
<a title="This is an image title" href="http://placehold.it/1000x500" data-lightbox-gallery="gallery5">
<img src="http://placehold.it/150x150" alt="Testing" />
</a>
<a title="This is an image title" href="http://placehold.it/1000x500" data-lightbox-gallery="gallery6">
<img alt="" src="http://placehold.it/150x150" />
</a> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://vozpc.com/uploads/nivo-lightbox.min.txt'></script> <script src="js/index.js"></script>
</body>
</html>

Nivo Lightbox - Script Codes CSS Codes

.nivo-lightbox-overlay {	position: fixed;	top: 0;	left: 0;	z-index: 99998;	width: 100%;	height: 100%;	overflow: hidden;	visibility: hidden;	opacity: 0;	-webkit-box-sizing: border-box;	-moz-box-sizing: border-box;	box-sizing: border-box;
}
.nivo-lightbox-overlay.nivo-lightbox-open {	visibility: visible;	opacity: 1;
}
.nivo-lightbox-wrap {	position: absolute;	top: 10%;	bottom: 10%;	left: 10%;	right: 10%;
}
.nivo-lightbox-content {	width: 1050px; /*Make 50px wider than image*/	height: 100%; margin: auto;
}
.nivo-lightbox-title-wrap {	position: absolute;	bottom: 0;	left: 0;	width: 100%;	z-index: 99999;	text-align: center;
}
.nivo-lightbox-nav { display: none; }
.nivo-lightbox-prev {	position: absolute;	top: 50%;	left: 0;
}
.nivo-lightbox-next {	position: absolute;	top: 50%;	right: 0;
}
.nivo-lightbox-close {	position: absolute;	top: 2%;	right: 2%;
}
.nivo-lightbox-image { text-align: center; }
.nivo-lightbox-image img {	max-width: 100%;	max-height: 100%;	width: auto;	height: auto;	vertical-align: middle;
}
.nivo-lightbox-content iframe {	width: 100%;	height: 100%;
}
.nivo-lightbox-ajax {	max-height: 100%;	overflow: auto;	-webkit-box-sizing: border-box;	-moz-box-sizing: border-box;	box-sizing: border-box;	/* https://bugzilla.mozilla.org/show_bug.cgi?id=308801 */
}
.nivo-lightbox-error {	display: table;	text-align: center;	width: 100%;	height: 100%;	color: #fff;	text-shadow: 0 1px 1px #000;
}
.nivo-lightbox-error p {	display: table-cell;	vertical-align: middle;
}
/* Effects **********************************************/
.nivo-lightbox-effect-fade,
.nivo-lightbox-effect-fadeScale,
.nivo-lightbox-effect-slideLeft,
.nivo-lightbox-effect-slideRight,
.nivo-lightbox-effect-slideUp,
.nivo-lightbox-effect-slideDown,
.nivo-lightbox-effect-fall {	-webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -ms-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
}
/* fadeScale */
.nivo-lightbox-effect-fadeScale .nivo-lightbox-wrap {	-webkit-transition: all 0.3s; -moz-transition: all 0.3s; -ms-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s;	-webkit-transform: scale(0.7); -moz-transform: scale(0.7); -ms-transform: scale(0.7); transform: scale(0.7);
}
.nivo-lightbox-effect-fadeScale.nivo-lightbox-open .nivo-lightbox-wrap {	-webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); transform: scale(1);
}
/* slideLeft / slideRight / slideUp / slideDown */
.nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap,
.nivo-lightbox-effect-slideRight .nivo-lightbox-wrap,
.nivo-lightbox-effect-slideUp .nivo-lightbox-wrap,
.nivo-lightbox-effect-slideDown .nivo-lightbox-wrap {	-webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); -moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); -ms-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); -o-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9); transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
}
.nivo-lightbox-effect-slideLeft .nivo-lightbox-wrap {	-webkit-transform: translateX(-10%); -moz-transform: translateX(-10%); -ms-transform: translateX(-10%); transform: translateX(-10%);
}
.nivo-lightbox-effect-slideRight .nivo-lightbox-wrap {	-webkit-transform: translateX(10%); -moz-transform: translateX(10%); -ms-transform: translateX(10%); transform: translateX(10%);
}
.nivo-lightbox-effect-slideLeft.nivo-lightbox-open .nivo-lightbox-wrap,
.nivo-lightbox-effect-slideRight.nivo-lightbox-open .nivo-lightbox-wrap {	-webkit-transform: translateX(0); -moz-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0);
}
.nivo-lightbox-effect-slideDown .nivo-lightbox-wrap {	-webkit-transform: translateY(-10%); -moz-transform: translateY(-10%); -ms-transform: translateY(-10%); transform: translateY(-10%);
}
.nivo-lightbox-effect-slideUp .nivo-lightbox-wrap {	-webkit-transform: translateY(10%); -moz-transform: translateY(10%); -ms-transform: translateY(10%); transform: translateY(10%);
}
.nivo-lightbox-effect-slideUp.nivo-lightbox-open .nivo-lightbox-wrap,
.nivo-lightbox-effect-slideDown.nivo-lightbox-open .nivo-lightbox-wrap {	-webkit-transform: translateY(0); -moz-transform: translateY(0); -ms-transform: translateY(0); transform: translateY(0);
}
/* fall */
.nivo-lightbox-body-effect-fall .nivo-lightbox-effect-fall {	-webkit-perspective: 1000px; -moz-perspective: 1000px; perspective: 1000px;
}
.nivo-lightbox-effect-fall .nivo-lightbox-wrap {	-webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; -ms-transition: all 0.3s ease-out; -o-transition: all 0.3s ease-out; transition: all 0.3s ease-out;	-webkit-transform: translateZ(300px); -moz-transform: translateZ(300px); -ms-transform: translateZ(300px); transform: translateZ(300px);
}
.nivo-lightbox-effect-fall.nivo-lightbox-open .nivo-lightbox-wrap {	-webkit-transform: translateZ(0); -moz-transform: translateZ(0); -ms-transform: translateZ(0); transform: translateZ(0);
}
.nivo-lightbox-theme-default.nivo-lightbox-overlay {	background: #666;	background: rgba(0,0,0,0.6);
}
.nivo-lightbox-theme-default .nivo-lightbox-content.nivo-lightbox-loading { background: url(http://vozpc.com/uploads/loading.gif) no-repeat 50% 50%; }
.nivo-lightbox-theme-default .nivo-lightbox-nav {	top: 10%;	width: 8%;	height: 80%;	text-indent: -9999px;	background-repeat: no-repeat;	background-position: 50% 50%;	opacity: 0.5;
}
.nivo-lightbox-theme-default .nivo-lightbox-nav:hover {	opacity: 1;	background-color: rgba(0,0,0,0.5);
}
.nivo-lightbox-theme-default .nivo-lightbox-prev {	background-image: url(http://vozpc.com/uploads/prev.png);	border-radius: 0 3px 3px 0;
}
.nivo-lightbox-theme-default .nivo-lightbox-next {	background-image: url(http://vozpc.com/uploads/next.png);	border-radius: 3px 0 0 3px;
}
.nivo-lightbox-theme-default .nivo-lightbox-close {	display: block;	background: url(http://vozpc.com/uploads/close.png) no-repeat 5px 5px;	width: 16px;	height: 16px;	text-indent: -9999px;	padding: 5px;	opacity: 0.5;
}
.nivo-lightbox-theme-default .nivo-lightbox-close:hover { opacity: 1; }
.nivo-lightbox-theme-default .nivo-lightbox-title-wrap { bottom: -7%; }
.nivo-lightbox-theme-default .nivo-lightbox-title {	font: 14px/20px 'Helvetica Neue', Helvetica, Arial, sans-serif;	font-style: normal;	font-weight: normal;	background: #000;	color: #fff;	padding: 7px 15px;	border-radius: 30px;
}
.nivo-lightbox-theme-default .nivo-lightbox-image img {	background: #fff;	-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.4); -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.4); box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
}
.nivo-lightbox-theme-default .nivo-lightbox-ajax,
.nivo-lightbox-theme-default .nivo-lightbox-inline {	background: #fff;	padding: 40px;	-webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.4); -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.4); box-shadow: 0px 1px 1px rgba(0,0,0,0.4);
}
@media (-webkit-min-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6/2), (min--moz-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx) {	.nivo-lightbox-theme-default .nivo-lightbox-content.nivo-lightbox-loading {	background-image: url(http://vozpc.com/uploads/[email protected]);	background-size: 32px 32px;	}	.nivo-lightbox-theme-default .nivo-lightbox-prev {	background-image: url(http://vozpc.com/uploads/[email protected]);	background-size: 48px 48px;	}	.nivo-lightbox-theme-default .nivo-lightbox-next {	background-image: url(http://vozpc.com/uploads/[email protected]);	background-size: 48px 48px;	}	.nivo-lightbox-theme-default .nivo-lightbox-close {	background-image: url(http://vozpc.com/uploads/[email protected]);	background-size: 16px 16px;	}
}

Nivo Lightbox - Script Codes JS Codes

$('a').nivoLightbox({ effect: 'fade', // The effect to use when showing the lightbox theme: 'default', // The lightbox theme to use keyboardNav: true, // Enable/Disable keyboard nav onInit: function(){},// Callback when lightbox has loaded beforeShowLightbox: function(){}, // Callback before shown afterShowLightbox: function(lightbox){},// Callback after shown beforeHideLightbox: function(){}, // Callback before hidden afterHideLightbox: function(){}, // Callback after hidden onPrev: function(element){}, // Callback when gallery goes to prev item onNext: function(element){}, // Callback when gallery goes to next errorMessage: 'The requested content cannot be loaded. Please try again later.' // Error message when content can't be loaded
});
Nivo Lightbox - Script Codes
Nivo Lightbox - Script Codes
Home Page Home
Developer Brendan Skousen
Username bskousen
Uploaded December 09, 2022
Rating 3
Size 3,584 Kb
Views 16,192
Do you need developer help for Nivo Lightbox?

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!

Brendan Skousen (bskousen) Script Codes
Create amazing art & images with AI!

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!