0.0.3 • Published 5 years ago

@knowbly/postcss-overflow-scrolling-touch v0.0.3

Weekly downloads
27
License
MIT
Repository
github
Last release
5 years ago

PostCSS Overflow Scrolling Touch

PostCSS plugin

Put native-feeling elastic/inertia scrolling whenever we have an element with overflow: scroll (or overflow-x / overflow-y).

.foo {
  overflow-x: hidden;
  overflow-y: auto;
}
.foo {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

Usage

postcss([ require('@knowbly/postcss-overflow-scrolling-touch') ])

See PostCSS docs for examples for your environment.