Simple gallery
How do I make an simple gallery?
Simple gallery with smooth animated hover effects on them using jquery.. What is a simple gallery? How do you make a simple gallery? This script and codes were developed by Sander on 18 December 2022, Sunday.
Simple gallery - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple gallery</title> <link rel='stylesheet prefetch' href='https://meyerweb.com/eric/tools/css/reset/reset200802.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <div class="galleryItem"> <!-- <img src="http://www.sanderkeurentjes.nl/codepen/img/afb-01-300x300.jpg" /> --> <div class="fakeImage red"> HTML </div> <div class="galleryOverlay"> <h2 class="galleryItemTitel">Item #1</h2> <p class="">Authoritatively develop front-end e-business with top-line mindshare. Progressively predominate 2.0.</p> </div> </div> <div class="galleryItem"> <!-- <img src="http://www.sanderkeurentjes.nl/codepen/img/afb-02-300x300.jpg" /> --> <div class="fakeImage blue"> CSS </div> <div class="galleryOverlay"> <h2 class="galleryItemTitel">Item #2</h2> <p class="galleryItemIntro">Conveniently seize goal-oriented testing procedures rather than future-proof interfaces.</p> </div> </div> <div class="galleryItem"> <!-- <img src="http://www.sanderkeurentjes.nl/codepen/img/afb-03-300x300.jpg" /> --> <div class="fakeImage green"> jQuery </div> <div class="galleryOverlay"> <h2 class="galleryItemTitel">Item #3</h2> <p class="galleryItemIntro">Rapidiously morph long-term high-impact e-commerce for high standards in niches.</p> </div> </div> <div class="clear"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Simple gallery - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300);
* { margin: 0; padding: 0;
}
body { background: #f0f0f0; font-family: 'Roboto Slab', serif; font-size: 16px; line-height: 26px;
}
.wrapper { width: 920px; padding: 10px; margin: 20px auto; background: #e0e0e0;
}
.galleryItem { float: left; width: 300px; height: 300px; margin-left: 10px; overflow: hidden; cursor: pointer;
}
.galleryItem:first-child { margin-left: 0;
}
.fakeImage { width: 300px; height: 300px; font-size: 60px; font-weight: 800; text-align: center; text-transform: uppercase; line-height: 280px; color: rgba(0, 0, 0, 0.2); background: #CCC;
}
.red { background: #8942d6; /* Old browsers */ background: -moz-radial-gradient(center, ellipse cover, #8942d6 0%, #5a0dac 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#8942d6), color-stop(100%,#5a0dac)); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, #8942d6 0%,#5a0dac 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, #8942d6 0%,#5a0dac 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, #8942d6 0%,#5a0dac 100%); /* IE10+ */ background: radial-gradient(ellipse at center, #8942d6 0%,#5a0dac 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8942d6', endColorstr='#5a0dac',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.blue { background: #3aaacf; /* Old browsers */ background: -moz-radial-gradient(center, ellipse cover, #3aaacf 0%, #06799f 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#3aaacf), color-stop(100%,#06799f)); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, #3aaacf 0%,#06799f 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, #3aaacf 0%,#06799f 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, #3aaacf 0%,#06799f 100%); /* IE10+ */ background: radial-gradient(ellipse at center, #3aaacf 0%,#06799f 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3aaacf', endColorstr='#06799f',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.green { background: #66CC33; background: #61d7a4; /* Old browsers */ background: -moz-radial-gradient(center, ellipse cover, #61d7a4 0%, #218359 100%); /* FF3.6+ */ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#61d7a4), color-stop(100%,#218359)); /* Chrome,Safari4+ */ background: -webkit-radial-gradient(center, ellipse cover, #61d7a4 0%,#218359 100%); /* Chrome10+,Safari5.1+ */ background: -o-radial-gradient(center, ellipse cover, #61d7a4 0%,#218359 100%); /* Opera 12+ */ background: -ms-radial-gradient(center, ellipse cover, #61d7a4 0%,#218359 100%); /* IE10+ */ background: radial-gradient(ellipse at center, #61d7a4 0%,#218359 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#61d7a4', endColorstr='#218359',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.galleryOverlay { position: absolute; width: 280px; height: 30px; padding: 10px; margin-top: -50px; color: #666; background: #FFF; overflow: hidden; z-index: 10; -webkit-box-shadow: 0 -6px 6px -6px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 -6px 6px -6px rgba(0, 0, 0, 0.5); box-shadow: 0 -6px 6px -6px rgba(0, 0, 0, 0.5);
}
.galleryItemTitel { display: block; height: 40px; font-size: 22px; line-height: 30px; color: #000;
}
.clear { clear: both;
}
Simple gallery - Script Codes JS Codes
$(".galleryItem").mouseenter(function() { var thisoverlay = $(this).find('.galleryOverlay'); thisoverlay.stop(true, true).animate({ height: '200', marginTop: '-220px' });
});
$(".galleryItem").mouseleave(function() { var thisoverlay = $(this).find('.galleryOverlay'); thisoverlay.stop(true, true).animate({ height: '30', marginTop: '-50px' });
});
Developer | Sander |
Username | skeurentjes |
Uploaded | December 18, 2022 |
Rating | 4 |
Size | 3,050 Kb |
Views | 10,120 |
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 |
Dropdown navigation | 3,158 Kb |
Spinning loader | 2,038 Kb |
Button hover effects | 3,642 Kb |
Sidenavigation | 3,421 Kb |
Automatic scroll | 4,042 Kb |
Horizontal navigation | 2,183 Kb |
Card flip | 2,976 Kb |
Text 3d effct | 1,762 Kb |
Search field | 2,280 Kb |
Flexbox layout | 3,615 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 |
Pericles mi loro... | Judag | 4,125 Kb |
Simple Linear Regression with Editable Table | Melatonind | 3,264 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
A Pen by Kenny Mark | Kennymark | 5,574 Kb |
A vuejs widget | Chrgl86 | 2,869 Kb |
Portfolio Page | HuffmanJ25 | 5,240 Kb |
Custom Checkbox and radio inputs SCSS | Rgfx | 3,367 Kb |
Formations | Cantelope | 5,731 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!