Published by ssisques.Filed under Uncategorised. Total of no comments in the discussion.
var headerBg = document.getElementById('bg') window.addEventListener('scroll',function(){ headerBg.style.opacity = 1 - +window.pageYOffset/550+'' headerBg.style.top = +window.pageYOffset+'px' headerBg.style.backgroundPositionY = - +window.pageYOffset/2+'px' }) $('.ancla').on('click', function(e){ e.preventDefault(); var strAncla = '#' + $(this).data('ancla'); $('html,body').animate({scrollTop: $(strAncla).offset().top}, 2000); }); Big Good:la hamburguesa de McDonald’s que ayudará a más de 2.000 productores españoles a hacer frente a la crisis del Covid-19 Big Good. Asà [...]