注册时间2014-8-8
在线时间 小时
- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
 
 
 楼主 |
发表于 2024-10-26 07:06
|
显示全部楼层
 
 
 
 本帖最后由 娟子 于 2024-10-26 07:17 编辑  
 
醉醉老师早上好!这是代码,您一看就明白。选择您喜欢的美图,配上符合主题内容的歌曲就成了。-  
 
  
- </i><br /><br /><style>
 
 -         :root        {--w:1416px;--h:650px;}
 
 -   #oBlk {
 
 -     margin-left: 50% ; left:calc(-0.5 * var(--w));
 
 -     margin-top:-20px;
 
 -     width: var(--w);
 
 -     height: var(--h);
 
 -     box-shadow: 3px 3px 10px #000;
 
 -     overflow: hidden;
 
 -     position: absolute;
 
 -   }
 
  
-   #oBlk::before,
 
 -   #oBlk::after {
 
 -     position: absolute;
 
 -     content: '';
 
 -     left: var(--curX0);
 
 -     top: 0px;
 
 -     width: 100%;
 
 -     height: 100%;
 
 -     background: url('图片地址') no-repeat center / cover;
 
 -  
 
 -   }
 
 -                             
 
 -   #oBlk::after {                      
 
 -     left: var(--curX1);
 
 -     transform: scaleX(-1);
 
 -   }
 
 -   #comp {height:calc(var(--h) + 100px);}
 
 - </style>
 
 - <div id="oBlk"></div>
 
 - <div id="comp"></div>
 
 - <script>
 
 - {
 
 - eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('5 4=6.g;5 7=1.0,8=0,2=0,3=4,b;5 9=()=>{2-=7;3-=7;a(2<=-4)2=4;a(3<=-4)3=4;8=3+(2>=0?1:-1);6.c.d(\'--2\',2+\'e\');6.c.d(\'--3\',8+\'e\');b=f(9)};9();',17,17,'||curX0|curX1|blkWidth|let|oBlk|step|tune|moving|if|raf|style|setProperty|px|requestAnimationFrame|offsetWidth'.split('|'),0,{}))
 
 - }  
 
 - </script>
 
  
- </div><br><br><br><br>
 
 - <audio src="歌曲地址"loop autoplay>    
 
 - </td></tr>
 
 
  复制代码 
 
 
 |   
 
 
 
 |