mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 18:17:49 +01:00
bye
This commit is contained in:
parent
165c6a53ae
commit
93ffc6ea42
1 changed files with 4 additions and 24 deletions
|
@ -2227,8 +2227,7 @@ a {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 13em 14em <%=color2%>;
|
box-shadow: 0 13em 14em <%=color2%>;
|
||||||
filter: blur(5px);
|
filter: blur(5px);
|
||||||
transition: opacity 0.2s ease;
|
opacity: 1;
|
||||||
opacity: 0;
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2244,8 +2243,7 @@ a {
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
box-shadow: 0 13em 14em <%=color2%>;
|
box-shadow: 0 13em 14em <%=color2%>;
|
||||||
filter: blur(5px);
|
filter: blur(5px);
|
||||||
transition: opacity 0.2s ease;
|
opacity: 1;
|
||||||
opacity: 0;
|
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3249,27 +3247,9 @@ function resumeProgress() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleOpacity() {
|
|
||||||
const element = document.getElementById('shadow'); // Replace 'yourElementId' with the ID of your element
|
|
||||||
const video = document.getElementById('video'); // Assuming your video element has an ID of 'video'
|
|
||||||
const currentOpacity = parseFloat(window.getComputedStyle(element).opacity);
|
|
||||||
|
|
||||||
if (video.paused) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (currentOpacity === 1) {
|
|
||||||
element.style.transition = 'opacity 3s ease'; // Adjust the duration as needed
|
|
||||||
element.style.opacity = 0;
|
|
||||||
} else {
|
|
||||||
element.style.transition = 'opacity 3s ease'; // Adjust the duration as needed
|
|
||||||
element.style.opacity = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onload = function() {
|
|
||||||
setInterval(toggleOpacity, 1500);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
video.addEventListener('timeupdate', () => {
|
video.addEventListener('timeupdate', () => {
|
||||||
|
|
Loading…
Reference in a new issue