css实现带缩略图幻灯片代码
代码语言:html
所属分类:幻灯片
代码描述:css实现带缩略图幻灯片代码,无js代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Quicksand:wght@700&display=swap'>
<style>
@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@300&display=swap');
:root {
--img: url(//repo.bfw.wiki/bfwrepo/image/5e62eef0d452a.png);
}
html {
background-color: #fff;
}
body {
margin: 0;
padding: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
background-position: center center;
background-image: var(--img, url(//repo.bfw.wiki/bfwrepo/image/5e62eef0d452a.png));
transition: background 0.5s ease 0s;
font-family: 'Londrina Solid', cursive;
}
body:before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: #000000c9;
z-index: 0;
}
.content {
width: 60vmin;
height: 60vmin;
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
background-position: center center;
background-image: var(--img, url(//repo.bfw.wiki/bfwrepo/image/5e62eef0d452a.png));
transition: background 0.5s ease 0s;
max-width: 500px;
max-height: 500px;
box-shadow: 0 0 0vmin 1vmin #fff, 0 0 10vmin 5vmin #000;
border-radius: 2px;
z-index: 0;
background-color: #fff;
}
.content:before {
content: "cuadernodeescaladas.com";
position: absolute;
width: 100%;
text-align: center;
margin-bottom: -55vmin;
text-shadow: -1px -1px 0 #0007;
color: #fff4;
font-size: 18px;
}
/* CONTROLS */
.controls {
width: 100vw;
height: 100vh;
overflow: hidden;
display: flex;
justify-content: flex-end;
flex-direction: row;
flex-wrap: wrap;
position: absolute;
}
input[type=radio] {
display: none;
}
label {
width: 50vw;
height: 100vh;
position: relative;
curs.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0