transicion cuqui

This commit is contained in:
Sergio 2017-09-26 14:01:06 +02:00
parent 9676f6c88b
commit eb473dc749
11 changed files with 36 additions and 13 deletions

View file

@ -1 +1 @@
p{font-size:12px}.cd-horizontal-timeline .events-content{position:relative}.cd-horizontal-timeline .events-content li{position:absolute;z-index:1;width:100%;left:0;top:0;transform:translateX(-100%);opacity:0;animation-duration:.4s;animation-timing-function:ease-in-out}.cd-horizontal-timeline .events-content li.selected{position:relative;z-index:2;opacity:1;transform:translateX(0)}div.section-container{background-color:white}#timeline{z-index:10;position:absolute;bottom:0;left:0;height:100px;width:100%}#timeline li{display:inline-block}#timeline a{background-color:white}#timeline a.active{background-color:orange}div.menu-content{height:100vh;background-color:white}div.extra-btn-container{position:absolute;left:700px;bottom:200px}a.btn-circle{border-radius:40px}.map-popover{display:none} p{font-size:12px}.cd-horizontal-timeline .events-content{position:relative}.cd-horizontal-timeline .events-content li{position:absolute;z-index:1;width:100%;left:0;top:0;transform:translateX(-100%);opacity:0;animation-duration:.4s;animation-timing-function:ease-in-out}.cd-horizontal-timeline .events-content li.selected{position:relative;z-index:2;opacity:1;transform:translateX(0)}div.section-container{background-color:white}#timeline{z-index:10;position:absolute;bottom:0;left:0;height:100px;width:100%}#timeline li{display:inline-block}#timeline a{background-color:white}#timeline a.active{background-color:orange}div.menu-content{height:100vh;background-color:white}div.extra-btn-container{position:absolute;left:700px;bottom:200px}a.btn-circle{border-radius:40px}.map-popover{display:none}div.section-inner-content div.story-content{transform-style:preserve-3d;transition:all 1s linear;backface-visibility:hidden;position:absolute;top:0;left:0}div.section-inner-content div.data-content{transform-style:preserve-3d;transition:all 1s linear;backface-visibility:hidden;transform:rotateY(180deg);position:absolute;top:0;left:0}

View file

@ -1 +1 @@
{"version":3,"sources":["home.less"],"names":[],"mappings":"AAAA,EACI,eAIJ,uBAAwB,iBACtB,kBAEF,uBAAwB,gBAAgB,IACtC,iBAAA,CACA,SAAA,CACA,UAAA,CACA,MAAA,CACA,KAAA,CACA,UAAW,iBAAX,CACA,SAAA,CACA,sBAAA,CACA,sCAEF,uBAAwB,gBAAgB,GAAE,UAExC,iBAAA,CACA,SAAA,CACA,SAAA,CACA,UAAW,cAEb,GAAG,mBAEC,uBAGJ,UACI,UAAA,CACA,iBAAA,CACA,QAAA,CACA,MAAA,CACA,YAAA,CACA,WANJ,SAOI,IACI,qBARR,SAUI,GACI,uBAXR,SAaI,EAAC,QACG,wBAIR,GAAG,cACC,YAAA,CACA,uBAGJ,GAAG,qBACC,iBAAA,CACA,UAAA,CACA,aAGJ,CAAC,YACG,mBAGJ,aACI"} {"version":3,"sources":["home.less"],"names":[],"mappings":"AAAA,EACI,eAIJ,uBAAwB,iBACtB,kBAEF,uBAAwB,gBAAgB,IACtC,iBAAA,CACA,SAAA,CACA,UAAA,CACA,MAAA,CACA,KAAA,CACA,UAAW,iBAAX,CACA,SAAA,CACA,sBAAA,CACA,sCAEF,uBAAwB,gBAAgB,GAAE,UAExC,iBAAA,CACA,SAAA,CACA,SAAA,CACA,UAAW,cAEb,GAAG,mBAEC,uBAGJ,UACI,UAAA,CACA,iBAAA,CACA,QAAA,CACA,MAAA,CACA,YAAA,CACA,WANJ,SAOI,IACI,qBARR,SAUI,GACI,uBAXR,SAaI,EAAC,QACG,wBAIR,GAAG,cACC,YAAA,CACA,uBAGJ,GAAG,qBACC,iBAAA,CACA,UAAA,CACA,aAGJ,CAAC,YACG,mBAGJ,aACI,aAGJ,GAAG,sBACC,IAAG,eACC,2BAAA,CACA,wBAAA,CACA,0BAAA,CACA,iBAAA,CACA,KAAA,CACA,OAPR,GAAG,sBAUC,IAAG,cACC,2BAAA,CACA,wBAAA,CACA,0BAAA,CACA,UAAW,eAAX,CACA,iBAAA,CACA,KAAA,CACA"}

View file

@ -66,3 +66,26 @@ a.btn-circle{
.map-popover{ .map-popover{
display: none; display: none;
} }
div.section-inner-content{
div.story-content{
transform-style: preserve-3d;
transition: all 1.0s linear;
backface-visibility: hidden;
position:absolute;
top:0;
left:0;
}
div.data-content{
transform-style: preserve-3d;
transition: all 1.0s linear;
backface-visibility: hidden;
transform: rotateY(180deg);
position:absolute;
top:0;
left:0;
}
}

View file

@ -56,13 +56,13 @@ function counterLoading(){
viewStatus="story" viewStatus="story"
} }
if(viewStatus=="story"){ if(viewStatus=="story"){
$('.story-content').show(); $('.story-content').css('transform','rotateY(0)')
$('.data-content').hide(); $('.data-content').css('transform','rotateY(180deg)')
$('.menu-content .switchMode').empty().html("ver datos") $('.menu-content .switchMode').empty().html("ver datos")
} }
else{ else{
$('.story-content').hide(); $('.story-content').css('transform','rotateY(180deg)')
$('.data-content').show(); $('.data-content').css('transform','rotateY(0)')
$('.menu-content .switchMode').empty().html("ver historia") $('.menu-content .switchMode').empty().html("ver historia")
} }
}) })

View file

@ -5,7 +5,7 @@
<div class="story-content"> <div class="story-content">
<img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia--> <img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia-->
</div> </div>
<div class="data-content" style="display:none"> <div class="data-content">
<img src="images/data.png" class="img-responsive" /> <!-- imagen de datos--> <img src="images/data.png" class="img-responsive" /> <!-- imagen de datos-->
</div> </div>
</div> </div>

View file

@ -5,7 +5,7 @@
<div class="story-content"> <div class="story-content">
<img src="images/medialab.jpg" class="img-responsive" /> <img src="images/medialab.jpg" class="img-responsive" />
</div> </div>
<div class="data-content" style="display:none"> <div class="data-content" >
<img src="images/data.png" class="img-responsive" /> <img src="images/data.png" class="img-responsive" />
</div> </div>
</div> </div>

View file

@ -5,7 +5,7 @@
<div class="story-content"> <div class="story-content">
<img src="images/medialab.jpg" class="img-responsive" /> <img src="images/medialab.jpg" class="img-responsive" />
</div> </div>
<div class="data-content" style="display:none"> <div class="data-content" >
<img src="images/data.png" class="img-responsive" /> <img src="images/data.png" class="img-responsive" />
</div> </div>
</div> </div>

View file

@ -5,7 +5,7 @@
<div class="story-content"> <div class="story-content">
<img src="images/c1_IMG_story.png" class="img-responsive" /> <img src="images/c1_IMG_story.png" class="img-responsive" />
</div> </div>
<div class="data-content" style="display:none"> <div class="data-content" >
<img src="images/data.png" class="img-responsive" /> <img src="images/data.png" class="img-responsive" />
</div> </div>
</div> </div>

View file

@ -5,7 +5,7 @@
<div class="story-content"> <div class="story-content">
<img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia--> <img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia-->
</div> </div>
<div class="data-content" style="display:none"> <div class="data-content" >
<img src="images/data.png" class="img-responsive" /> <!-- imagen de datos--> <img src="images/data.png" class="img-responsive" /> <!-- imagen de datos-->
</div> </div>
</div> </div>

View file

@ -5,7 +5,7 @@
<div class="story-content"> <div class="story-content">
<img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia--> <img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia-->
</div> </div>
<div class="data-content" style="display:none"> <div class="data-content" >
<img src="images/data.png" class="img-responsive" /> <!-- imagen de datos--> <img src="images/data.png" class="img-responsive" /> <!-- imagen de datos-->
</div> </div>
</div> </div>

View file

@ -5,7 +5,7 @@
<div class="story-content"> <div class="story-content">
<img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia--> <img src="images/c1_IMG_story.png" class="img-responsive" /> <!-- imagen de historia-->
</div> </div>
<div class="data-content" style="display:none"> <div class="data-content" >
<img src="images/data.png" class="img-responsive" /> <!-- imagen de datos--> <img src="images/data.png" class="img-responsive" /> <!-- imagen de datos-->
</div> </div>
</div> </div>