flux实现十几种2d和3d幻灯片过渡切换效果代码
代码语言:html
所属分类:幻灯片
代码描述:flux实现十几种2d和3d幻灯片过渡切换效果代码
代码标签: flux 十几 种 2d 3d 幻灯片 过渡 切换
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
width: 100vw;
height: 100vh;
justify-content: center;
align-items: center;
overflow: hidden;
flex-direction: column;
background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
font-family: 'Arial', sans-serif;
}
#slider {
width:800px;
height:600px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
img {
width: 800px;
object-fit: cover;
object-position: center;
}
#transitions {
margin-top: 20px;
display: flex;
justify-content: space-between;
width:800px;
}
ul {
list-style: none;
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.8);
padding: 15px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 48%;
}
ul li {
margin: 5px 0;
padding: 8px 12px;
border-radius: 5px;
transition: background-color 0.3s ease, transform 0.3s ease;
}
ul li:hover {
background-color: #ffdab9;
cursor: pointer;
transform: translateY(-2px);
}
ul li a {
text-decoration: none;
color: #333;
font-weight: bold;
display: block;
}
ul li a.new {
color: #e74c3c;
}
ul li:first-child {
font-size: 1.2em;
font-weight: bold;
color: #2c3e50;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="slider">
<img src="//repo.bfw.........完整代码请登录后点击上方下载按钮下载查看
网友评论0