Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't understand how use "responsive" #55

Closed
leran opened this issue Aug 20, 2018 · 1 comment
Closed

I don't understand how use "responsive" #55

leran opened this issue Aug 20, 2018 · 1 comment

Comments

@leran
Copy link

leran commented Aug 20, 2018

Please, give an examples what should the object look like

@somewebmedia
Copy link
Owner

somewebmedia commented Aug 29, 2018

Hi @leran, you use the same settings just within the media query you want, like this:

{
  top: 20,
  responsive: {
    1024: {
      top: 0
    }
  }
}

So this means, the sticky will have the top set to 0 below the 1024px of the screen width.

And you also use mobileFirst if you want the direction of the queries to go from lover to higher.

So you could write it like this:

{
  top: 0,
  mobileFirst: true,
  responsive: {
    1024: {
      top: 20
    }
  }
}

Or you can use it to disable the plugin for specific resolutions:

{
  responsive: {
    1024: {
      disable: true
    }
  }
}

So with this the plugin will be disabled below 1024px screen width.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants