好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

CSS 3.0 结合video视频实现的创意开幕效果

&nbs p; 给大家分享一个用CSS 3.0结合video视频实现的创意开幕,效果如下: 

以下是代码实现,欢迎大家复制粘贴和收藏。

<!DOCTY PE  ht ML >
<html lang="en">
<head>
    < ;m eta charset="UTF-8">
    <meta n am e="viewport" content="width=device-width, in IT ial -s cale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie= Edge ">
    <title>CSS 3.0结合video视频实现的创意开幕</title>
    <style>
        * {
            m arg in: 0;
            padding: 0;
            font-f ami ly: 'Poppins', sans-serif;
        }
        body {
            dis play : flex;
            align -i tems:  center ;
            justify-content: center;
            min-h ei ght: 100vh;
            background:  # 000;
        }
        h2 {
            position: relative;
            font-@R_ 126 _1191@ 3.4em;
             font-weight : 900;
            color: #fff;
            z-index: 1;
            overflow: hidden;
            mar gin : 20px 20px 0 0;
        }
        h2 span {
            color: #ff022c;
        }
        h2 :: before {
            content: '';
            position: absolute;
            left: -20%;
            width: 120%;
            height: 100%;
            background: linear-gra die nt(90 deg , transparent 0%, #000 5%, #000 100%);
            animation: ani MATE  5.5s linear forwa rds ;
            animation-delay: 2s;
        }
        @keyframes animate {
            0% {
                left: -20%;
            }
            100% {
                left: 110%;
            }
        }
        video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 2;
            pointer-events: none;
            mix-blend-mode: screen;
        }
    </style>
</head>
<body>
    <video src="https://klxxcdn.oss-cn-hangzhou.aliyuncs .COM /histudy/ hr m/media/08 rev erse.mp4" autoplay muted></video>
    <h2><span>We</span> must uni<span>te a</span>g ai nst COVID-19</h2>
</body>
</html>

 总结

到此这篇关于CSS 3.0 结合video视频实现的创意开幕的 文章 就介绍到这了,更多相关css video视频开幕内容请搜索以前的文章或继续浏览下面的相关文章,希望大家以后多多支持!

总结

以上是 为你收集整理的 CSS 3.0 结合video视频实现的创意开幕效果 全部内容,希望文章能够帮你解决 CSS 3.0 结合video视频实现的创意开幕效果 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于CSS 3.0 结合video视频实现的创意开幕效果的详细内容...

  阅读:22次