楼主: 凡哥

[碎语] 源码小屋

[复制链接]
一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
发表于 2024-7-5 23:22 | 显示全部楼层

苹果味的
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
发表于 2024-7-5 23:23 | 显示全部楼层
凡哥 发表于 2024-7-5 20:04
系统不是个问题。但是讲真,win11顶呱呱。

但。。还要升么。。我都准备用400年了
点评
回复

使用道具

一生安柠 青恬时光 幸福莓满 心想事橙 桃气满满 梅开颜笑 心若葡提 大吉大荔 樱果相依 喜上莓梢 一坛酒
 楼主| 发表于 2024-7-6 08:39 | 显示全部楼层
花简静 发表于 2024-7-5 23:23
但。。还要升么。。我都准备用400年了

不想折腾不升也成
点评
回复

使用道具

一生安柠 青恬时光 幸福莓满 心想事橙 桃气满满 梅开颜笑 心若葡提 大吉大荔 樱果相依 喜上莓梢 一坛酒
 楼主| 发表于 2024-7-6 08:40 | 显示全部楼层

熟悉的味道
点评
回复

使用道具

一生安柠 青恬时光 幸福莓满 心想事橙 桃气满满 梅开颜笑 心若葡提 大吉大荔 樱果相依 喜上莓梢 一坛酒
 楼主| 发表于 2024-7-6 08:50 | 显示全部楼层

2024年7月6日 星期六

回忆

<style>     #mydiv { margin: 130px 0 30pc calc(50% - 602px); width: 1024px; height: 640px; background: url('https://file.moyublog.com/free_wallpapers_files/3qeq5pru4yx.jpg') 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(135deg, rgb(0,0,0) 0px, rgb(0,0,0) 10px, transparent 10px, transparent 11px), repeating-linear-gradient(22.5deg, rgb(0,0,0) 0px, rgb(0,0,0) 10px, transparent 10px, transparent 11px), linear-gradient(90deg, hsl(194,74%,56%), hsl(266,74%,56%), hsl(338,74%,56%), hsl(50,74%,56%), hsl(122,74%,56%)); mix-blend-mode: screen; animation: chg 6s infinite cubic-bezier(0.11, 0.47, 0.81, 1.24) alternate var(--state); }     #player { position: absolute; width: 100px; filter: hue-rotate(75deg); transition: width .5s; opacity: .5; cursor: pointer; animation: rot 8s linear infinite var(--state); } #player:hover { width: 120px; } @keyframes rot { to { transform: rotate(360deg); } } @keyframes chg { to { inset: -160px; } } </style>   <div id="mydiv">     <audio id="aud" src="https://music.163.com/song/media/outer/url?id=1438432942" autoplay loop></audio> <img id="player" alt="" src="https://638183.freep.cn/638183/web/svg/clover4.svg" 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: lightblue; --fsBg: transparent;', }); var mState = () => {     mydiv.style.setProperty('--state',['running','paused'][+aud.paused]);     player.title = ['暂停','播放'][+aud.paused]; }; aud.oncanplay = aud.onplaying = aud.onpause = () => mState(); player.onclick = () => aud.paused ? aud.play() : aud.pause(); </script>

评分

1

查看全部评分

点评
回复

使用道具

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

番茄的也可以
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
发表于 2024-7-7 10:14 | 显示全部楼层
凡哥 发表于 2024-7-6 08:39
不想折腾不升也成

这个赶紧同意
点评
回复

使用道具

一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 24 46 47 48 闲花落
发表于 2024-7-7 10:15 | 显示全部楼层
凡哥 发表于 2024-7-6 08:50
.mum { position: relative; margin: 0; padding: 10px; font: normal 16px/20px Consolas, Monaco, 'Anda ...

渐变整出来的小点点。。
主要是伪元素整出来的动画厉害。。
点评
回复

使用道具

一生安柠 青恬时光 幸福莓满 心想事橙 桃气满满 梅开颜笑 心若葡提 大吉大荔 樱果相依 喜上莓梢 一坛酒
 楼主| 发表于 2024-7-10 12:27 | 显示全部楼层

2024年7月10日 星期三

X檔案

<style> #mydiv {     --width: 1200px;     margin: 30px 0 30px calc(50% - (var(--width) / 2 + 90px));     width: var(--width);     height: 700px;     background:         linear-gradient(45deg, transparent 48%, rgba(0,128,0,.5) 48%, rgba(0,128,0,.5) 52%, transparent 52%, transparent 0) center/100%,         linear-gradient(-45deg, transparent 48%, rgba(0,128,0,.5) 48%, rgba(0,128,0,.5) 52%, transparent 52%, transparent 0) center/100%,         repeating-radial-gradient(circle, rgba(100,100,0,.2) 0, rgba(255,255,255,.2) 40%, transparent 60%) center/10% 25%,         conic-gradient(from 45deg at center, transparent, red, transparent,blue,transparent,green,transparent,purple), #fff;     border: 1px solid gray;     z-index: 1;     overflow: hidden;     position: relative; } #vid {     position: absolute;     bottom: 0; width: 100%;     height: calc(100% + 160px);     object-fit: conver;     mix-blend-mode: screen;     pointer-events: none; } #player {     position: absolute;     left: calc(50% - 200px);     top: calc(50% - 200px);        width: 400px;     height: 400px;     cursor: pointer;     animation: rot 8s linear infinite var(--state); } @keyframes rot { to {transform: rotate(360deg); } } </style>   <div id="mydiv">     <audio id="aud" src="https://music.163.com/song/media/outer/url?id=562254568" autoplay loop></audio>     <video id="vid" src="https://img.tukuppt.com/video_show/15653652/01/31/09/62d0f6b234ec0.mp4" muted autoplay loop></video>     <svg id="player"><polygon id="poly" points="400.00 200.00, 6.81 251.76, 373.21 100.00, 58.58 341.42, 300.00 26.79, 148.24 393.19, 200.00 0.00, 251.76 393.19, 100.00 26.79, 341.42 341.42, 26.79 100.00, 393.19 251.76, 0.00 200.00, 393.19 148.24, 26.79 300.00, 341.42 58.58, 100.00 373.21, 251.76 6.81, 200.00 400.00, 148.24 6.81, 300.00 373.21, 58.58 58.58, 373.21 300.00, 6.81 148.24" fill="transparent" stroke="darkgreen" stroke-width="2"></polygon></svg> </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: lightblue; --fsBg: transparent;', }); var mState = () => {     mydiv.style.setProperty('--state',['running','paused'][+aud.paused]);     player.title = ['暂停','播放'][+aud.paused];     aud.paused ? vid.pause() : vid.play(); }; aud.oncanplay = aud.onplaying = aud.onpause = () => mState(); player.onclick = () => aud.paused ? aud.play() : aud.pause(); </script>
点评
回复

使用道具

一生安柠 青恬时光 幸福莓满 心想事橙 桃气满满 梅开颜笑 心若葡提 大吉大荔 樱果相依 喜上莓梢 一坛酒
 楼主| 发表于 2024-7-12 08:10 | 显示全部楼层

2024年7月12日 星期五

梦的地方

<style> #mydiv {     --width: 1280px;     margin: 130px 0 30px calc(50% - (var(--width) / 2 + 90px));     width: var(--width);     height: 700px;     background: radial-gradient(circle, transparent, silver, lightgreen, cyan);     box-shadow: 3px 3px 6px #333;     pointer-events: none;     overflow: hidden;     position: relative; } #mydiv::before, #mydiv::after {     position: absolute;     content: ''; } #mydiv::before {     inset: 0;     background: rgba(0, 100, 100, .15); } #mydiv::after {     width: 100px;     height: 100px;     top: 40px;     left: calc(50% - 50px);     background: url('https://638183.freep.cn/638183/t23/btn/meihua_133482968750383750.png') no-repeat center/cover;     filter: drop-shadow(0 0 26px lightblue);     pointer-events: auto;     cursor: pointer;     animation: rot 8s linear infinite var(--state); } #vid {     position: absolute;     bottom: 0;     width: 100%;     height: calc(100% + 70px);     object-fit: cover;     mix-blend-mode: color-burn;     opacity: .75; } @keyframes rot {     to { transform: rotate(360deg); } } </style>   <div id="mydiv" title="播放/暂停">     <audio id="aud" src="https://music.163.com/song/media/outer/url?id=2103389092" autoplay loop></audio>     <video id="vid" src="https://img.tukuppt.com/video_show/15653652/01/41/56/6332b7166860f.mp4" muted loop autoplay disablePictureInPicture></video> </div>   <script>     aud.oncanplay = aud.onplaying = aud.onpause = () => {         aud.paused ? vid.pause() : vid.play();         mydiv.style.setProperty('--state', ['running','paused'][+aud.paused]);         mydiv.title = ['暂停','播放'][+aud.paused];     }     mydiv.onclick = () => aud.paused ? aud.play() : aud.pause(); </script>
点评
回复

使用道具

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

本版积分规则

手机版|千山论坛

GMT+8, 2024-9-20 05:27

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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