• 页面页脚部分CSS分享


    先看效果:
    在这里插入图片描述
    CSS部分:(查看更多

    <style>
        body {
            display: grid;
            grid-template-rows: 1fr 10rem auto;
            grid-template-areas: "main" "." "footer";
            overflow-x: hidden;
            background: #F5F7FA;
            min-height: 100vh;
            font-family: "Open Sans", sans-serif;
        }
        body .footer {
            z-index: 1;
            --footer-background:#ED5565;
            display: grid;
            position: relative;
            grid-area: footer;
            min-height: 12rem;
        }
        body .footer .bubbles {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1rem;
            background: var(--footer-background);
            filter: url("#blob");
        }
        body .footer .bubbles .bubble {
            position: absolute;
            left: var(--position, 50%);
            background: var(--footer-background);
            border-radius: 100%;
            -webkit-animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s), bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
            animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s), bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
            transform: translate(-50%, 100%);
        }
        body .footer .content {
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr auto;
            grid-gap: 4rem;
            padding: 2rem;
            background: var(--footer-background);
        }
        body .footer .content a, body .footer .content p {
            color: #F5F7FA;
            text-decoration: none;
        }
        body .footer .content b {
            color: white;
        }
        body .footer .content p {
            margin: 0;
            font-size: 0.75rem;
        }
        body .footer .content > div {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        body .footer .content > div > div {
            margin: 0.25rem 0;
        }
        body .footer .content > div > div > * {
            margin-right: 0.5rem;
        }
        body .footer .content > div .image {
            align-self: center;
            width: 4rem;
            height: 4rem;
            margin: 0.25rem 0;
            background-size: cover;
            background-position: center;
        }
    
        @-webkit-keyframes bubble-size {
            0%, 75% {
                width: var(--size, 4rem);
                height: var(--size, 4rem);
            }
            100% {
                width: 0rem;
                height: 0rem;
            }
        }
    
        @keyframes bubble-size {
            0%, 75% {
                width: var(--size, 4rem);
                height: var(--size, 4rem);
            }
            100% {
                width: 0rem;
                height: 0rem;
            }
        }
        @-webkit-keyframes bubble-move {
            0% {
                bottom: -4rem;
            }
            100% {
                bottom: var(--distance, 10rem);
            }
        }
        @keyframes bubble-move {
            0% {
                bottom: -4rem;
            }
            100% {
                bottom: var(--distance, 10rem);
            }
        }
    style>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到网站

  • 相关阅读:
    SiC MOSFET的短路特性及保护
    1067 试密码
    微信小程序组件仿某音
    Android 漏洞修复
    初识C语言
    Git操作复习笔记
    Hadoop的UI页面介绍
    常见面试题之计算机网络
    Bean 作⽤域和⽣命周期
    css实现dom脱离文档流定位固定位置
  • 原文地址:https://blog.csdn.net/qq_35241329/article/details/132676538