CSS3 页面跳转的动画效果

从左侧弹出:

var windowWidth = window.innerWidth;
$(atlas_list).css({ "transition":"none","-webkit-transition":"none","transform": "translate3d(" + (windowWidth) + "px,0,0)" });
      window.setTimeout(function(){
        $(atlas_list).css({ "transition":"all 0.5s ease","-webkit-transition":"all 0.5s ease","transform": "translate3d(0,0,0)" });
      },5);

点击之后消失:

$(atlas_list).css({ "transition":"all 0.5s ease","-webkit-transition":"all 0.5s ease","transform": "translate3d(" + (windowWidth) + "px,0,0)" });
        window.setTimeout(function(){
        document.body.removeChild(atlas_list);
},600);

 

posted @ 2016-01-08 12:13  daomul  阅读(4381)  评论(0编辑  收藏  举报