Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scrollable

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrollable

Components for layer composition and scrolling with React.js

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

React Scrollable

Join the chat at https://gitter.im/yahoo/scrollable build status Test Coverage Code Climate

A library that brings smooth scrolling interactions to modern mobile browsers.

React Scrollable is a set of React.js components that provide an abstraction for layer composition and scroll events. The components provide a declarative API for independently positioning of each layer to create high performance, high frame rate interactions.

The project is tested in many iOS devices from iPhone 3GS to iPhone 6/6 plus and some variety of Android phones. Example uses cases can range from simple parallax effects to fully interactive gesture based websites that feel like native iOS/Android Apps.

Many examples are provided on the examples/ folder.

Development

Tests and coverage
$ npm test
Build
$ npm run build
Development (or just to see the examples)
$ npm run dev

Open http://localhost:8080/examples/ after starting up the server to check out the examples.

Development auto-watch unit tests (without coverage)
$ karma start

Notice: The current version throws a lot of warnings about 'owner-based context'. To ignore these messages you can use the following regex on the Chrome Dev-Tools console filter: ^((?!owner-based).)*$

Contributions Guideline

Pull requests and issues are welcome. Not only for code but also for documentation and examples.

  • Use a code editor with JSXHint or run jsxhint before committing
  • Use a code editor with .editorconfig support or read the file and follow whitespace conventions
  • Please, pay attention to the tests, and ideally provide new tests alongside pull requests. If you are not used to testing, send pull requests anyway, but understand it might take a while until a maintainer can merge your pull request

TODO notes

  • Server-side prefixes are hardcoded for webkit now (because of PhamtomJS) and ideally it should have multiple props in the compatibility order (e.g. -moz-transform:...;-webkit-transform:...;transform:...;)
  • I keep forgetting to create the nested scrolling example and the "Flipboard without canvas" example.
  • Size/Position dependencies in lower level, look at ExtJS anchorTo for a higher level API eventually
  • FPS meter on examples, maybe optional parameter
  • Styles are currently only on the examples, need to figure out a way to be in JavaScript and still be able to override via some API. Should it even be allowed?
  • Figure out a build system to support:
    • CommonJS require if installed by npm
    • Dev build with warnings and/or performance profiling helpers
    • require('scrollable/scroller') or require('scrollable').Scroller
    • npm run dev as is, but compile examples folder with react.min.js
  • scrollingX and scrollingY props are mandatory <Scroller> for now. Explore ways to make this both optional with reasonable dafault and update/pull request Zynga Scroller to change this at runtime.

FAQs

Package last updated on 03 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc