div+css实现文字大气出场动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现文字大气出场动画效果代码

代码标签: div css 文字 大气 出场 动画

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

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

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

 
<link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Paytone+One&amp;display=swap'>
 
<style>
@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@100&display=swap");

:root {
        --sp: 12s;
        --white: #ffffff;
}

body {
        margin: 0;
        font-family: "Kanit", sans-serif;
        font-size: 3vmin;
        box-sizing: border-box;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background: #203a43;
        background: radial-gradient(ellipse at 50% 50%, #011116 0%, #000000 100%);
        display: flex;
        align-items: center;
        justify-content: center;
}

.content {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 90vmin;
}

.content div {
        position: absolute;
        display: flex;
        animation: show-hide var(--sp) ease 0s infinite;
        mix-blend-mode: plus-lighter;
}

@keyframes show-hide {
        0%,
        100% {
                opacity: 0;
                transform: scale(0.8);
        }
        20%,
        80% {
                opacity: 1;
                transform: scale(1);
        }
}

.content div span {
        width: 10vmin;
        position: relative;
        text-align: center;
        box-sizing: border-box;
        color: #ffffff90;
        text-shadow: 0 0 1px var(--white);
}

.up:before,
.down:before {
        width: 80%;
        height: 0.1vmin;
        background: radial-gradient(ellipse at 50% 50%, var(--white), #ffffff00 70%);
        content: "";
        position: absolute;
        border-radius: 100%;
        filter.........完整代码请登录后点击上方下载按钮下载查看

网友评论0