Gallery image deck

Developer
Size
2,396 Kb
Views
28,336

How do I make an gallery image deck?

What is a gallery image deck? How do you make a gallery image deck? This script and codes were developed by Nick Nikolov on 17 October 2022, Monday.

Gallery image deck Previews

Gallery image deck - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Gallery image deck</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .cards { position: relative; height: 200px; width: 200px; float: left; margin: 20px;
}
.cards:hover { z-index: 1000;
}
.card { display: block; position: absolute; top: 0px; left: 0px; width: 200px; height: 200px; background: #fff; transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; /* Firefox 4 */ -webkit-transition: all 0.3s ease-in-out; /* Safari and Chrome */ -o-transition: all 0.3s ease-in-out; /* Opera */ /* border:1px solid #ddd; border-bottom: 1px solid #aaa;*/ overflow: hidden; padding: 10px; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 5px;
}
.card:nth-child(2) { height: 194px; width: 194px; top: 3px; left: 8px;
}
.card:nth-child(1) { height: 188px; width: 188px; top: 6px; left: 16px;
}
.card:nth-child(3) {}
.cards:hover .card { width: 200px; height: 200px;
}
.cards:hover .card:nth-child(1) { left: 60px; transform: rotate(5deg); -ms-transform: rotate(5deg); /* IE 9 */ -moz-transform: rotate(5deg); /* Firefox */ -webkit-transform: rotate(5deg); /* Safari and Chrome */ -o-transform: rotate(5deg); /* Opera */
}
.cards:hover .card:nth-child(2) {}
.cards:hover .card:nth-child(3) { left: -60px; transform: rotate(-5deg); -ms-transform: rotate(-5deg); /* IE 9 */ -moz-transform: rotate(-5deg); /* Firefox */ -webkit-transform: rotate(-5deg); /* Safari and Chrome */ -o-transform: rotate(-5deg); /* Opera */
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="cards"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=1"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=2"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=3">
</div>
<div class="cards"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=2"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=3"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=1">
</div>
<div class="cards"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=3"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=1"> <img class="card" alt=":)" src="http://placekitten.com/200/200?image=2">
</div>
</body>
</html>

Gallery image deck - Script Codes CSS Codes

.cards { position: relative; height: 200px; width: 200px; float: left; margin: 20px;
}
.cards:hover { z-index: 1000;
}
.card { display: block; position: absolute; top: 0px; left: 0px; width: 200px; height: 200px; background: #fff; transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; /* Firefox 4 */ -webkit-transition: all 0.3s ease-in-out; /* Safari and Chrome */ -o-transition: all 0.3s ease-in-out; /* Opera */ /* border:1px solid #ddd; border-bottom: 1px solid #aaa;*/ overflow: hidden; padding: 10px; box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 5px;
}
.card:nth-child(2) { height: 194px; width: 194px; top: 3px; left: 8px;
}
.card:nth-child(1) { height: 188px; width: 188px; top: 6px; left: 16px;
}
.card:nth-child(3) {}
.cards:hover .card { width: 200px; height: 200px;
}
.cards:hover .card:nth-child(1) { left: 60px; transform: rotate(5deg); -ms-transform: rotate(5deg); /* IE 9 */ -moz-transform: rotate(5deg); /* Firefox */ -webkit-transform: rotate(5deg); /* Safari and Chrome */ -o-transform: rotate(5deg); /* Opera */
}
.cards:hover .card:nth-child(2) {}
.cards:hover .card:nth-child(3) { left: -60px; transform: rotate(-5deg); -ms-transform: rotate(-5deg); /* IE 9 */ -moz-transform: rotate(-5deg); /* Firefox */ -webkit-transform: rotate(-5deg); /* Safari and Chrome */ -o-transform: rotate(-5deg); /* Opera */
}
Gallery image deck - Script Codes
Gallery image deck - Script Codes
Home Page Home
Developer Nick Nikolov
Username necks
Uploaded October 17, 2022
Rating 3
Size 2,396 Kb
Views 28,336
Do you need developer help for Gallery image deck?

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!

Nick Nikolov (necks) Script Codes
Create amazing captions 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!