累了就抱抱自己(学习马黑黑Find Yourself效果)
<style>#papa { margin: 30px 0; left: calc(50% - 81px); transform: translateX(-50%); width: clamp(600px, 90vw, 1400px); height: auto; aspect-ratio: 16/9; background: #333 url('https://pic1.imgdb.cn/item/68691b4658cb8da5c8915bf2.jpg') no-repeat center/cover; box-shadow: 2px 2px 8px #000; display: grid; place-items: center; z-index: 1; position: relative; }
#btnFs { bottom: 30px; color: teal; border-color: teal !important; }
#player { top: 30%; }
.player { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 6px double green; border-color: #6d7162 #e1d7d6 #762616 transparent; transition: width .45s, height .45s; cursor: pointer; display: grid; place-items: center; animation: rot 4s linear infinite var(--state); --deg: 1turn; }
.player::before, .player::after { position: absolute; content: ''; width: 90%; height: 90%; border: inherit; border-radius: inherit; border-color: inherit; animation: rot 4s linear infinite var(--state); --deg: 2turn; }
.player::after { width: 80%; height: 80%; --deg: 3turn; }
.player:hover { width: 210px; height: 220px; }
.player > div { width: 70%; height: 70%; background: url('https://638183.freep.cn/638183/small/texture/pgy.png') no-repeat center/70% 70%; border-color: transparent purple transparent cyan; filter: drop-shadow(0 0 30px gray); --deg: 2turn; }
#vid {position: absolute; width: 100%; height: 100%; object-fit: cover; mask: radial-gradient(transparent 20%, red); -webkit-mask: radial-gradient(transparent 20%, red); opacity: .6; pointer-events: none; }
@keyframes rot { to { transform: rotate(var(--deg)); } }
</style>
<div id="papa">
<audio id="aud" src="https://file.uhsea.com/2507/b939596137e0786f2113dea3ff888ee3YF.mp3" autoplay="" loop=""></audio>
<video id="vid" src="https://bpic.588ku.com/video_listen/588ku_video/23/09/25/19/15/22/video65116bcae9f0d.mp4" autoplay loop muted></video>
<div id="player" class="player">
<div class="player"></div>
</div>
</div>
<script type="module">
import { FS } from 'https://638183.freep.cn/638183/web/ku/FS.js';
FS(papa, player);
</script>
@马黑黑
老师 晚上好,学生交作业,请指正{:4_190:} 漂亮。欣赏朵宝好帖{:4_187:} 漂亮,欣赏问好!{:4_199:} 欣赏佳作,问候朵拉。
页:
[1]