加林森 发表于 2021-11-26 13:06

本帖最后由 加林森 于 2022-4-13 18:26 编辑 <br /><br />樵歌 发表于 2021-11-26 07:16
兄弟贴的都是歌喜欢的呵。
喜欢就好

<style>
        .mnBox {
                position: relative; display: flex; justify-content: center; align-items: center; width: 1024px; height: 600px; left: -214px; perspective: 2000px; }
        .imgBox {
                --w: 190px; --h: 360px; position: absolute; width: var(--w); height: var(--h); cursor: pointer; transform-style: preserve-3d; animation: rotate 15s linear infinite; }
        .imgBox img { width: var(--w); height: var(--h); position: absolute; }
        @keyframes rotate { 100% { transform: rotateY(360deg); } }
</style>

<div class="mnBox">
        <div class="imgBox"></div>
</div>

<script language="javascript">
let picAr = [
        "https://pic.imgdb.cn/item/62568991239250f7c5228eb6.jpg",
        "https://pic.imgdb.cn/item/62568ae9239250f7c524f426.jpg",
        "https://pic.imgdb.cn/item/62568b81239250f7c525ee71.jpg",
        "https://pic.imgdb.cn/item/62568c6d239250f7c5277982.jpg",
        "https://pic.imgdb.cn/item/62568d11239250f7c5286249.jpg",
        "https://pic.imgdb.cn/item/62568e24239250f7c529fe0b.jpg",
        "https://pic.imgdb.cn/item/62568eca239250f7c52b158b.jpg",
        "https://pic.imgdb.cn/item/62568f47239250f7c52c05c4.jpg",
        "https://pic.imgdb.cn/item/6256905d239250f7c52ded04.jpg",
        "https://pic.imgdb.cn/item/625690fd239250f7c52ede1d.jpg",
        "https://pic.imgdb.cn/item/62569224239250f7c5314f52.jpg",
        "https://pic.imgdb.cn/item/625692e2239250f7c5326c09.jpg",
        "https://pic.imgdb.cn/item/6256938d239250f7c5336bd0.jpg"
];
let iBox = document.querySelector(".imgBox");
let hStr = "";
let angle = 360 / picAr.length;
let tz = Math.tan(Math.PI / 180 * (180 - angle) /2 ) * iBox.clientWidth / 2;
for(j=0; j<picAr.length; j++) {
        hStr += `<div style="transform: rotateY(${angle*j}deg) translateZ(${tz}px);"><img alt="" src="${picAr}" /></div>\n`;
}
iBox.innerHTML = hStr;
let au = document.createElement("audio");
au.src = "https://music.163.com/song/media/outer/url?id=1409133799.mp3";
au.autoplay = true;
au.loop = true;
document.querySelector(".mnBox").appendChild(au);
iBox.onmousemove = function(){ iBox.style.animationPlayState = "paused"; }
iBox.onmouseout = function(){ iBox.style.animationPlayState = "running"; }
iBox.onclick = function() {
        au.paused ? (au.play(), this.style.animationPlayState = "running") : (au.pause(), this.style.animationPlayState = "paused");
}

</script>

红影 发表于 2021-11-26 22:58

这首歌又是头一次听,好听{:4_187:}

加林森 发表于 2021-11-27 10:07

本帖最后由 加林森 于 2021-12-28 15:00 编辑 <br /><br />红影 发表于 2021-11-26 22:58
这首歌又是头一次听,好听
好的好的,只要喜欢就行。

<iframe style="margin:0px auto;border-radius:45px 0px 40px 0px;" width="720" height="405" frameborder="0" src="https://www.ixigua.com/7037865200137011751 autoplay=0" referrerpolicy="unsafe-url" allowfullscreen=""></iframe>

<iframe style="margin:0px auto;border-radius:45px 0px 40px 0px;" width="720" height="405" frameborder="0" src="https://www.ixigua.com/iframe/7013030337827570189?autoplay=0" referrerpolicy="unsafe-url" allowfullscreen=""></iframe>

<iframe style="margin:0px auto;border-radius:45px 0px 40px 0px;width="720" height="405" frameborder="0" src="https://www.ixigua.com/iframe/7029911737889456655?autoplay=0" referrerpolicy="unsafe-url" allowfullscreen=""></iframe>
页: 1 2 [3]
查看完整版本: 【雁归来】- 徐远书 送大家!