function load_realisations() {\r
initTagsLink();\r
\r
+ $("#main").css('height', 1500);\r
+ \r
$(".bloc").click( function () {\r
\r
var currentRea = $(this).attr("data-pos");\r
\r
$("html, body").animate({ scrollTop: $('#detailContent').offset().top-100 }, 1000);\r
$('.close').css("top", $('#detailContent').offset().top);\r
- \r
+ /*\r
$( "#detail" ).slideDown( "slow", function() {\r
\r
isAnim = false;\r
}).animate(\r
{ opacity: 1 },\r
{ queue: true, duration: 'slow' }\r
- );\r
+ );*/\r
+ \r
+ \r
+ $( "#detail" ).addClass("showDown");\r
+ $('#detail').one("webkitTransitionEnd transitionend oTransitionEnd msTransitionEnd transitionEnd", function(e) {\r
+ isAnim = false;\r
+ addCloseAction();\r
+ currentSlide = 1;\r
+ autoSlide = true;\r
+ initSlideShow();\r
+ }); \r
+ \r
}\r
\r
- $(".project-photo").each( function() {\r
+ /*$(".project-photo").each( function() {\r
var id = $(this).parent().attr("data-pos");\r
if( id != currentRea ) {\r
$(this).addClass("gray");\r
}else{\r
$(this).removeClass("gray");\r
}\r
- });\r
+ });*/\r
}\r
\r
});\r
\r
function addCloseAction() {\r
$(".close").click(function() {\r
- //$("html, body").animate({ scrollTop: 0 }, 1000);\r
- $( "#detail" ).slideUp( "slow", function() {\r
+ $("html, body").animate({ scrollTop: 0 }, 1000);\r
+ \r
+ /* $( "#detail" ).slideUp( "slow", function() {\r
$('#detailContent').remove();\r
currentOpen = 0;\r
$(".project-photo").each( function() {\r
}).animate(\r
{ opacity: 1 },\r
{ queue: false, duration: 'slow' }\r
- );\r
+ );*/\r
+ \r
+ $( "#detail" ).addClass("showUp");\r
+ $('#detail').one("webkitTransitionEnd transitionend oTransitionEnd msTransitionEnd transitionEnd", function(e) {\r
+ currentOpen = 0;\r
+ $(".project-photo").each( function() {\r
+ $(this).removeClass("gray");\r
+ });\r
+ });\r
+ \r
});\r
}\r
\r
height:440px;
clear: both;
display:none;
- margin-bottom: 15px;
- width:10000px;
+ margin-bottom: 15px;
+ width:10000px;
white-space: nowrap;
- -webkit-transform: translate3d(0,0,0);
- -webkit-backface-visibility: hidden;
- -webkit-perspective: 1000;
- transform: translate3d(0,0,0);
- }
+ transition: all .5s;
+ }
+
+ .showUp {
+ height:0px !important;
+ overflow:hidden;
+ opacity: 0;
+ }
+
+ .showDown {
+ height:440px !important;
+ opacity: 1;
+ }
#detailContent {
overflow: visible;