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

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

View File

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

View File

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