全控音画《浪漫红尘缘dj(红蔷薇)DJ默涵》
本帖最后由 亚伦影音工作室 于 2023-2-13 16:02 编辑 <br /><br /><style>#papa { margin: 10px -230px ; width: 1100px; height: 640px; background: url(http://chuangshicdn.data.mvbox.cn/album/22/03/14/22031417263445440463.gif)0 0/20%20%,linear-gradient(80deg, #000080, #000090, #000000, #111111); box-shadow: 0px 0px 0px 2px #cccccc, 0px 0px 0px 10px #880000; position: relative; display: grid; place-items: center; z-index: 10000; overflow:hidden;transform:rotateX(0deg) scale(1)}
#papa:hover #fullscreen { display:block ;}
#fullscreen { position: absolute; top:10%; left:80%;color:#FF0000; filter:drop-shadow( 1px 1px 1px #000000);font: normal 2em华文隶书; opacity: 1; cursor: pointer; z-index: 11}
.photo {width: 100%;
height: 100%;
position: absolute;z-index: -2;
-webkit-mask-image: radial-gradient(black 35% ,transparent 85%);
top:0px; left:0px;filter:contrast(120%)brightness(100%);
opacity: 0;
animation-name: round ;animation-duration: 90s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes round {
7% {opacity: 0;}
16% {opacity: 1;}
19% {opacity: 0;}
}
img:nth-child(1) {
animation-delay: 84s;
}
img:nth-child(2) {
animation-delay: 78s;
}
img:nth-child(3) {
animation-delay: 72s;
}
img:nth-child(4) {
animation-delay: 66s;
}
img:nth-child(5) {
animation-delay: 60s;
}
img:nth-child(6) {
animation-delay: 54s;
}
img:nth-child(7) {
animation-delay: 48s;
}
img:nth-child(8) {
animation-delay: 42s;
}
img:nth-child(9) {
animation-delay: 36s;
}
img:nth-child(10) {
animation-delay: 30s;
}
img:nth-child(11) {
animation-delay: 24s;
}
img:nth-child(12) {
animation-delay: 18s;
}
img:nth-child(13) {
animation-delay: 12s;
}
img:nth-child(14) {
animation-delay: 6s;
}
img:nth-child(15) {
animation-delay: 0s;
}
.stop img:nth-child(1) {
animation-play-state: paused;
}
.stop img:nth-child(2){
animation-play-state: paused;
}
.stopimg:nth-child(3){
animation-play-state: paused;
}
.stop img:nth-child(4){
animation-play-state: paused;
}
.stop img:nth-child(5){
animation-play-state: paused;
}
.stop img:nth-child(6){
animation-play-state: paused;
}
.stop img:nth-child(7) {
animation-play-state: paused;
}
.stop img:nth-child(8) {
animation-play-state: paused;
}
.stop img:nth-child(9) {
animation-play-state: paused;
}
.stop img:nth-child(10) {
animation-play-state: paused;
}
.stop img:nth-child(11) {
animation-play-state: paused;
}
.stop img:nth-child(12) {
animation-play-state: paused;
}
.stop img:nth-child(13) {
animation-play-state: paused;
}
.stop img:nth-child(14) {
animation-play-state: paused;
}
.stop img:nth-child(15) {
animation-play-state: paused;
}
</style>
<style>
.set {
position: absolute;z-index: 1;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.set div {
position: absolute;
display: block;
user-select: none;
}
.set div img {pointer-events: none;
max-width: 90px;
max-height: 120px;
}
.set div:nth-child(1) {
left: 20%;
animation: animate 15s linear infinite;
animation-delay: -7s;
}
.set div:nth-child(2) {
left: 50%;
animation: animate 20s linear infinite;
animation-delay: -5s;
}
.set div:nth-child(3) {
left: 70%;
animation: animate 25s linear infinite;
}
.set div:nth-child(4) {
left: 0%;
animation: animate 15s linear infinite;
animation-delay: -5s;
}
.set div:nth-child(5) {
left: 85%;
animation: animate 18s linear infinite;
animation-delay: -10s;
}
.set div:nth-child(6) {
left: 15%;
animation: animate 12s linear infinite;
animation-delay: -7s;
}
.set div:nth-child(7) {
left: 60%;
animation: animate 14s linear infinite;
animation-delay: -7s;
}
.stop .set div:nth-child(1) {
animation-play-state: paused;
}
.stop .set div:nth-child(2) {
animation-play-state: paused;
}
.stop .set div:nth-child(3) {
animation-play-state: paused;
}
.stop .set div:nth-child(4) {
animation-play-state: paused;
}
.stop .set div:nth-child(5) {
animation-play-state: paused;
}
.stop .set div:nth-child(6) {
animation-play-state: paused;
}
.stop .set div:nth-child(7) {
animation-play-state: paused;
}
@keyframes animate {
0% {
opacity: 0;
top: -10%;
transform: translateX(20px) rotate(0deg);filter:hue-rotate(30deg);
}
10% {
opacity: 1;
}
20% {
transform: translateX(-20px) rotate(45deg);
}
40% {
transform: translateX(-20px) rotate(90deg);
}
60% {
transform: translateX(-20px) rotate(135deg);
}
80% {
transform: translateX(-20px) rotate(180deg);
}
100% {
top: 110%;
transform: translateX(-20px) rotate(225deg);
}
}
.set2 {
transform: scale(2) rotateY(180deg);
filter: blur(2px);
}
.set3 {
transform: scale(0.8) rotateY(30deg);
filter: blur(4px);
}
</style>
<div id="papa">
<audio id="MusicPlayer" src="https://www.qqmc.com/mp3/music202118209.mp3" autoplay loop></audio>
<span id="fullscreen">全屏观赏</span>
<div id="testImg" >
<img alt="" class="photo" src="https://365.tf/disk/tf/1676290487.jpg" />
<img alt="" class="photo"src="https://365.tf/disk/tf/1676341203.jpg" />
<img alt=""class="photo"src="https://365.tf/disk/tf/1676364179.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676320722.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676280389.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676270572.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676289931.jpg" />
<img alt="" class="photo" src="https://www.kumeiwp.com/sub/filestores/2023/02/02/648408cabf20c4655c3eb32a84893b46.jpg" />
<img alt="" class="photo" src="https://www.kumeiwp.com/sub/filestores/2023/02/05/4c7ef7af54065bcd017bcc13e214207e.jpg" />
<img alt="" class="photo"src="https://www.kumeiwp.com/sub/filestores/2023/02/02/19c9f45206f6f64759dc830d6dc86cb5.jpg" />
<img alt=""class="photo"src="https://www.kumeiwp.com/sub/filestores/2023/02/05/5927de67e7926ddc3e5d3cc2314e39de.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676344632.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676312933.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676318434.jpg" />
<img alt="" class="photo" src="https://365.tf/disk/tf/1676336339.jpg" />
<div class="set">
<div><img src="https://365.tf/disk/tf/1676290871.png" alt="1"/></div>
<div><img src="https://365.tf/disk/tf/1676290871.png" alt="2"/></div>
<div><img src="https://365.tf/disk/tf/1676272017.png" alt="3"/></div>
<div><img src="https://365.tf/disk/tf/1676334769.png" alt="4"/></div>
<div><img src="https://365.tf/disk/tf/1676315333.png" alt="5"/></div>
<div><img src="https://365.tf/disk/tf/1676354932.png" alt="6"/></div>
<div><img src="https://365.tf/disk/tf/1676300401.png" alt="7"/></div>
</div>
<div class="set set2">
<div><img src="https://365.tf/disk/tf/1676290871.png" alt="1"/></div>
<div><img src="https://365.tf/disk/tf/1676290871.png" alt="2"/></div>
<div><img src="https://365.tf/disk/tf/1676272017.png" alt="3"/></div>
<div><img src="https://365.tf/disk/tf/1676334769.png" alt="4"/></div>
<div><img src="https://365.tf/disk/tf/1676315333.png" alt="5"/></div>
<div><img src="https://365.tf/disk/tf/1676354932.png" alt="6"/></div>
<div><img src="https://365.tf/disk/tf/1676300401.png" alt="7"/></div>
</div>
<div class="set set3">
<div><img src="https://gd-hbimg.huaban.com/6bff8158e8b423af148bf1bafa6ee376062b5660557f9-KJfz5I" alt="1"/></div>
<div><img src="https://gd-hbimg.huaban.com/4ca7dc79970e9a1ced0ca50db75d5ca88655e4b99764d-vcjOPf_fw1200" alt="2"/></div>
<div><img src="https://gd-hbimg.huaban.com/b978d5a53cb8588eb260b255e77bf0a43dcfacaa4094f-r9PLCh" alt="3"/></div>
<div><img src="https://gd-hbimg.huaban.com/502982504a79dec5fdc21ada1d367f98fca1c42363c2-vsQ1QB" alt="4"/></div>
<div><img src="https://gd-hbimg.huaban.com/53baea3ef847ce62f3cd14d6bcf28a1dd38dcfb413a458-zFDnEI" alt="5"/></div>
<div><img src="https://gd-hbimg.huaban.com/88239c2c9f15dc1404b5f7482de4545a7de0c0023681-pYrOFi" alt="6"/></div>
<div><img src="https://gd-hbimg.huaban.com/7d8ce15ce12eff55d582583ead7721833cde633f2f119b-kY5vDz_fw1200" alt="7"/></div>
</div>
</div>
<div class="bfbj">
<divid="btn">
<div id="img_border"></div></div>
<div class="lrc">
<div class="p"> <liid="ullrc" >
</li>
</div>
</div>
</div>
</div>
<style>
.bfbj{
width: 100%; height: 100%;margin: 0px 0px;position: absolute;
}
#MusicPlayer{
width: 600px;
display: block;
margin: 0 auto;
}
#btn{
display: block;
margin: 0 ;
}
.lrc{
width: 980px;
height: 140px;position: absolute;top:90%; left:10%;
z-index: 3;
overflow: hidden;
display: block;
margin: 0px 0px;
}
.lrc #ullrc{
width: 100%;
padding: 0;
list-style: none;filter:drop-shadow(#000000 1px 0 0)drop-shadow(#000000 0 1px 0)drop-shadow(#000000 -1px 0 0) drop-shadow(#000000 0 -1px0);
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;/*歌词显示对齐方式:left center right,默认居中(center)对齐*/
display: block;
width: 100%;
margin: 0 auto;
}
/*动态歌词样式*/
.lrc #ullrc li.active{
font-size: 45px;color: #ff0000;
text-align:center;
transform: translate(0%,0%);
font-weight: normal;-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-image:linear-gradient(50deg, #ffff00, #ff0000, #fff000, #00ff00);
background-position: 0px 0;
-webkit-animation:loop 3s linear 2;
}
@-webkit-keyframes loop{
0%{background-position: -800px 0;filter:hue-rotate(360deg)contrast(180%)brightness(500%);}
}
#img_border{display:inline-block;width:150px;height:150px;position: absolute;top:10%; left:5%;z-index: 30; transition: .3s all ease;animation:rotating 10s linear infinite;background:url(https://pic.imgdb.cn/item/639c602fb1fccdcd36980aad.png)0px 0px/100% 100%;border-radius:0%;}
@keyframes rotating{
0%{transform: rotate(-360deg);filter:hue-rotate(360deg)}
100%{transform: rotate(0deg);}
}
</style>
<style type="text/css">.items { animation: slider 0.26s linear infinite ;}
@keyframes slider {from {opacity: 1;filter:hue-rotate(360deg)contrast(180%)brightness(200%);}
50% {opacity: 1;}to {opacity: 1;filter:hue-rotate(0deg)contrast(140%)brightness(100%);}}
</style>
<script >
var lrc = `浪漫红尘缘dj(红蔷薇)DJ默涵_Club_Mix_国语_女广场
也许是前世的注定
让我们今生目相遇
对你的深情一眼万年
心动如花
似水流年
感谢上天牵的红线
让幸福在心中蔓延
就算岁月只唔了容颜
能给我们爱的誓言
红尘中你是我唯一的爱恋
付出再多也心甘情愿
你就是我今生最美的情缘
我要陪你走过岁岁年年
红尘中我为你深深的挂牵
真心相伴的每个瞬间
你就是我今生最美的遇见
我要和你相伴幸福到永远
啊
感谢上天牵的红线
让幸福在心中蔓延
就算岁月之误了容颜
难给我们爱的誓言
红尘中你是我唯一的爱恋
付出再多也心甘情愿
你就是我今生最美的情缘
我要陪你走过岁岁年年
红尘中
我为你深深的挂牵
真心相伴的每个瞬间
你就是我今生最美的遇见
我要和你相伴
幸福到永远
红尘中我为你深深的挂牵
歌词不全
`;
function $(id) {
return document.getElementById(id);
}//这样写以后getid方便
function getLrcArray() {
var parts = lrc.split("\n");
for (let index = 0; index < parts.length; index++) {
parts = getLrcObj(parts);
}
return parts;
function getLrcObj(content) {
var twoParts = content.split("]");
var time = twoParts.substr(1);
var timeParts = time.split(":");
var seconds = +timeParts;
var min = +timeParts;
seconds = min * 60 + seconds;
var words = twoParts;
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.words;
$("ullrc").appendChild(li);
}
}
inputLrc();
function setPosition() {
var index = getLrcIndex();
if (index == -1) {
return;
}
var lrc_li_height = 80, lrc_ul_height = 60;
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.classList.add("active");
}
var turn = 0;
function getLrcIndex(){
var time = $("MusicPlayer").currentTime + turn;
for (var index = 0; index < lrcArray.length; index++) {
if (lrcArray.seconds > time) {
return index - 1;
}
}
}
$("MusicPlayer").ontimeupdate = setPosition;
var image = document.getElementById("testImg"),
button = document.getElementById("btn");
if (image.classList && image && button) {
button.onclick = function() {
if (this.value == '.') {
image.classList.remove('stop');
this.value = '*';
} else {
image.classList.add('stop');
this.value = '.';
}
};
}
img_border.onclick = () => MusicPlayer.paused ? MusicPlayer.play() : MusicPlayer.pause();
MusicPlayer.addEventListener('playing', () => img_border.style.animationPlayState = 'running');
MusicPlayer.addEventListener('pause', () => img_border.style.animationPlayState = 'paused');
stars.style.animationPlayState = MusicPlayer.paused ? 'paused' : 'running';
MusicPlayer.addEventListener('playing', () =>stars.style.animationPlayState = 'running');
MusicPlayer.addEventListener('pause', () =>stars.style.animationPlayState = 'paused');
ztbs.style.animationPlayState = MusicPlayer.paused ? 'paused' : 'running';
MusicPlayer.addEventListener('playing', () =>ztbs.style.animationPlayState = 'running');
MusicPlayer.addEventListener('pause', () =>ztbs.style.animationPlayState = 'paused');
</script >
<script>
let fs = true;
fullscreen.onclick = () => {
fs ? (fullscreen.innerText = '退出全屏', papa.requestFullscreen()) : (fullscreen.innerText = '全屏观赏', document.exitFullscreen());
fs = !fs;
};
</script>
欣赏老师佳作! 这么多漂亮的花朵,轮播的人物也很美。欣赏亚伦老师好帖{:4_187:}
页:
[1]