react-viewstack
v1.0.3
Published
Simple viewstack with support for animated transitions. Alternative to ReactTransitionGroup with better control over in/out animation direction and transitions effects out of the box.
Maintainers
Readme
React ViewStack
Simple viewstack with support for animated transitions. Alternative to ReactCSSTransitionGroup with better control over in/out animation direction and transition effects out of the box. Like a (much) simpler version of FullPage.js written in react.
Usage
For development
Checkout, install npm dependencies, then you have available scripts:
npm run buildto build (clean+lint+test+compile) a dist versionnpm run compileto compile a dist versionnpm run cleanto clean dist directorynpm run coverage:reportto view code coverage report on port9002npm run devto start a dev server with storybook environment on port9001npm run lintto lint both js and stylesnpm run lint:jsto pass esLint over the codenpm run lint:js:fixto correct fixable js lint errorsnpm run lint:cssto pass stylelint over the codenpm run lint:css:fixto correct fixable style lint errors - using stylefmtnpm run testfor a single pass of testsnpm run test:watchfor a continous test mode
For consumption
- [ ] Todo
Library format
Conforming to CommonJS format
Handy urls
Testing APIs in use:
- https://github.com/producthunt/chai-enzyme
- https://github.com/domenic/sinon-chai
Todo
- [x] Describe usage
- [x] Add esLint
- [x] Add stylelint
- [x] Fix lint errors
- [x] Add tests
- [ ] Dedupe webpack configs for prod/tests/storybook
- [ ] Better tests
- [ ] Better coverage
- [ ] Use extract-text-plugin to provide separate stylesheet
- [ ] Use css modules to prevent global scope pollution
- [ ] Use animation events as detailed here
- [ ] Add more transition effects
- [ ] Better visualisation in storybook
- [ ] Better readme
- [ ] Publish on NPM
- [ ] Promote
Contributing
- Make sure your IDE supports .editorconfig
Previous work
Shoutout and thanks to:
- @arunoda for
- react-storybook
- react-storybook-simple-demo
- Being source of inspiration on how to develop react components in isolation
