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

网友评论0