楼主: 花简静

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

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

点评
回复

使用道具

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

<style> #mydiv {     margin: 130px 0 30px calc(50% - 931px);     width: 1700px;     height: 900px;     background:         url('https://642303.freep.cn/642303/za/f6a91b6ff74d4b19be7a79f7a6fa5103.gif') no-repeat 830px 120px,         url('https://pic.imgdb.cn/item/668d3daad9c307b7e962dc2a.gif') no-repeat 790px 60px ,         url('https://pic.imgdb.cn/item/66b3718bd9c307b7e94967c0.webp') no-repeat 0/cover,         rgba(0,128,128,.0);     background-blend-mode: normal, screen, darken;     box-shadow: 0 0 8px rgba(0,0,0,.5);     z-index: 1;     pointer-events: none;     position: relative;     overflow: hidden;    } #mydiv::before, #mydiv::after {     content: '';     position: absolute;     background: url('https://642303.freep.cn/642303/za/70ea16dce9f184a3.png') no-repeat center/cover;     filter: drop-shadow(0 0 20px snow);     border-radius: 50%;     animation: rot 10s linear infinite var(--state);     transition: .75s;     cursor: pointer;     pointer-events: auto; } #mydiv::before {     width: 230px;     height: 230px;     right: 440px;     top: 90px;     mix-blend-mode: lighten; } #mydiv::after {     width: 80px;     height: 80px;     left: 1140px;     top: 180px;     mix-blend-mode:lighten; } #mydiv:hover::before, #mydiv:hover::after {     filter: drop-shadow(0 0 80px teal); } @keyframes rot { to { transform: rotate(1turn); } } #vid {     position: absolute;     width: 100%;     height: 110%;     object-fit: cover;     opacity: .69;     top:-80px;     mix-blend-mode: screen; } </style> <div id="mydiv"> <video id="vid" src="https://img.tukuppt.com/video_show/15653652/01/59/07/63806a6eb7241.mp4" autoplay loop muted></video>     <audio id="aud" src="https://music.163.com/song/media/outer/url?id=1359121261" autoplay loop></audio> </div> <script> var mState = () => {mydiv.style.setProperty('--state', aud.paused ? 'paused' : 'running'); aud.paused ? vid.pause() : vid.play();} aud.oncanplay = aud.onplaying = aud.onpause = () => mState(); mydiv.onclick = () => aud.paused ? aud.play() : aud.pause();   </script>  
点评
回复

使用道具

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

使用道具

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

hue-rotate滤镜

filter: hue-rotate(0deg);

点评
回复

使用道具

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

<style> #qsfg20 {     margin: 130px 0 30px calc(50% - 391px);     position: relative;     margin: auto;     width:680px;     height: 420px;     background: translate;     overflow: hidden; } #vid {     position: absolute;     width: 100%;     height: 100%;     opacity: .99;     object-fit: cover;     top:00px;     filter: hue-rotate(0deg);     border-radius: 50%; } </style>   <div id="qsfg20"> <video id="vid" src="https://img.tukuppt.com/video_show/3664703/00/02/32/5b55d3a4260ea.mp4" autoplay="" loop="" muted=""> </video>hue-rotate滤镜 </div>   <p class="textMid"><output id="og6">filter: hue-rotate(0deg);</output></p> <p class="textMid"><input id="fg6" type="range" min="0" max="360" value="0" /></p>   <script> fg6.oninput = () => {     og6.value = 'filter: hue-rotate(' + fg6.value + 'deg);';     qsfg20.style.filter = 'hue-rotate(' + fg6.value + 'deg)'; }; </script>
点评
回复

使用道具

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

使用道具

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

使用道具

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

使用道具

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

使用道具

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

使用道具

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

本版积分规则

手机版|千山论坛

GMT+8, 2024-9-20 09:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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