.csstransitions.csstransforms { overflow-x: hidden; } .csstransitions.csstransforms .deck-container > .slide { -webkit-transition: -webkit-transform 500ms ease-in-out; transition: transform 500ms ease-in-out; } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide { position: absolute; top: 0; left: 0; } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .slide { position: relative; left: 0; top: 0; -webkit-transition: -webkit-transform 500ms ease-in-out, opacity 500ms ease-in-out; transition: transform 500ms ease-in-out, opacity 500ms ease-in-out; } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-next, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .slide .deck-after { visibility: visible; -webkit-transform: translate3d(200%, 0, 0); -ms-transform: translate(200%, 0); transform: translate3d(200%, 0, 0); } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous { -webkit-transform: translate3d(-200%, 0, 0); -ms-transform: translate(-200%, 0); transform: translate3d(-200%, 0, 0); } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before { -webkit-transform: translate3d(-400%, 0, 0); -ms-transform: translate(-400%, 0); transform: translate3d(-400%, 0, 0); } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-next { -webkit-transform: translate3d(200%, 0, 0); -ms-transform: translate(200%, 0); transform: translate3d(200%, 0, 0); } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-after { -webkit-transform: translate3d(400%, 0, 0); -ms-transform: translate(400%, 0); transform: translate3d(400%, 0, 0); } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-before .slide, .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-previous .slide { visibility: visible; } .csstransitions.csstransforms .deck-container:not(.deck-menu) > .deck-child-current { -webkit-transform: none; -ms-transform: none; transform: none; }