Home » Php » php – How to use stick_in_parent offset according to resolution

php – How to use stick_in_parent offset according to resolution

Posted by: admin February 25, 2020 Leave a comment

Questions:

First of all, I am sorry to use a translator.

I use sticky kit.

I want to give offset values

  1. below 1024 resolution
  2. below 767 resolution.

What should I do with this code?

var window_width = jQuery(window).width();
if (window_width < 1024) {
  jQuery(".title .sub-title").stick_in_parent({
    offset_top: 60
  });
}
How to&Answers: