css实现动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现动画效果代码

代码标签: 效果

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

<html>
<head>
   
<style>
:root {
        --alabaster: #FAFAFA;
        --frangipani: #FFDCB5;
        --frostee: #EAF7EB;
        --lemon-chiffon: #F9EEAB;
        --sundown: #FFB7BC;
        --white: #FFF;
    }

        *,
        ::after,
        ::before {
            box-sizing: border-box;
            font-family: sans-serif;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: 1f1f1f;
            min-height: 100vh;
            width: 100%;
        }

        .card-container {
            display: grid;
            grid-gap: 2rem;
            grid-template-columns: repeat(auto-fill, minmax(23rem, 1fr));
            margin: 0 auto;
            max-width: 100%;
            padding: 2rem;
            width: 55rem;
        }

        .card {
            align-items: center;
            border-radius: 0.25rem;
            box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.25);
            display: flex;
            height: 23rem;
            justify-content: center;
            position: relative;
            width: 100%;
        }

        .ball {
            background-color: var(--white);
            border-radius: 50%;
            height: 3rem;
            position: absolute;
            width: 3rem;
        }

        /* Square */
        .square-card {
            background-color: var(--frostee);
        }

        .square-card::before {
            animation: shadow 1.6s ease-in-out infinite both;
            background-color: rgba(0, 0, 0, 0.2);
 .........完整代码请登录后点击上方下载按钮下载查看

网友评论0