视频直播网站源码,前端效果-css+javascript
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.box{
width: 1366px;
height: 600px;
margin: 0 auto;
background: url("./images/bg.jpg");
overflow: hidden;
}
.left{
float: left;
width: 50%;
height: 600px;
background: url("./images/fm.jpg");
transition: all .5s;
}
.right{
float: left;
width: 50%;
height: 600px;
background: url("./images/fm.jpg") right 0;
transition: all .5s;
}
.box:hover .left{
transform: translate(-100%);
}
.box:hover .right{
transform: translate(100%);
}
</style>
</head>
<body>
<div>
<div></div>
<div></div>
</div>
</body>
</html>
以上就是 视频直播网站源码,前端效果-css+javascript,更多内容欢迎关注之后的文章
标签:right,javascript,直播,源码,css,left From: https://www.cnblogs.com/yunbaomengnan/p/17596323.html