css+js圆环过渡动画图片幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:css+js圆环过渡动画图片幻灯片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css?family=Playfair+Display:400,900");
* {
outline: none;
}
html, body, main {
width: 100%;
height: 100%;
margin: 0;
color: white;
font-family: "Playfair Display", serif;
}
body {
background-color: #010101;
}
body:after {
content: " ";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: #010101;
opacity: 0.8;
z-index: -1;
}
body .background {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
z-index: -2;
opacity: 1;
transition: opacity 1s cubic-bezier(0.5, 0.3, 0.5, 0.8) 0.2s;
}
body .background.hide {
opacity: 0;
transition: opacity 1s cubic-bezier(0.5, 0.3, 0.5, 0.8) 0s;
}
main {
position: relativ;
}
main > div {
position: absolute;
top: 0;
lef.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0