首页  编辑  

一个网页CSS动画特效,色彩hue渐变

Tags: /计算机文档/网页制作/   Date Created:
<!--KobeKobz-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>KOBZ SECURE PROXY</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="https://bootswatch.com/4/slate/bootstrap.min.css" media="screen">
    <link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
    <style>
        body {
            font-family: "Press Start 2P", cursive;
        }

        .fn-color {
            color: #ffff;
            background-image: -webkit-linear-gradient(92deg, #f35626, #feab3a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            -webkit-animation: hue 5s infinite linear;
        }

        @-webkit-keyframes hue {
            from {
                -webkit-filter: hue-rotate(0deg);
            }

            to {
                -webkit-filter: hue-rotate(-360deg);
            }
        }
    </style>
</head>

<body>
    <div class="container" style="padding-top: 50px">
        <div class="jumbotron">
            <h1 class="display-3 text-center fn-color">KOBZ SECURE PROXY</h1>
            <h4 class="text-center text-danger">SERVER</h4>
            <p class="text-center">😍 webmaster 😍</p>
        </div>
    </div>
</body>

</html>