

<script>
// Seleccionar el elemento del header
var header = document.getElementById('brx-header');
// Función que se ejecutará cuando se haga scroll
function handleScroll() {
// Obtener la posición actual del scroll
var scrollPosition = window.scrollY || window.pageYOffset;
// Verificar si la posición del scroll es mayor a 200px
if (scrollPosition > 180) {
// Agregar la clase fb-scrolling al header
header.classList.add('fb-scrolling');
}
if (scrollPosition == 0) {
// Eliminar la clase fb-scrolling del header
header.classList.remove('fb-scrolling');
}
}
// Agregar un evento de escucha al evento scroll
window.addEventListener('scroll', handleScroll);
</script>