back

Disable plugins

Plugins can be disabled globally or on a case-by-case basis depending on the user’s browser.

You can do so by setting the disabled property for any of the plugin (lottie, parallax, preloader, reveal, scroll, smooth, sticky, transition).

To completely disable a plugin simply set the disabled property to true:

luge.settings({
  transition: {
    disabled: true
  }
})

Otherwise, Browser detection can be used. The disabled value can then be either:

luge.settings({
  smooth: {
    disabled: 'mobile'
  }
})
luge.settings({
  smooth: {
    disabled: {safari: '<=12'}
  }
})
  • or an Array of both for more complex targeting:
luge.settings({
  smooth: {
    disabled: ['mobile', {safari: '<=12'}]
  }
})

The default setting is:

luge.settings({
  smooth: {
    disabled: ['tablet', 'mobile', { safari: '<=12' }]
  },
  sticky: {
    disabled: ['tablet', 'mobile']
  }
})