loading kind of works

This commit is contained in:
Jordan Vidrine 2025-01-03 17:04:03 -06:00
parent 4a996e6c80
commit 4f381a5da7

View File

@ -71,11 +71,8 @@ export default class Rewind extends Component {
}px)`; }px)`;
if ( if (
children[i].classList.contains("background-2") && children[i].classList.contains("background-2") &&
target.scrollTop % 3 === 0 target.scrollTop % 6 === 0
) { ) {
let imageUrl = `/plugins/discourse-rewind/images/bg-frames/bg-2_${this.imageIndex}.png`;
children[i].style.background = `url(${imageUrl})`;
children[i].style.backgroundSize = "contain";
children[i].style.setProperty( children[i].style.setProperty(
"--frame", "--frame",
`var(--frame-${this.imageIndex})` `var(--frame-${this.imageIndex})`