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&amp;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.........完整代码请登录后点击上方下载按钮下载查看

网友评论0