楼主: 花简静

花简静贴子代码及说明汇总(翻页有新贴)

[复制链接]
一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-8 19:08 | 显示全部楼层
本帖最后由 花简静 于 2024-7-8 19:10 编辑

点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:17 | 显示全部楼层
本帖最后由 花简静 于 2024-8-18 15:37 编辑

<style>     #mydiv {margin: 130px 0 30px calc(50% - 931px); width: 1700px; height: 900px; background: url('https://642303.freep.cn/642303/tu/0707xingkong.webp') no-repeat center/cover; box-shadow: 2px 2px 6px #333; overflow: hidden; display: grid; place-items: center; position: relative; }     #mydiv::before {     position: absolute;     content: '';     inset: 0;     background-image: repeating-linear-gradient(-165deg,     rgb(0,0,0) 0px,     rgb(0,0,0) 20px,     transparent 108px,     transparent 15px),     repeating-linear-gradient(-115.5deg,     rgb(0,0,0) 0px,     rgb(0,0,0) 20px,     transparent 108px,     transparent 15px),     linear-gradient( -90deg,     hsl(194,74%,56%),     hsl(266,74%,56%),         hsl(180,74%,56%),     hsl(302,74%,56%),         hsl(122,74%,56%));     mix-blend-mode: screen;     animation: chg 6s infinite cubic-bezier(0.5, 0.5, 0.5, 0.5) alternate var(--state);opacity: .5;}     #mydiv::after {     position: absolute;     content: '';     width: 100%;     height: 100%;     left:0%; z-index: 8;     background: url('https://642303.freep.cn/642303/tu/0707ma04.png') no-repeat center/cover;pointer-events: auto; }                 #player { position: absolute; width: 100px; bottom:13%;filter: hue-rotate(230deg); border-radius: 50%;transition: width .5s; opacity: .99; cursor: pointer; animation: rot 8s linear infinite var(--state); z-index:11;mix-blend-mode: screen;} #player:hover { width: 120px;filter: hue-rotate(180deg) drop-shadow(0 0 4px yellow);} .mypic1 {position: absolute;right:0%;bottom:0%; z-index: 3;} .vid { position: absolute; width: 110%; height: 100%;right:-50px;object-fit: cover; pointer-events: none; z-index: 2;} .vid:nth-of-type(1) { position: absolute; width: 500px; height: 500px; left:26%;top:6%;object-fit: cover; border-radius: 50%;opacity: 0.95; pointer-events: none;transform: rotateY(180deg); box-shadow: 0 0 24px #D8BFD8;}     .vid:nth-of-type(2) { position: absolute; width: 400px; height: 400px; left:55%;top:25%;object-fit: cover; border-radius: 50%;opacity: 0.95; pointer-events: none;transform: rotateY(180deg); box-shadow: 0 0 24px #D8BFD8;}     .vid:nth-of-type(3) { position: absolute; width: 320px; height: 320px; left:78%;top:11%;object-fit: cover; border-radius: 50%;opacity: 0.95; pointer-events: none;transform: rotateY(180deg); box-shadow: 0 0 24px #D8BFD8;}         .star { position: absolute; left: 30px; bottom: 210px; animation: ani 1.5s linear infinite alternate var(--state); z-index: 6;mix-blend-mode: screen;opacity: .99;z-index: 10;}     .star:nth-of-type(2) {left: 1180px; bottom: 680px; animation-delay: -.5s; mix-blend-mode: screen;opacity: .8;}     .star:nth-of-type(3) { left: 540px; bottom: 210px; animation-delay: -1s; mix-blend-mode: screen;opacity: .6; z-index: 7;}     @keyframes ani { from { transform: rotate(-10deg) scale(.8); opacity: .4; } to { transform: rotate(10deg) scale(1.5); } } @keyframes rot { to { transform: rotate(360deg); } } @keyframes chg { to { inset: -160px; } } </style>   <div id="mydiv"> <video class="vid" src="https://videos.pexels.com/video-files/20576968/20576968-hd_1920_1080_25fps.mp4" loop muted></video>     <video class="vid" src="https://img.tukuppt.com/video_show/2269348/00/16/29/5e9d18c8ae435.mp4" loop muted></video>     <video class="vid" src="https://img.tukuppt.com/video_show/2269348/00/16/29/5e9d19d0ca88a.mp4" loop muted></video> <div class="mypic1"><img src="https://642303.freep.cn/642303/tu/0707ren.pn" alt="" /></div> <img class="star" alt="" src="https://638183.freep.cn/638183/t22/webp/star.webp" />     <img class="star" alt="" src="https://638183.freep.cn/638183/t22/webp/star.webp" />     <img class="star" alt="" src="https://638183.freep.cn/638183/t22/webp/star.webp" />     <audio id="aud" src="https://music.163.com/song/media/outer/url?id=1444647571.mp3" autoplay loop></audio> <img id="player" alt="" src="https://642303.freep.cn/642303/za/00.png" titel="播放/暂停" /> </div>   <script> var sF = document.createElement('script'); sF.src = 'https://638183.freep.cn/638183/web/api/fullscreen.js'; sF.charset = 'utf-8'; document.querySelector('body').appendChild(sF); sF.onload = () => FS({     papa: '#mydiv',     css: 'bottom: 20px; left: 50%; transform: translate(-50%); --color: MediumAquamarine; --fsBg: transparent;', }); const vids = document.querySelectorAll('.vid'), stars = document.querySelectorAll('.star'); var mState = () => {     mydiv.style.setProperty('--state',['running','paused'][+aud.paused]);     vids.forEach( vid => aud.paused ? vid.pause() : vid.play());     player.title = ['暂停','播放'][+aud.paused]; }; aud.oncanplay = aud.onplaying = aud.onpause = () => mState(); player.onclick = () => aud.paused ? aud.play() : aud.pause();   </script> <script> let sFile = document.createElement('script'); sFile.src = 'https://638183.freep.cn/638183/web/api/lrc.js'; sFile.charset = 'utf-8'; document.head.appendChild(sFile);   sFile.onload = () => {     LRC({         papa: '#mydiv',         lrcAr: geci,         btn: '#player',         lrc_css: 'left: 50%; transform: translate(-50%);--bg: linear-gradient(rgba(250,250,250,.25),rgba(128,128,0.65)); opacity: .66;position: absolute; bottom: 60px; font: bold 1.8em sans-serif; color: #F0F8FF;',     }); }; let geci = [     [-0.2,"单曲:十二时辰",1.7],     [1.51,"歌手:乐蒽 / Walker",1.4],     [2.95,"所属专辑:十二时辰",1.0],     [3.94,"作词 : 乐蒽",1.0],     [4.97,"作曲 : 潘跃宝",0.7],     [5.64,"学习黑师20240706《回忆》浪漫粒子效果",4.1],     [22.02,"昼夜交替 时光往前推 如流水",3.5],     [26.42,"斗转星移 故事在岁月中 轮回",3.3],     [30.64,"只有那沧桑过往 颜色永不褪",3.4],     [34.53,"在历史长河文明的碑",2.7],     [39.08,"爱恨交织 写满史册 无关错对",3.5],     [43.3,"千年风沙 刮过老祖宗的 智慧",3.4],     [47.64,"梦中聆听长安城 钟声在迂回",3.4],     [51.41,"指引我追溯 古老方位",2.8],     [55.47,"何时为子鼠 为丑牛 何时为寅虎",4.0],     [59.79,"我梦回西周 置身皎洁 的山水",4.0],     [64,"华夏的子民 洞察天地 的敏锐",4.0],     [68.24,"划分了时辰 让天地 优美",2.9],     [72.41,"何时为卯兔 为辰龙 何时为巳蛇",4.1],     [76.76,"我梦回西周 置身乱世的山水",4.0],     [81.09,"古书上记载 星宿牲畜类相配",3.9],     [85.26,"这时辰就被 形象的描绘",2.9],     [107.12,"昼夜交替 时光往前推 如流水",2.9],     [111.33,"斗转星移 故事在岁月中 轮回",3.6],     [115.48,"只有那沧桑过往 颜色永不褪",3.5],     [119.25,"在历史长河 文明的碑",3.0],     [124.06,"爱恨交织 写满史册 无关错对",3.4],     [128.25,"千年风沙 刮过老祖宗的 智慧",3.5],     [132.09,"梦中聆听长安城 钟声在迂回",3.8],     [136.32,"指引我追溯 古老方位",2.8],     [140.55,"何时为子鼠 为丑牛 何时为寅虎",3.7],     [144.69,"我梦回西周 置身皎洁 的山水",4.0],     [149.07,"华夏的子民 洞察天地 的敏锐",3.9],     [153.25,"划分了时辰 让天地 优美",2.9],     [157.46,"何时为卯兔 为辰龙 何时为巳蛇",3.6],     [161.02,"我梦回西周 置身乱世的山水",4.7],     [166.05,"古书上记载 星宿牲畜类相配",3.9],     [170.22,"这时辰就被 形象的描绘",2.8],     [174.45,"何时是午马 是未羊 何时是申猴",4.0],     [178.75,"我梦回西周 月色朦胧 的山水",3.9],     [183.4,"炎黄的子孙 胸怀天地 遵法规",3.9],     [187.28,"划分了时辰 从此变优美",3.1],     [191.51,"何时是酉鸡 是戌狗 何时是亥猪",3.9],     [195.69,"我梦回西周 古朴碧绿 的山水",4.0],     [200.08,"古书上记载 天象八卦总相随",3.9],     [204.16,"这时辰就被 形象的描绘",2.9] ]; </script>
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:17 | 显示全部楼层
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:17 | 显示全部楼层
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:18 | 显示全部楼层
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:18 | 显示全部楼层
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:18 | 显示全部楼层
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:18 | 显示全部楼层
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:18 | 显示全部楼层
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
 楼主| 发表于 2024-7-22 22:18 | 显示全部楼层
点评
回复

使用道具

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|千山论坛

GMT+8, 2024-9-20 15:19

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表