https://github.com/future-team/ph-router-transition
React router transition
https://github.com/future-team/ph-router-transition
Last synced: 17 days ago
JSON representation
React router transition
- Host: GitHub
- URL: https://github.com/future-team/ph-router-transition
- Owner: future-team
- License: mit
- Created: 2017-03-24T08:12:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-28T08:09:09.000Z (over 9 years ago)
- Last Synced: 2025-02-24T09:33:29.138Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://future-team.github.io/ph-router-transition/doc/index.html
- Size: 837 KB
- Stars: 4
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ph-router-transition
一个基于React的移动端页面切换组件。
## Install
```
$ npm install ph-router-transition --save
```
## Usage
```code
import RouterTransition from 'ph-router-transition';
const PageTransition = (props)=>(
{console.log('end!!!');}} timeout={500}>{props.children}
);
let Index = class index extends Component {
render() {
return (
...
);
}
};
...
```
## Documentation
文档随时更新,请关注:
[http://future-team.github.io/ph-router-transition/doc/index.html](http://future-team.github.io/ph-router-transition/doc/index.html)
## Examples
[http://future-team.github.io/ph-router-transition/example/index.html](http://future-team.github.io/ph-router-transition/example/index.html)
```
$ cd ph-router-transition
$ npm install
$ bower install
生成文件:
build:npm run build || gulp build
开发调试:
demo:npm run demo || gulp demo
测试:
npm run test
生成文档:
npm run doc
查看示例:
$npm install anywhere -g
$ anywhere
```
## Command
```
$ npm run demo
$ npm run build
$ npm run doc
$ npm run test
```
## Repair
`version 0.1.0` new