加林森 发表于 2022-5-2 11:59

本帖最后由 加林森 于 2022-6-1 14:46 编辑 <br /><br />红影 发表于 2022-5-2 09:24
嗯嗯,一起欢度五一节
就是就是,有福共享!

<style>
.mama { left: -202px; width: 1000px; height: 563px; background: teal url('https://pic.imgdb.cn/item/6297098409475431298d7a5e.jpg') no-repeat; box-shadow: 2px 2px 4px #60419b; position: relative; }
.mama::before, .mama::after { position: absolute; content: ''; width: 100px; height: 100px; left: 20px; top: 20px; border-radius: 50%; background: white; }
.wrap { left: 540px; top: 520px; width: 200px; height: 20px; box-shadow: 1px 1px 2px gray; border-radius: 8px; background-color: tan;#60419b background-image: linear-gradient(rgba(255,0,0,.25), rgba(255,0,0,.15)); background-repeat: no-repeat; background-size:0% 100%; position: absolute; display: flex; cursor: pointer; }
.ball { position: relative; width: 20px; height: 20px; border-radius: 50%;#60419b display: block; }
.ball::before { content: ''; position: absolute; width: inherit; height: inherit; border-radius: 50%;#60419b background: radial-gradient(at 35% 40%, rgba(255,0,0,.5), rgba(255,0,0,.6)); }
@keyframes goRight { from { transform: translate(0) rotate(0); } to {transform: translate(100px) rotate(1turn); } }
@keyframes goLeft { from { transform: translate(100px) rotate(0); } to {transform: translate(0) rotate(-1turn); } }

</style>

<div class="mama">
        <div class="wrap"></div>
        <audio id="aud" src="https://music.163.com/song/media/outer/url?id=1938150848.mp3" autoplay="autoplay" loop="loop"></audio>
</div>

<script>

let wrap = document.querySelector('.wrap'), aud = document.querySelector('#aud');
let step = -1, dir = 'goRight';
let gcolor = () => '#' + Math.random().toString(16).substr(-6), prog = (tt, cc) => 100 * cc / tt;

Array.from({length: 5}).forEach((ele) => {
        ele = document.createElement('span');
        ele.className = 'ball';
        ele.setAttribute('style','background: linear-gradient(120deg, ' +gcolor() + ', ' + gcolor() + ')');
        wrap.appendChild(ele);
});

let ball = document.querySelectorAll('.ball'), total = ball.length;

wrap.onclick = () => aud.paused ? aud.play() : aud.pause();

function ballgo() {
        total = total + step;
        if(total < 0) {
                step = 1;
                total = 0;
                dir = 'goLeft';
        }
        if(total >= ball.length) {
                step = -1;
                total = ball.length - 1;
                dir = 'goRight';
        }
        ball.style.animation = dir + ' 2s linear forwards';
        wrap.style.transform = dir == 'goRight'? 'rotate(1deg)' : 'rotate(-1deg)';
        let timer = setTimeout(ballgo, 2000);
}

aud.addEventListener('timeupdate', () => wrap.style.backgroundSize = prog(aud.duration, aud.currentTime) + '%, 100%');

ballgo();

</script>

梦油 发表于 2022-5-2 13:31

加林森 发表于 2022-5-2 11:53
中午好!

你好!你没有午睡的习惯吗?我几十年来一直没有睡午觉。

加林森 发表于 2022-5-2 13:38

梦油 发表于 2022-5-2 13:31
你好!你没有午睡的习惯吗?我几十年来一直没有睡午觉。

原来要睡觉的,现在没有了,干脆就不睡觉了。

梦油 发表于 2022-5-2 13:54

加林森 发表于 2022-5-2 13:38
原来要睡觉的,现在没有了,干脆就不睡觉了。

看来,你的身体挺好的,比我强多了。

红影 发表于 2022-5-2 14:43

加林森 发表于 2022-5-2 11:59
就是就是,有福共享!

我们暂时假期和非假期一样了,反正放假到现在了。

加林森 发表于 2022-5-2 18:00

红影 发表于 2022-5-2 14:43
我们暂时假期和非假期一样了,反正放假到现在了。

不着急,好好休养一下也好。

加林森 发表于 2022-5-2 18:04

梦油 发表于 2022-5-2 13:54
看来,你的身体挺好的,比我强多了。

我比你年轻嘛。

梦油 发表于 2022-5-2 20:43

加林森 发表于 2022-5-2 18:04
我比你年轻嘛。

我真想退回三十年去。{:4_169:}

加林森 发表于 2022-5-2 20:56

梦油 发表于 2022-5-2 20:43
我真想退回三十年去。

可以幻想一下的

梦油 发表于 2022-5-3 10:46

加林森 发表于 2022-5-2 20:56
可以幻想一下的

哈哈哈!有时我也想,如果,我现在还是五六十岁还愿意干些什么。

加林森 发表于 2022-5-3 10:51

梦油 发表于 2022-5-3 10:46
哈哈哈!有时我也想,如果,我现在还是五六十岁还愿意干些什么。

这样就对了。梦油兄快去收礼,我送你的!

红影 发表于 2022-5-3 20:36

加林森 发表于 2022-5-2 18:00
不着急,好好休养一下也好。

慢慢关着吧,谁知道什么时候能出去呢。

加林森 发表于 2022-5-3 20:41

红影 发表于 2022-5-3 20:36
慢慢关着吧,谁知道什么时候能出去呢。

只有耐心等待了。我们都希望你们那里快点好起来的。

红影 发表于 2022-5-4 09:59

加林森 发表于 2022-5-3 20:41
只有耐心等待了。我们都希望你们那里快点好起来的。

谢谢队长,只能耐心等了。

加林森 发表于 2022-5-4 10:01

红影 发表于 2022-5-4 09:59
谢谢队长,只能耐心等了。

好的好的。

红影 发表于 2022-5-5 09:34

加林森 发表于 2022-5-4 10:01
好的好的。

今天该上班的都已经上班了吧。封控中的我都不知道五一放几天了。

加林森 发表于 2022-5-5 09:54

红影 发表于 2022-5-5 09:34
今天该上班的都已经上班了吧。封控中的我都不知道五一放几天了。

放5天啊。

红影 发表于 2022-5-5 12:14

加林森 发表于 2022-5-5 09:54
放5天啊。

对我来说一直放假中,所以也没关注{:4_173:}

加林森 发表于 2022-5-5 12:29

红影 发表于 2022-5-5 12:14
对我来说一直放假中,所以也没关注

没有关系的,自己玩自己的就行了。

红影 发表于 2022-5-5 21:38

加林森 发表于 2022-5-5 12:29
没有关系的,自己玩自己的就行了。

嗯嗯,继续关着。
页: 1 [2] 3
查看完整版本: 《中国人》-- 刘德华 祝大家五一节快乐!