Html
    Css
    Js

    
                        
html,body {
	height:100%;
}
body {
	margin:0;
	padding:0;
	font-family:sans-serif;
	text-align:center;
	color:#FFF;
	overflow:hidden;
	position:relative;
}
#tablet {
	background:#4ac4aa;
	left:0;
}
#wifi {
	background:#ea5634;
	left:100%;
}
article {
	position:absolute;
	width:100%;
	height:100%;
	padding:100px;
	box-sizing:border-box;
	-webkit-transition:left 1s ease-in-out;
	-moz-transition:left 1s ease-in-out;
	-o-transition:left 1s ease-in-out;
	transition:left 1s ease-in-out;
	top:0;
}
h1 {
	font-size:4em;
	border-bottom:1px solid rgba(255,255,255,.2);
	padding-bottom:30px;
}
p {
	color:rgba(255,255,255,.8);
	margin-bottom:30px;
}
a {
	color:#FFF;
	font-size:1.5em;
	padding:5px 50px;
	border:1px solid #FFF;
	border-radius:4px;
	text-decoration:none;
}
#tablet.move {
	left:-100%;
}
#wifi.move {
	left:0;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

页面切换的效果

0