effet realisations

This commit is contained in:
Nicolas Bally 2014-08-22 12:09:26 +02:00
parent 392a15bf19
commit 8d2d542ba2
3 changed files with 8 additions and 5 deletions

View File

@ -244,7 +244,9 @@ $("document").ready ->
$("#logo-min").fadeOut()
if top > ($("#realisations").offset().top - $(window).height() / 2)
#alert "te"
$("#realisations #rea-gal").animate({left:0,opacity : 1}, 800, "swing")

View File

@ -210,6 +210,7 @@ width:560px;
}
#main{
position:absolute;
z-index:2;
width:100%;
.center{
margin:auto;
@ -354,7 +355,7 @@ background:rgba(132,187,64,1);
background:rgba(0,0,0,0.9);
text-align:right;
font-family:Lato;
font-weight:200;
font-weight:300;
text-decoration:none;
position:relative;
z-index:4;

View File

@ -262,11 +262,11 @@
</script>
#realisations
#realisations{:style => "overflow:auto;"}
%h2 Exemples de réalisations
#rea-gal
#rea-gal{:style => "position:relative;opacity:0"}
-(1..10).each do |i|
=link_to image_tag("/realisation/#{i}-p.jpg"), "/realisation/#{i}.jpg", :data => {:title => "test",:lightbox => "image-1"}
.clear