花潮论坛

搜索
热搜: 活动 交友 discuz
楼主: 绿叶清舟

[灌水] 看看有没有

[复制链接]
  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-7-9 11:23 | 显示全部楼层
    本帖最后由 绿叶清舟 于 2022-7-25 19:37 编辑

    旋转木马 - 吴思瑶
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-7-13 20:37 | 显示全部楼层
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-7-16 19:22 | 显示全部楼层
    本帖最后由 绿叶清舟 于 2022-7-17 15:24 编辑

    <style>
    #papa1 { left: -214px; width: 1000px; height: 700px; box-shadow: 4px 4px 30px #000; border-radius: 6px; overflow: hidden; position: relative; }
    #mama {position: absolute; width: inherit; height: inherit; left: 0; top: -700px; background: #ccc url('https://pic.imgdb.cn/item/62d3b7a5f54cd3f93741a4e0.jpg') no-repeat center / cover; }
    #mama input { border: none; outline: none; opacity: .75; cursor: pointer; }
    #mama p { margin: 0; padding: 0; }
    .playbox { position: absolute; left: 10px; top: 10px; padding: 10px; font: normal 1em sans-serif; color: #eee; background: rgba(255,255,255,.2); border-radius: 8px; backdrop-filter: blur(1px); overflow: hidden; box-shadow: 1px 1px 2px rgba(0,0,0,.15); z-index: 100; }
    #btnplay { width: 30px; height: 30px; border-radius: 50%; }
    #btnplay:hover { background: #aaa; color: #ff0000; }
    #papa > img { position: absolute; border: none; outline: none; }
    #ufo2 { left: 0; top: 0; width: 64px; height: 80px; transition: all 2s; }
    #tang1 { top: 520px; width: 120px; height: 120px; opacity: .52; cursor: pointer; }
    @keyframes up { to { transform: translateY(-700px); } }
    @keyframes down { to { top: 0px; } }
    </style>

    <div id="papa1">
            <img id="ufo2" src="https://pic.imgdb.cn/item/62d3b7cdf54cd3f93741db03.gif" alt="" />
            <img id="tang1" src="https://pic.imgdb.cn/item/62d3b7e3f54cd3f93741fc54.gif" alt="" />
            <div id="mama">
                    <div class="playbox">
                            <p id="geci" style="font-size: 1.2em; text-shadow: 1px 1px 1px #222">stand by ... </p>
                            <p style="display: flex; align-items: center; gap: 4px; margin-top: 10px;">
                                    <input id="btnplay" type="button" value=">" />
                                    <input id="slider" type="range" min="0" max="100" value="0" />
                                    <span id="per">0%</span>
                            </p>
                    </div>
            </div>
    </div>
    <audio id="aud" src="http://music.163.com/song/media/outer/url?id=545335770.mp3" loop="loop"></audio>

    <script>
    let lrcAr = [ ['0.00','一朵云 - 者耳'], ['120.00','热'] ];
    let num = (min, max) => Math.floor(Math.random() * (max-min+1)) + min;

    tang1.style.left = num(0,924) + 'px';
    ufo2.style.left = num(0,924) + 'px';

    tang1.onclick = () => {
            tang1.style.opacity = 1;
            ufo2.style.left = tang1.offsetLeft  + 30 + 'px';
            ufo2.style.top = tang1.offsetTop - 60 + 'px';
            setTimeout(() => {
                    ufo2.style.animation = tang1.style.animation = 'up 4s forwards';
            },2200);
            setTimeout(() => {
                    mama.style.animation = 'down 4s forwards';
                    aud.play();
            },4300);
    }

    slider.onmousedown = () => aud.pause();
    slider.onchange = () => { aud.currentTime = slider.value * aud.duration / 100; aud.play(); }
    btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();
    aud.addEventListener('playing', () => btnplay.value = '||');
    aud.addEventListener('pause', () => btnplay.value = '>');

    aud.addEventListener('timeupdate', () => {
            let prog = 100 * aud.currentTime / aud.duration;
            slider.value = prog;
            per.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
            for(j=0; j<lrcAr.length; j++){
                    if(aud.currentTime >= lrcAr[j][0]) geci.innerHTML = lrcAr[j][1];
            }
    });

    let toMin = (val) => {
            if(!val) return '0:0';
            val = Math.floor(val);
            return parseInt(val / 60) + ':' +  parseFloat(val % 60);
    }
    </script>
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-7-19 16:15 | 显示全部楼层
    本帖最后由 绿叶清舟 于 2022-7-19 16:20 编辑

    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-8-3 10:23 | 显示全部楼层
    本帖最后由 绿叶清舟 于 2022-8-13 22:00 编辑

    <style>
    #papa { left: -214px; width: 1024px; height: 640px; background: gray url('https://638183.freep.cn/638183/Pic/81/yanhua.jpg') no-repeat center/cover; box-shadow: 3px 3px 20px #000; position: relative; }
    #canv { position: absolute; }
    #disc { position: absolute; width: 40px; height: 40px; left: 10px; bottom: 10px; background: conic-gradient(red,orange,yellow,green,teal,blue,purple); mask: radial-gradient(transparent 4px,red 0); -webkit-mask: radial-gradient(transparent 4px,red 0); border-radius: 50%; cursor: pointer; animation: rot 2s linear infinite; }
    #lrcbox { position: absolute; left: 60px; bottom: 10px;  font: bold 22px / 40px sans-serif; color: #859670; text-shadow: 2px 2px 4px #222; }
    @keyframes rot { to { transform: rotate(360deg); } }
    </style>

    <div id="papa">
            <span id="lrcbox">纯音乐 - 烟花易冷</span>
            <canvas id="canv"></canvas>
            <span id="disc"></span>
    </div>

    <script>
    (function() {
            let num = (min, max) => Math.floor(Math.random() * (max-min+1)) + min;
            let ctx = canv.getContext('2d');
            let w = canv.width = papa.offsetWidth, h = canv.height = papa.offsetHeight, particles = [], idx = 0, aud = new Audio();
          
            aud.src = 'https://music.163.com/song/media/outer/url?id=1942250548.mp3';
            aud.loop = true;
            aud.autoplay = true;
          
            disc.style.animationPlayState = aud.paused ? 'paused' : 'running';
            disc.onclick = () => aud.paused ? aud.play() : aud.pause();
            aud.addEventListener('playing',()  => disc.style.animationPlayState = 'running');
            aud.addEventListener('pause',()  => disc.style.animationPlayState = 'paused');

            canv.onclick = function(event) {
                    let x = event.offsetX || event.layerX, y = event.offsetY || event.layerY;
                    createParticle(x, y);
            }

            function createParticle(x, y) {
                    let count = 100, radius = 10;
                    for (let j = 0; j < count; j ++) {
                            let p = {};
                            let angle = 360 / count * j, radian = Math.PI / 180 * angle;
                            p.radius = radius;
                            p.startX = x;
                            p.startY = y;
                            p.radian = radian;
                            p.rgb = `${num(0,255)},${num(0,255)},${num(0,255)},`;
                            p.alpha = (Math.floor(Math.random() * 101)) / 100;
                            p.speed = (Math.random() * 5) + 0.4;
                            p.radius = p.speed;
                            particles.push(p);
                    }
            }

            function drawParticle() {
                    ctx.fillStyle = 'transparent';
                    ctx.fillRect(0, 0, w, h);
                    for (let j = 0; j < particles.length; j++) {
                            let p = particles[j];
                            let resultX = Math.cos(p.radian) * p.radius;
                            let resultY = Math.sin(p.radian) * p.radius + 0.4;
                            p.startX += resultX;
                            p.startY += resultY;
                            p.radius *= 1 - p.speed / 100;
                            p.alpha -= 0.005;
                            if (p.alpha <= 0) {
                                    particles.splice(j, 1);
                                    continue;
                            }
                            ctx.beginPath();
                            ctx.arc(p.startX, p.startY, 1, 0, 360, false);
                            ctx.closePath();
                            ctx.fillStyle = 'rgba(' + p.rgb + p.alpha + ')';
                            ctx.fill();
                    }
            }

            function fade() {
                    ctx.globalCompositeOperation = 'destination-out';
                    ctx.fillStyle = 'rgba(0, 0, 0, .1)';
                    ctx.fillRect(0, 0, w, h);
                    ctx.globalCompositeOperation = 'lighter';
            }

            function render() {
                    idx ++;
                    fade();
                    drawParticle();
                    if(idx > 20) {
                            createParticle(Math.random() * w, Math.random() * h/2);
                            idx = 0;
                    }
                    requestAnimationFrame(render);
            }

            render();
    })();
    </script>
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-8-14 21:24 | 显示全部楼层
    本帖最后由 绿叶清舟 于 2022-8-14 21:26 编辑

    <style>
    #papa { margin: auto; left: -250px; top: 80px;  width: 1100px; height: 700px; background: #985b0a url('https://pic.imgdb.cn/item/62ee5ecf16f2c2beb1091005.jpg') no-repeat; box-shadow: 3px 3px 20px -3px #000; position: relative; }

    #disc { position: absolute; width: 40px; height: 40px; left: 10px; top: 10px; background: conic-gradient(#000000,#969696,#000000,#969696,#000000); mask: radial-gradient(transparent 4px,red 0); -webkit-mask: radial-gradient(transparent 4px,red 0); border-radius: 50%; cursor: pointer; animation: rot 2s linear infinite; }
    #tit { position: absolute; left: 60px; top: 10px;  font: bold 22px / 40px sans-serif; color: #D0EBEB; text-shadow: 1px 1px 2px black; }
    @keyframes rot { to { transform: rotate(360deg); } }
    @keyframes circle { from { transform: rotate(0) translate(50px); } to { transform: rotate(360deg) translate(50px); } }
    </style>

    <div id="papa">
            
            <div id="tit">败家的娘们</div>
            <div id="disc"></div>
    </div>
    <BR><BR><BR><BR><BR><BR>
    <script>
    let stepX = 1, stepY = 1, moveX= 0, moveY = 0;
    let aud = new Audio();

    aud.src = 'http://music.163.com/song/media/outer/url?id=29772061.mp3';
    aud.loop = true;
    aud.autoplay = true;

    disc.style.animationPlayState = aud.paused ? 'paused' : 'running';
    disc.onclick = () => aud.paused ? aud.play() : aud.pause();
    aud.addEventListener('playing',()  => disc.style.animationPlayState = 'running');
    aud.addEventListener('pause',()  => disc.style.animationPlayState = 'paused');

    motion();

    function motion() {
            moveX += stepX;
            moveY += stepY;
            mama.style.left = moveX + 'px';
            mama.style.top = moveY + 'px';
            requestAnimationFrame(motion);
            if(moveX < 0 || moveX >= papa.offsetWidth - mama.offsetWidth) stepX = -stepX;
            if(moveY < 0 || moveY >= papa.offsetHeight - mama.offsetHeight) stepY = -stepY;
    }
    </script>
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-9-7 21:12 | 显示全部楼层
    本帖最后由 绿叶清舟 于 2022-9-19 19:13 编辑

    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    擦汗
    2022-8-3 08:55
  • 签到天数: 480 天

    [LV.9]以坛为家II

    971

    主题

    2万

    回帖

    6万

    积分

    版主

    Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

    花潮美女龙春风拂面蝴蝶情怀心曲飞扬七彩绚丽紫色情节音画大师天籁妙音共看流星我心永远幸福快乐指尖上的流年花潮版主

     楼主| 发表于 2022-9-13 20:06 | 显示全部楼层
    本帖最后由 绿叶清舟 于 2022-9-13 22:43 编辑

    ·
    静音 单曲 轮播
    +
    添歌


    评分

    参与人数 1威望 +30 金钱 +60 经验 +30 收起 理由
    小九 + 30 + 60 + 30 赞一个!

    查看全部评分

    回复 支持 反对

    使用道具 举报

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

    本版积分规则

    小黑屋|手机版|Archiver|服务支持:DZ动力|huachaowang.com Inc. ( 蜀ICP备17032287号-1 )

    GMT+8, 2025-12-16 21:32 , Processed in 0.069022 second(s), 24 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

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