Explorar el Código

Googlebot crawler doesn't see the content revealed by wow.js

https://github.com/matthieua/WOW/issues/196
tags/v1.0.0
hawkeye116477 hace 6 años
padre
commit
5a6221f50c
No account linked to committer's email address
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9
    1
      assets/js/script.js

+ 9
- 1
assets/js/script.js Ver fichero

@@ -164,7 +164,15 @@ var wow = new WOW({
offset: 100, // distance to the element when triggering the animation (default is 0)
mobile: false // trigger animations on mobile devices (default is true)
});
wow.init();

//https://github.com/matthieua/WOW/issues/196#issuecomment-348734401
var scrolled = false;
$(window).on('scroll', function() {
if (!scrolled) {
scrolled = true;
wow.init();
}
})

/* ========================================================================= */
/* Google Map Customization

Cargando…
Cancelar
Guardar