Art and culture

We’re Recapping All The Biggest & Boldest Moments From Love Island Australia

We’re Recapping All The Biggest & Boldest Moments From Love Island Australia

The latest season of Love Island Australia is underway and between all the bombshells and beauties, there are bound to be some bold choices. 

We’ve partnered up with Vodka Cruiser to break down each week’s breakups, hookups, and of course, some spicy romance.

Brought to you by bold news anchors Pam & Bek, AKA our in-house Love Island experts, we’re swapping the personalised drink bottles for a Vodka Cruiser and kicking back to recap each week’s wildest moves. 

From incoming texts to Sophie Monk zingers and so much more, we’ve got every juicy moment covered so you don’t miss a thing. Check out the full series below.

function initVideoCarousel(el) {
const track = el.querySelector(‘.video-carousel-track’);
const left = el.querySelector(‘.carousel-arrow.left’);
const right = el.querySelector(‘.carousel-arrow.right’);
const items = el.querySelectorAll(‘.video-carousel-item’);
const itemWidth = 291;
const visibleCount = Math.floor(el.offsetWidth / itemWidth);
const maxIndex = Math.max(0, items.length – visibleCount);
let currentIndex = 0;
const players = [];

const pauseAll = () => {
players.forEach(p => {
p.pause();
p.currentTime(0);
});
};

const scrollToIndex = (index) => {
currentIndex = Math.max(0, Math.min(index, maxIndex));
track.style.transform = `translateX(-${currentIndex * itemWidth}px)`;
updateCentering(); // ensure centering stays consistent after any move
};

const playCurrent = () => {
const player = players[currentIndex];
if (player) {
player.currentTime(0);
player.play();
}
};

items.forEach((item, index) => {
const tag = item.querySelector(‘video-js’);
const player = videojs.getPlayer(tag.id);
players.push(player);

player.on(‘play’, () => {
players.forEach(p => {
if (p !== player) {
p.pause();
p.currentTime(0);
}
});
});
});

// — ADDED: dynamic centering (device-agnostic) —
const num = (v) => {
v = parseFloat(v);
return isNaN(v) ? 0 : v;
};

const getGap = () => {
if (items.length {
let total = 0;
items.forEach((it) => {
total += it.getBoundingClientRect().width; // no margins included
});
const gap = getGap();
total += Math.max(0, items.length – 1) * gap;
return total;
};

const updateCentering = () => {
const contentWidth = getContentWidth();
// compare against the visible viewport width for the track, not the whole page
const containerWidth = Math.min(track.getBoundingClientRect().width, el.getBoundingClientRect().width);

const shouldCenter = contentWidth = maxIndex;
}
};
// — /ADDED —

// Initial boot
scrollToIndex(0);
playCurrent();
updateCentering();

left?.addEventListener(‘click’, () => {
if (currentIndex > 0) {
pauseAll();
scrollToIndex(currentIndex – 1);
playCurrent();
}
});

right?.addEventListener(‘click’, () => {
if (currentIndex {
clearTimeout(rszT);
rszT = setTimeout(() => {
updateCentering();
// keep transform consistent with currentIndex after layout changes
if (!track.classList.contains(‘is-centered’)) {
track.style.transform = `translateX(-${currentIndex * itemWidth}px)`;
}
}, 120);
});
}

function setupAllCarousels(container) {
container.querySelectorAll(‘.video-carousel-wrapper’).forEach(initVideoCarousel);
}
setTimeout(() => {
setupAllCarousels(document);
}, 300);

.vjs-hide-big-play-button .vjs-big-play-button {
display: none !important;
}

/* ADDED: when content fits, center the slides and ignore transforms */
.video-carousel-track.is-centered {
display: flex; /* ensure horizontal layout even if theme CSS differs */
justify-content: center; /* center-align items */
transform: none !important; /* hard-stop any translateX */
}

Saacha Neilson

Saacha Neilson

Native Writer

Saacha is a Native Content Producer at PEDESTRIAN.TV, your inside source for brands, products, and events worth caring about. When she’s not typing at lightning speed, she’s busy fishing for compliments on her baking, dissecting Real Housewives drama, or hunting for the next obsession to add to her cart.

function sharePost() {
if (navigator.share) {
navigator.share({
title: document.title,
url: window.location.href
}).then(() => console.log(‘Successful share’))
.catch((error) => console.log(error));
} else {
alert(“Your browser doesn’t support the Web Share API”);
}
}

The post We’re Recapping All The Biggest & Boldest Moments From Love Island Australia appeared first on PEDESTRIAN.TV .

  • For more: Elrisala website and for social networking, you can follow us on Facebook
  • Source of information and images “news”

Related Articles

Leave a Reply

Back to top button

Discover more from Elrisala

Subscribe now to keep reading and get access to the full archive.

Continue reading