Put this on custom js:
(async function setBantFlyingPersistent10() {
const srcUrl = '
https://bantculture.com/bant/src/'; try {
// 1. Get list
const response = await fetch(srcUrl);
const text = await response.text();
const parser = new DOMParser();
const doc = parser.parseFromString(text, 'text/html');
const allLinks = Array.from(doc.querySelectorAll('a'))
.map(a => a.getAttribute('href'))
.filter(href => href && href.match(/\.(jpg|jpeg|png|webp|gif)$/i));
if (allLinks.length === 0) return console.error("No images found.");
// 2. Modified loop to extract exactly 10 images
const selectedImages = [];
for (let i = 0; i < 10; i++) {
const randomIdx = Math.floor(Math.random() * allLinks.length);
selectedImages.push(srcUrl + allLinks[randomIdx]);
}
// 3. Create main container (outside the body)
let mainContainer = document.getElementById('bant-fly-container-10');
if (!mainContainer) {
mainContainer = document.createElement('div');
mainContainer.id = 'bant-fly-container-10';
document.documentElement.appendChild(mainContainer);
}
// Container styles
Object.assign(mainContainer.style, {
position: 'fixed', top: '0', left: '0', width: '100vw', height: '100vh',
zIndex: '-999999', pointerEvents: 'none', overflow: 'hidden'
});
// 4. Create the 10 visual elements (based on the array of 10)
const size = Math.min(window.innerWidth, window.innerHeight) / 4;
const particles = selectedImages.map((url) => {
const div = document.createElement('div');
const blurVal = Math.floor(Math.random() * 8);
Object.assign(div.style, {
position: 'absolute', width: `${size}px`, height: `${size}px`,
backgroundImage: `url('${url}')`, backgroundSize: 'contain',
backgroundRepeat: 'no-repeat', filter: `blur(${blurVal}px)`,
opacity: '0.8', willChange: 'transform'
});
mainContainer.appendChild(div);
return {
el: div,
x: Math.random() * window.innerWidth,
y: Math.random() * window.innerHeight,
vx: (Math.random() - 0.5) * 3,
vy: (Math.random() - 0.5) * 3
};
});
// 5. Movement engine (Animation)
function animate() {
const w = window.innerWidth;
const h = window.innerHeight;
particles.forEach(p => {
p.x += p.vx; p.y += p.vy;
// Reappear on the opposite side (wrap-around)
if (p.x < -size) p.x = w; if (p.x > w) p.x = -size;
if (p.y < -size) p.y = h; if (p.y > h) p.y = -size;
p.el.style.transform = `translate3d(${p.x}px, ${p.y}px, 0)`;
});
requestAnimationFrame(animate);
}
// 6. Transparency persistence
setInterval(() => {
document.body.style.setProperty('background', 'transparent', 'important');
document.body.style.setProperty('background-color', 'transparent', 'important');
}, 500);
animate();
console.log("10 flying images activated.");
} catch (error) {
console.error("nigger:", error);
}
})();