Assembly Instructions
{
const activePanel = document.querySelector('.active-panel');
if (!activePanel) return;
// Force reflow to make sure transition is detected
activePanel.offsetHeight;
// Listen for transition end (once)
const onTransitionEnd = () => {
$el.style.paddingBottom = `${activePanel.offsetHeight}px`;
};
activePanel.addEventListener('transitionend', onTransitionEnd, { once: true });
// Fallback: in case there is no transition
setTimeout(() => {
$el.style.paddingBottom = `${activePanel.offsetHeight}px`;
}, 300); // match your CSS transition duration
})
"
class="relative flex flex-row gap-0.5 pb-[319px] transition-all duration-100 ease-linear lg:gap-1 lg:pb-[343px]"
>
Coops
Leghorn Cottage
Orpington Lodge
Product Comming Soon
Rhode Island Homestead
Brahma Coop
Runs
Orpington Lodge
Orpington Lodge & Rhode Island Walk-In
Rhode Island Run
Brahma Run
Video comming soon
Vinyl Roof for 6x8 Brahma Run Extension
Waterers
Accessories
Radiant Heater
Climate Controller Fan
All In One Chicken Coop Door