div+css实现响应式自适应落地页代码

代码语言:html

所属分类:响应式

代码描述:div+css实现响应式自适应落地页代码

代码标签: div css 响应式 自适应 落地页 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

/* DEFAULT VALUES */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100dvh;
}

/* ANIMATED BACKGROUND */

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
	min-height: 100dvh;
	overflow: hidden;
	position: relative;
}

.blob-container {
	min-height: 100vh;
	overflow: hidden;
	position:absolute;
	width: 100%;
  filter: blur(5px);
}

.blob {
	background:#26C3F9;
  border-radius: 50%;
  animation: movement_one 12s ease-in-out infinite both;
	opacity: 0.8;
	position: absolute;
	left: 75%;
	top: 20%;
}

.blob.one{
	background: #ccf6c8;
	height: 200px;
	width: 200px;
	left: 10px;
	top: 10px;
	transform: rotate(-180deg);
	animation: movement_two 20s ease-in-out infinite both;
}

.blob.two{
	background: #fdcedf;
	height: 200px;
	width: 200px;
	left: 800px;
	top: 30px;
	transform: rotate(-180deg);
	animation: movement_two 23s ease-in-out infinite both;
}

.blob.three{
	background: #bce1f1;
	height: 160px;
	width: 160px;
	left: 500px;
	top: 60px;
	transform: rotate(-180deg);
	animation: movement_one 12s ease-in-out infinite both;
}

.blob.four{
	background: #cdefe7;
	height: 120px;
	width: 120px;
	left: 480px;
	top: 250px;
	transform: rotate(-180deg);
	animation: movement_one 18s ease-in-out infinite both;
}

.blob.five{
	background: #ffcef5;
	height: 100px;
	width: 100px;
	left: 160px;
	top: 400px;
	transform: rotate(-180deg);
	animation: movement_two 7s ease-in-out infinite both;
}

.blob.six{
	background: #e8d5fd;
	height: 130px;
	width: 130px;
	left: 400px;
	top: 400px;
	transform: rotate(-180deg);
	animation: movement_two 12s ease-in-out infinite both;
}

.blob.seven{
	background: #ffe083;
	height: 130px;
	width: 130px;
	left: 280px;
	top: 90px;
	transform: rotate(-180deg);
	animation: movement_two 13s ease-in-out infinite both;
}

.blob.eight{
	background: #fdffbc;
	height: 130px;
	width: 130px;
	left: 700px;
	top: 400px;
	transform: rotate(-180deg);
	animation: movement_two 18s ease-in-out infinite both;
}

@keyframes movement_one
{
    0%,
  100% { transform: none; }
   50% { transform: translate(50%, 20%) rotate(100deg) scale(1); }
}

@keyframes movement_two
{
    0%,
  500% { transform: none; }
   50% { transform: translate(20%, 80%) rotate(-200deg) scale(1.3);}
}


/* CARD */

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  z-index: 5;
}

.card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 70px 20px;
}

/* DESCRIPTION */

.description {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 50px;
  font-family: "Poppins", sans-serif;
  padding: 0 30px;
}

.description > p {
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
  text-align: center;
}

.description > button {
  width: 180p.........完整代码请登录后点击上方下载按钮下载查看

网友评论0