jquery+bootstrap实现网页滚动模拟海底潜水深度压力与生命体效果代码
代码语言:html
所属分类:加载滚动
代码描述:jquery+bootstrap实现网页滚动模拟海底潜水深度压力与生命体效果代码,滚动鼠标滚轮就能看到海底不同深度的压力和生存的生命体。
代码标签: jquery bootstrap 网页 滚动 模拟 海底 潜水 深度 压力 生命体
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap'>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.5.3.0.css">
<style>
body {
background: #f5f5f5;
font-family: "Plus Jakarta Sans", sans-serif;
background: black;
}
h1,
h2,
h3,
h4,
h5 {
font-weight: 700;
color: #fff;
}
#navbarNav {
background: transparent;
margin-left: 2em;
}
.border-bottom {
border-bottom: 1px solid #191919 !important;
}
.gallery {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
.container {
max-width: 100vw;
position: relative;
margin-bottom: 500px;
}
.filter-range {
display: flex;
flex-direction: column;
align-items: center;
}
#svg-filters {
position: absolute;
}
.card {
margin-top: 24px;
margin-bottom: 24px;
border-radius: 24px;
padding: 24px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
border: none;
}
#search {
border-radius: 24px;
border: none;
padding: 12px;
float: right;
box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
#image {
position: absolute;
top: 0;
width: 100%;
height: 11000px;
object-position: center bottom;
margin-bottom: 2000px;
z-index: -1;
}
.deep {
cursor: url(//repo.bfw.wiki/bfwrepo/images/huajuan/14ZwyOC0zZQLJwVVwNjAo-m4F7E44-bV5=w96.png)
48 48,
auto;
}
.species img {
cursor: url(//repo.bfw.wiki/bfwrepo/images/huajuan/1w138J4r1-wCAGFIGBkOo9Ap7ObaO0t4f=w96.png)
48 48,
auto;
}
.card h5 {
margin-bottom: 24px;
}
.buttons {
margin-bottom: 24px;
}
.btn {
border-radius: 24px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
.measures {
position: fixed;
top: 80px;
right: 48px;
text-align: right;
font-size: 2em;
font-weight: 800;
color: #ccc;
mix-blend-mode: hard-light;
}
.active {
opacity: 100%;
transition: all 1s;
}
.sky {
width: 100vw;
height: 800px;
background: url("//repo.bfw.wiki/bfwrepo/images/huajuan/1ZLMVeoB0fG5KXgN4Q-rqIt9kAVxqrWcT=w1000.png");
background-size: cover;
margin-bottom: -56px;
}
.sky h1 {
font-size: 5rem;
color: black;
mix-blend-mode: multiply;
text-align: center;
}
.end {
width: 100vw;
height: 100vh;
margin-bottom: -56px;
position: absolute;
top: 12800px;
}
.end h1 {
font-size: 5rem;
color: white;
text-align: center;
}
.species,
.titles {
opacity: 0;
transition: all 2s;
}
.visible {
opacity: 1;
}
.species:hover {
opacity: 1;
transition: all 2s;
}
.species {
position: absolute;
z-index: 1;
padding-top: 56px;
}
.titles {
position: absolute;
z-index: 2;
left: 0;
padding-top: 56px;
}
.species.active,
.titles.active {
opacity: 1;
}
.species img {
display: block;
margin: 0 auto;
border-radius: 50%;
width: 200px;
/* Adjust size as needed */
height: 200px;
/* Adjust size as needed */
transition: transform 0.5s ease-in-out;
transition: all 1s;
object-fit: cover;
border: 10px solid rgba(255, 255, 255, 0.1);
}
.species.active img {
transform: scale(1);
}
.species .description {
text-align: center;
}
.species.active .description.active {
opacity: 1;
}
.species .description h2 {
font-size: 1.5em;
margin-top: 10px;
color: #fff;
}
.species .description p {
font-size: 1em;
color: #ccc;
}
.sunlight {
top: 0;
}
.twilight {
top: 200px;
}
.midnight {
top: 1000px;
}
.abyss {
top: 4000px;
}
.trench {
top: 6000px;
}
.main-title {
height: 100%;
flex-direction: column;
}
.titles h1 {
font-size: 3em;
font-weight: 900;
margin-top: 0px;
text-align: left;
color: white;
border-top: 1px solid white;
}
.titles span {
font-size: 1em;
font-weight: 400;
margin-top: 0px;
text-align: left;
color: #ccc;
}
.coelacanth {
top: 200px;
left: 50%;
margin-left: -200px;
}
.japanese-spider-crab {
top: 300px;
left: 50%;
margin-left: 100px;
}
.cuttlefish {
top: 600px;
left: 50%;
margin-left: -100px;
}
.sea-angel {
top: 600px;
left: 50%;
margin-left: 250px;
}
.nautilus {
top: 700px;
left: 50%;
margin-left: -400px;
}
.cockatoo-squid {
top: 1300px;
left: 50%;
margin-left: 100px;
}
.headless-chicken-fish {
top: 1000px;
left: 50%;
margin-left: 200px;
}
.vampire-squid {
top: 1200px;
left: 50%;
margin-left: -400px;
}
.goblin-shark {
top: 1300px;
left: 50%;
margin-left: -150px;
}
.firework-jellyfish {
top: 1500px;
left: 50%;
margin-left: -400px;
}
.dragonfish {
top: 1500px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0