当前位置:首页经验分享7B2美化 首页大屏视频展示

7B2美化 首页大屏视频展示

7B2美化(任何主题都可以用)请自行做适配

首页大屏视频展示

7B2美化 首页大屏视频展示

代码

html

    <div class="video-home">
        <div class="video-page " id="video--header">


            <div class="video-container">

<!-- 视频链接 -->
                <video class="video-home2"
                    src="你的视频.mp4"
                    loop="" muted="" playsinline="" webkit-playsinline="" style="">
                </video>

            </div>

        </div>
    </div>

css

        .video-container {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
            will-change: transform;
            animation: blur-to-clear 2s cubic-bezier(.62, .21, .25, 1) 0s 1 normal backwards running, scale 1.5s cubic-bezier(.62, .21, .25, 1) 0s 1 both;
        }
        .video-home {
            position: relative;
            min-height: 100%;
            font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei";
            line-height: 2;
            -webkit-tap-highlight-color: transparent;
            margin: 0px;
        }
        #page-header.video-page {
            height: 100vh;
            background-attachment: fixed;
            border-radius: 0;
        }
        #video--header {
            background-image: none !important;
            display: flex;
            justify-content: center;
        }
        #page-header {
            position: relative;
            width: 100%;
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
            transition: all 0.5s ease 0s;
        }
        .video-home2 {
            display: block;
            object-fit: cover;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

安装过于简单 就不演示了)))

极(鸡)子主题

另外有购买极(鸡)子主题 可以在 极子主题-首页设置-搜索模块 打开视频区块 但大屏只有四分之一的效果

7B2美化 首页大屏视频展示

需要实现这种效果 需要在子主题的

/b2Jitheme/Render/Css/jitheme.css 搜索 .home-banner .section改成

.home-banner .section {
  position:relative;
  width:100%;
  overflow:hidden;
  max-height: 100vh;
  height: 100vh;
}
7B2美化 首页大屏视频展示

/b2Jitheme/style.css 随便找一个地方加上

 /*这个可要可不要*/
.big_title {
    font-size: 60px!important;
}
/*这个必须要*/
.section{
        margin-top: -16px;
}
/*不懂全部加上就完事了*/

ojbk

有问题评论区dd 之后更新一个dlc😅😅

版权声明
文章链接: https://dmyblog.cn/1488.html
文章标题: 7B2美化 首页大屏视频展示
声明: 本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,发布本站内容到任何网站。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理

给TA打赏
共{{data.count}}人
人已打赏
经验分享

1Panel+docker快速部署Blossom私有云笔记

2023-12-21 23:22:19

经验分享

【Minecraft】1.20.1开服教程

2024-1-27 22:54:35

0 条回复 UP文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索