Html
    Css
    Js

    
                        
#right {
	width:300px;
	height:500px;
	position:fixed;
	right:0;
	top:50px;
	background:red;
}
#bian {
	width:30px;
	height:500px;
	position:absolute;
	left:0;
	top:0;
	cursor:pointer;
	background:#000;
}
.box {
	width:100px;
	height:40px;
	background:blue;
	margin:30px;
	float:left;
	color:#fff;
	font-weight:bold;
	text-align:center;
	line-height:40px;
	cursor:pointer;
	position:relative;
}
#main {
	width:640px;
	height:200px;
	position:absolute;
	left:50px;
	top:20px;
}
#shop {
	width:25px;
	height:25px;
	border-radius:50%;
	background:orangered;
	color:#fff;
	font-weight:bold;
	text-align:center;
	line-height:25px;
	font-size:20px;
	position:relative;
	top:200px;
}
.lei {
	width:20px;
	height:20px;
	background:red;
	border-radius:50%;
	position:absolute;
}

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

抛物线商品运动

原生js购物车运动效果需要整个页面看 效果

0