Skip to content

Commit

Permalink
Add creditos e animacao mais lenta nas imagens
Browse files Browse the repository at this point in the history
  • Loading branch information
felquis committed Mar 31, 2012
1 parent 09e0f16 commit 28d817e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
37 changes: 28 additions & 9 deletions wall3dparallax/index.html
Expand Up @@ -18,14 +18,14 @@
#wall {
display: block;
width:1000px;
margin: 100px auto 0
margin: 100px auto 0;
position: relative;
}
.brick{
background-color: #fff;
width:100px;
height:150px;
float: left;
position: relative;
margin: 5px;
background:url(http://dev.codeanywhere.net/107/02f2736173098138e657658095f638f0/loading-img.gif.gif) center no-repeat;
z-index:5
Expand All @@ -34,18 +34,32 @@
-moz-transform: translate(-200px, -200px) perspective(600px) rotateY(360deg);
-webkit-transform: translate(-200px, -200px) perspective(600px) rotateY(360deg);
width:400%;
height:400%
height:400%;
position: absolute;
}
.brick img{
width: 100%;
opacity: 0;
-moz-transform: translate(0px, 0px) perspective(600px) rotateY(0deg);
-webkit-transform: translate(0px, 0px) perspective(600px) rotateY(0deg);
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out
-webkit-transition: all 1s ease-in-out;
-moz-transition: all 1s ease-in-out;
-o-transition: all 1s ease-in-out;
-ms-transition: all 1s ease-in-out;
transition: all 1s ease-in-out
}
footer {
color:white;
display: block;
clear: both;
position: relative;
}
footer a {
color:red;
text-decoration:none;
}
footer a:hover {
text-decoration:underline;
}
</style>
</head>
Expand Down Expand Up @@ -80,7 +94,12 @@
<div class="brick"><img src="http://lorempixel.com/400/500/people/6/" alt=""></div>
<div class="brick"><img src="http://lorempixel.com/400/500/people/7/" alt=""></div>
</section>

<footer>
Images by lorempixum <br />
GitHub <a href="http://j.mp/H56s1C">Wall3DParallax</a> <br />
Twitter <a href="http://j.mp/GZVG95">@felquis</a><br />
Blog <a href="http://j.mp/iL8pxY">TutsMais</a>
</footer>
<script src="script.js" defer></script>
</body>
</html>
3 changes: 2 additions & 1 deletion wall3dparallax/script.js
@@ -1,5 +1,5 @@
/*
By : Ofelquis
By Ofelquis
Twitter: @felquis
Blog : tutsmais.com.br
*/
Expand Down Expand Up @@ -74,6 +74,7 @@ var $imgs = $doc.querySelectorAll('img'),

elem.className = 'brick lol';
elem.parentNode.style.zIndex = 10;
console.log(returnPosition(elem));
} else {
elem.className = 'brick';
elem.parentNode.style.zIndex = 5;
Expand Down

0 comments on commit 28d817e

Please sign in to comment.