Photo Gallery Web Layout
Posted: Mon Apr 25, 2011 1:34 am
The background was made in Gimp. Everything else was done in code, besides the images in the divs, and thoughs you can change yourself.
Also feel free to adjust the CSS however you want, like positioning adding more than 10 images, etc:
NOTE: If you want to takeout the fade in animation you need to takout these codes inside the style.css file.
The code below is located in div.
Code: Select all
The code below is located in galleryline.
-webkit-animation-name:fade-in;
-webkit-animation-duration:2s;
-webkit-animation-timing-function:ease-in;
-webkit-animation-iteration-count:1;
Code: Select all
Also on the very top of the CSS document you'll need to remove this code,
-webkit-animation-name:fade-in;
-webkit-animation-duration:1s;
-webkit-animation-timing-function:ease-in;
-webkit-animation-iteration-count:1;
Code: Select all
Now if you want all the divs to fade in, but your browser doesn't support it, just put down the following code inside <script type="text/javascript"> (which is located in index.html) which is where the JQuery code below will go.
@-webkit-keyframes fade-in {
0% {
opacity: 0;}
50% {
opacity: 5;}
100% {
opacity: 1;}}
Code: Select all
$(document).ready(function() {
$( "div" ).hide();
$("div").fadeIn(1000);
});