M
M
MegaPuxapb2020-07-08 17:27:40
JavaScript
MegaPuxapb, 2020-07-08 17:27:40

Slinky menu, connect only on mobile?

There is such a menu plugin https://slinky.js.org/
how to properly initialize it only on a mob?

is this option okay?

if (windowWidth < 992) {
  var slinky = $('.js-menu').slinky({
    title: true
  });
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
secretsergey, 2020-07-08
@secretsergey

Not
if (windowWidth < 992) {
A
if ($(window).width() < 992){

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question