注册时间2015-8-30
在线时间 小时
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2022-10-7 14:50
|
显示全部楼层
本帖最后由 一师 于 2025-10-16 17:15 编辑
- .wall{width:970px;height: 600px;
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;z-index: 1;
- }
- div.book-wrap {width: 420px;
- height:350px;
- position: relative;
- left: 500px;
- top: 140px;
- transform: rotatez(4deg)rotateX(24deg);
- transform-style: preserve-3d;}
- div.page { width: 100%;
- height: 100%;
- position: absolute;
- border-radius: 2px;border: 15px solid #cccccc;
- transform-origin: left;display: flex;
- justify-content: center;
- align-items: center;
- box-shadow: 0px 0px 0px 2px #000000;
- background-size:100% 100%;}
- div.book-content {animation: roll 22s 22s 1;background-image: url(https://s1.ax1x.com/2022/10/05/x19mNj.jpg)}
- div.book-content1{animation: roll 4s 18s 2;background-image: url(https://s1.ax1x.com/2022/10/05/x19n4s.jpg)}
- div.book-content2{animation: roll 6s 16s infinite;background-image: url(https://s1.ax1x.com/2022/10/05/x19KCn.jpg)}
- div.book-content3{animation: roll 8s 14s 1;background-image: url(https://s1.ax1x.com/2022/10/05/x19M3q.jpg)}
- div.book-content4{animation: roll 10s 12s infinite;background-image: url(https://s1.ax1x.com/2022/10/05/x19Qg0.jpg)}
- div.book-content5{animation: roll 12s 10s 1;background-image: url(https://s1.ax1x.com/2022/10/05/x193uT.jpg)}
- div.book-content6{animation: roll 14s 8s 2;background-image: url(https://s1.ax1x.com/2022/10/05/x198DU.jpg)}
- div.book-content7{animation: roll 16s 6s infinite;background-image: url(https://s1.ax1x.com/2022/10/05/x19GbF.jpg)}
- div.book-content8{animation: roll 18s 4s 2;background-image: url(https://s1.ax1x.com/2022/10/05/x19YE4.jpg)}
- div.book-content9{animation: roll 20s 2s infinite;background-image: url(https://s1.ax1x.com/2022/10/05/x1CvYd.jpg)}
- .stop div.book-content {animation: roll 22s 22s 1;animation-play-state: paused;}
- .stop div.book-content1{animation: roll 4s 18s 2;animation-play-state: paused;}
- .stop div.book-content2{animation: roll 6s 16s infinite;animation-play-state: paused;}
- .stop div.book-content3{animation: roll 8s 14s 1;animation-play-state: paused;}
- .stop div.book-content4{animation: roll 10s 12s infinite;animation-play-state: paused;}
- .stop div.book-content5{animation: roll 12s 10s 1;animation-play-state: paused;}
- .stop div.book-content6{animation: roll 14s 8s 2;animation-play-state: paused;}
- .stop div.book-content7{animation: roll 16s 6s infinite;animation-play-state: paused;}
- .stop div.book-content8{animation: roll 18s 4s 2;animation-play-state: paused;}
- .stop div.book-content9{animation: roll 20s 2s infinite;animation-play-state: paused;}
- @keyframes roll {
- 0% {transform: rotateY(0deg);opacity: 1;}
- 4% {transform: rotateY(-8deg);opacity: 1;}
- 30% {transform: rotateY(-170deg);opacity: 1;}
- 40% {transform: rotateY(-178deg);opacity: 1;}
- 50% {transform: rotateY(-180deg);opacity: 1;}
- 100% {transform: rotateY(-180deg);opacity: 1;}
- }
- div#midground{width:970px;height: 600px;
- z-index: 1;
- animation: cc 3s linear infinite;
- }
- .stop div#midground {animation-play-state: paused;}
- @keyframes cc {0% {opacity: 1;background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(21, 4, 255, 0) 25%,#FB0505 75%);filter:hue-rotate(0deg)contrast(150%)brightness(80%);}
- 50% {opacity: 1;background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(21, 4, 255, 0) 29%,#0521FB 85%);filter:hue-rotate(0deg)contrast(140%)brightness(110%);}
- 100% {opacity:1 ;background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(8, 237, 73, 0) 29%,#05FB51 85%);filter:hue-rotate(0deg)contrast(120%)brightness(100%);}
- }
- div#foreground{
- font-weight: bold;
-
- margin: 0px 0px;
- z-index: 5;
- animation: aitf 0.15s linear infinite;
- }
- .stop div#foreground{animation-play-state: paused;}
- @keyframes aitf {
- 0% { filter:hue-rotate(360deg)drop-shadow(0 0 38px #000080)contrast(120%)brightness(240%) ; }
- 100% {filter:hue-rotate(0deg)drop-shadow(0 0 18px #fff000)contrast(120%)brightness(140%) ; }
- }
- div#top{width: 970px;height: 600px;
- background: url("http://www.100sucai.com/online/4234/images/stars.png")0 0/90% 90%;
- z-index: 4;opacity: 1;
- animation: da 50s linear infinite;
- }
- .stop div#top{animation-play-state: paused;}
- @keyframes da {
- 0%{
- background-position: 200% 0;filter:hue-rotate(0deg)contrast(180%)brightness(340%);
- }
- 100%{
- background-position: 0 600%;filter:hue-rotate(0deg)contrast(180%)brightness(240%);
- }
- }
- div#cp{width: 150px;height: 150px;
- border:2px solid #ffffff; -webkit-mask: radial-gradient(transparent 10px,red 0); border-radius: 50%; cursor: pointer;220px;background:url(http://pan.yinhuabbs.cn/view.php/a60d7a6c4172d96080d4e23d80d9af48.png)0 0/100% 100%,url(https://s1.ax1x.com/2022/09/08/vqu2H1.jpg)0px 0px/160% 100%;
- z-index: 4; margin: 420px 50px;
- animation: pp 10s linear infinite;
- }
- .stop div#cp{
- animation-play-state: paused;
- }
- @keyframes pp {0% { transform: rotateY(0deg)rotate(-360deg);filter: hue-rotate(180deg)brightness(150%)drop-shadow(0 0 10px #00ff00)}
- }
- div#plane {position: absolute;left: 450px;top: 40px;width: 400px;height: 400px;animation: move 0.12s linear infinite;background: url
- ("http://pan.yinhuabbs.cn/view.php/ee1f2925815538fb07ef4afd9fda49d8.png")0 0/20% 20%;z-index: 3;
- }
- .stop div#plane{animation-play-state: paused;}
- @keyframes move {0%{opacity: 1;transform:translate(0%,0%)scale(1);}
- 99% {opacity: 1;filter:hue-rotate(360deg);transform:translate(0%,0%)scale(2);}
- 100%{opacity: 0;filter:hue-rotate(0deg);transform:translate(0%,0%)scale(3);}
- }
- </style>
- <div style="z-index: 127;width: 970px; height: 600px; margin-top:30px; margin-left:-170px; box-shadow: 0px 0px 0px 2px #ffffff, 0px 0px 0px 15px #880000; overflow: hidden;transform: rotate(0deg);background: linear-gradient(54deg, #0B0B0B 0%,#6E6BE5 100%);text-align: center;">
- <div class="HT"><div class="wall" id="testImg">
- <div class="wall" >
- <div class="book-wrap" id="testImg">
- <div class="page book-content" > </div>
- <div class="page book-content1" > </div>
- <div class="page book-content2" > </div>
- <div class="page book-content3" > </div>
- <div class="page book-content4" > </div>
- <div class="page book-content5" > </div>
- <div class="page book-content6" > </div>
- <div class="page book-content7" > </div>
- <div class="page book-content8" > </div>
- <div class="page book-content9" > </div>
- </div></div>
- <div class="wall" id="midground"></div>
- <div class="wall" id="foreground"><div class="lrc">
- <ul id="ullrc">
- </ul>
- </div></div>
- <div class="wall" id="top"> </div>
- <div class="wall" id="plane"><img src="http://pan.yinhuabbs.cn/view.php/0ea5380aee9a56531bb64a28659e02d0.png" style="width: 100%; height: 100%;" > </div>
- <div class="wall" id="cp"> </div>
- </div>
- </div>
- <audio autoplay="" id="MusicPlayer" src="http://link.hhtjim.com/kw/6968586.mp3" loop="" ></audio>
- <div class="btn">
- <div id="testImg" onclick="bf()">
- <input type="button" id="testBtn" value="||"style="width: 40px; height: 40px;border-radius: 0%;color: #ffffff;font-size:20px;font-weight:bold;border:2px solid #ffffff;-webkit-background-clip : text;overflow: hidden;"></input ></div></div>
- </div></div>
- <style type="text/css">
- .HT{
- width: 1px;position: absolute;top:0px; left:0px;
- }
- #MusicPlayer{
- width: 250px;
- display: block;
- margin: 0 auto;
- }
- .btn{
- display: block;z-index: 300;
- margin: 0px 0px;position: absolute;top:540px; left:920px;
- }
- .lrc{
- width: 980px;
- height: 140px;
- overflow: hidden;filter:drop-shadow(#000000 1px 0 0)drop-shadow(#000000 0 1px 0)drop-shadow(#000000 -1px 0 0) drop-shadow(#000000 0 -1px 0);
- display: block;position: absolute;top:500px; left:60px;z-index: 30;
- margin: 0 auto;
- }
- .lrc #ullrc{
- width: 100%;
- padding: 0;
- list-style: none;
- transition: 0.3s all ease;
- margin: 0;
- }
- /*歌词普通样式*/
- .lrc #ullrc li{
- height: 80px;
- line-height: 60px;
- font-family:华文隶书;
- font-size: 0px;
- color: #000078;transform: translate(0%,0%);
- font-weight: normal;
- transition: .3s all ease;/*一定要加上不然看着突兀*/
- list-style-type: none;
- text-align: center;
- display: block;
- width: 100%;
- margin: 0 auto;background: linear-gradient(180deg, #07F6AE 18%,#2B40C0 31%,#8AFF00 46%,#F9FBFD 65%,#B92939 80%);
- -webkit-text-fill-color : transparent; /*将颜色设置为透明*/
- -webkit-background-clip : text; /*背景裁剪,必不可少*/
- }
- /*动态歌词样式*/
- .lrc #ullrc li.active{
- font-size: 40px;
- color: #ff0000;transform: translate(0%,0%);
- font-weight: bold;
- }
- /*歌词动画*/
- .img_border{ position: absolute;top:0px; left:0px;z-index: 250;display: block;}
- .img_border #aplay{ }
- .z360z{animation:rotating 0s linear infinite;}
- @keyframes rotating {0% { transform: rotateY(-90deg)rotate(-180deg);filter: hue-rotate(180deg)brightness(150%)drop-shadow(0 0 10px #00ff00)}
- 50% { transform:rotateY(0deg) rotatex(0deg);filter: hue-rotate(360deg)brightness(100%)drop-shadow(0 0 8px #000080) }
- 100% { transform: rotateY(0deg)rotatex(0deg);filter: hue-rotate(0deg)brightness(150%)drop-shadow(0 0 16px #ff0000)}
- }
- </style>
- <script>var lrc =`[00:00.40]菊
- [ver:v1.0]
- [ti:6968586]
- [00:00.60]菊-王庆爽
- [00:01.20]词:房千 曲:姚晓强
- [00:32.55]你笑看天下悄悄滴绽放芳华
- [00:42.01]梦里追寻着春天春天的步伐
- [00:51.13]你却不愿华丽转身把爱深深埋下
- [01:00.65]凌寒而立寂寞中有多少快乐潇洒
- [01:10.38]谁知你那滚烫的心已将冰雪融化
- [01:19.89]啊残阳下月朦胧
- [01:25.30]月朦胧清风中
- [01:29.59]你的香已飘遍千家万家
- [02:08.62]你笑看天下悄悄滴绽放芳华
- [02:18.15]梦里追寻着春天春天的步伐
- [02:27.24]你却不愿华丽转身把爱深深埋下
- [02:36.65]凌寒而立寂寞中有多少快乐潇洒
- [02:46.46]谁知你那滚烫的心已将冰雪融化
- [02:55.71]啊残阳下月朦胧
- [03:00.77]月朦胧清风中
- [03:05.41]你的香已飘遍千家万家
- [03:15.85]啊啊啊
- [03:30.31]香已飘遍千家万家
- `;
- function $(id) {return document.getElementById(id);
- }//这样写以后getid方便
- function getLrcArray() {
- var parts = lrc.split("\n");
- for (let index = 0; index < parts.length; index++) {
- parts[index] = getLrcObj(parts[index]);
- }
- return parts;
- function getLrcObj(content) {
- var twoParts = content.split("]");
- var time = twoParts[0].substr(1);
- var timeParts = time.split(":");
- var seconds = +timeParts[1];
- var min = +timeParts[0];
- seconds = min * 60 + seconds;
- var words = twoParts[1];
- return{
- seconds: seconds,
- words: words,
- };
- }
- }
- var lrcArray = getLrcArray();
- function inputLrc() {
- for (let index = 0; index < lrcArray.length; index++) {
- var li = document.createElement("li");
- li.innerText = lrcArray[index].words;
- $("ullrc").appendChild(li);
- }
- }
- inputLrc();
- function setPosition() {
- var index = getLrcIndex();
- if (index == -1) {
- return;
- }
- var lrc_li_height = 80, lrc_ul_height = 70;
- var top = index * lrc_li_height + lrc_li_height / 2 - lrc_ul_height / 2;
- if (top < 0) {
- top = 0;
- }
- $("ullrc").style.marginTop = -top + "px";
- var activeLi = $("ullrc").querySelector(".active");
- if(activeLi){
- activeLi.classList.remove("active");
- }
- $("ullrc").children[index].classList.add("active");
- }
- var turn = 0;
- function getLrcIndex(){
- var time = $("MusicPlayer").currentTime + turn;
- for (var index = 0; index < lrcArray.length; index++) {
- if (lrcArray[index].seconds > time) {
- return index - 1;
- }
- }
- }
- $("MusicPlayer").ontimeupdate = setPosition;
- </script>
- <script>
- function bf() {
- var audio = document.getElementById('MusicPlayer');
- var bf=document.getElementById("bf");
- if (audio !== null) {
- if (audio.paused) {
- audio.play(); //audio.play();
- bf.innerText="";
- } else {
- audio.pause();
- bf.innerText="";
- }
- }
- }
- var image = document.getElementById("testImg"),
- button = document.getElementById("testBtn");
-
- if (image.classList && image && button) {
- button.onclick = function() {
- if (this.value == '||') {
- image.classList.add('stop');
- this.value = '➤';
- } else {
- image.classList.remove('stop');
- this.value = '||';
- }
- };
- }
- var my_audio =document.getElementById("MusicPlayer");my_audio.onended = function(){document.getElementById("aplay").className="";};my_audio.onplaying = function()
- {document.getElementById("aplay").className="z360z";};my_audio.onpause = function(){document.getElementById("aplay").className="";};var lyric = parseLyric(songkrc);
- </script>
复制代码
|
|