├── .babelrc
├── .editorconfig
├── .eslintignore
├── .eslintrc
├── .gitattributes
├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── dist
├── index.js
└── utils
│ ├── event.js
│ ├── scrollParent.js
│ ├── splice.js
│ └── trim.js
├── example
├── app.js
├── assets
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ ├── glyphicons-halflings-regular.woff2
│ │ ├── icomoon.eot
│ │ ├── icomoon.svg
│ │ ├── icomoon.ttf
│ │ └── icomoon.woff
│ ├── images
│ │ ├── grumpy.gif
│ │ ├── wow-1.gif
│ │ ├── wow-1.jpg
│ │ ├── wow-10.gif
│ │ ├── wow-11.gif
│ │ ├── wow-12.gif
│ │ ├── wow-2.gif
│ │ ├── wow-2.jpg
│ │ ├── wow-3.gif
│ │ ├── wow-3.jpg
│ │ ├── wow-4.gif
│ │ ├── wow-4.jpg
│ │ ├── wow-5.gif
│ │ ├── wow-6.gif
│ │ ├── wow-7.gif
│ │ ├── wow-8.gif
│ │ └── wow-9.gif
│ └── styles
│ │ ├── animate.css
│ │ ├── bootstrap.css
│ │ ├── exmaple.css
│ │ ├── main.css
│ │ └── theme.css
├── components
│ └── content.js
├── containers
│ ├── empty.js
│ ├── main.js
│ └── notfound.js
├── favicon.ico
├── index.dev.html
├── index.html
└── routes
│ └── index.js
├── package-lock.json
├── package.json
├── src
├── index.js
└── utils
│ ├── event.js
│ ├── scrollParent.js
│ ├── splice.js
│ └── trim.js
├── test
├── Test.component.js
├── karma.conf.js
└── specs
│ └── index.specs.js
├── webpack.config.babel.js
├── webpack.dll.config.babel.js
└── yarn.lock
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | "es2015",
4 | "stage-2",
5 | "react"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_style = space
6 | indent_size = 4
7 | end_of_line = lf
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.md]
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | node_modules/**
2 | build/**
3 | example/assets/**
4 | webpack.config*.js
5 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | /**
3 | * 环境定义了预定义的全局变量
4 | */
5 | "env": {
6 | "browser": true,
7 | "node": true,
8 | "es6": true
9 | },
10 | /**
11 | * 解释器 babel-eslint
12 | */
13 | "parser": "babel-eslint",
14 | /**
15 | * 启用 standard 规则
16 | */
17 | "extends": [
18 | "standard",
19 | "standard-react"
20 | ],
21 | /**
22 | * "off" 或 0 - 关闭规则
23 | * "warn" 或 1 - 开启规则,使用警告级别的错误:warn (不会导致程序退出),
24 | * "error" 或 2 - 开启规则,使用错误级别的错误:error (当被触发的时候,程序会退出)
25 | */
26 | "rules": {
27 | // 强制使用一致的缩进
28 | "indent": [2, 4],
29 | // 文件末尾强制换行
30 | "eol-last": 2,
31 | // 双峰驼命名格式
32 | "camelcase": 0,
33 | // 数组和对象键值对最后一个逗号,多行模式必须带逗号,单行模式不能带逗号
34 | "comma-dangle": [2, "always-multiline"],
35 | // 要求使用 let 或 const 而不是 var
36 | "no-var": 2,
37 | // 要求使用 const 声明那些声明后不再被修改的变量
38 | "prefer-const": 2,
39 | // 要求使用模板字面量而非字符串连接
40 | "prefer-template": 2,
41 | // 强制一致地使用函数表达式
42 | "func-style": [2, "expression"],
43 | // 要求箭头函数的参数使用圆括号
44 | "arrow-parens": 2,
45 | // 禁止在构造函数中,在调用 super() 之前使用 this 或 super
46 | "no-this-before-super": 2,
47 | // 强制在大括号中使用一致的空格
48 | "object-curly-spacing": [2, "always"],
49 | // 要求或禁止对象字面量中方法和属性使用简写语法
50 | "object-shorthand": [2, "always"],
51 | "react/prop-types": 0,
52 | "react/jsx-curly-spacing": [2, "never"],
53 | "react/jsx-indent": [0, 4],
54 | "react/jsx-indent-props": [0, 4],
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=JavaScript
2 | *.css linguist-language=JavaScript
3 | *.html linguist-language=JavaScript
4 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ################################################
2 | ############### .gitignore ##################
3 | ################################################
4 | #
5 | # This file is only relevant if you are using git.
6 | #
7 | # Files which match the splat patterns below will
8 | # be ignored by git. This keeps random crap and
9 | # sensitive credentials from being uploaded to
10 | # your repository. It allows you to configure your
11 | # app for your machine without accidentally
12 | # committing settings which will smash the local
13 | # settings of other developers on your team.
14 | #
15 | # Some reasonable defaults are included below,
16 | # but, of course, you should modify/extend/prune
17 | # to fit your needs!
18 | ################################################
19 |
20 |
21 |
22 |
23 | ################################################
24 | # Local Configuration
25 | #
26 | # Explicitly ignore files which contain:
27 | #
28 | # 1. Sensitive information you'd rather not push to
29 | # your git repository.
30 | # e.g., your personal API keys or passwords.
31 | #
32 | # 2. Environment-specific configuration
33 | # Basically, anything that would be annoying
34 | # to have to change every time you do a
35 | # `git pull`
36 | # e.g., your local development database, or
37 | # the S3 bucket you're using for file uploads
38 | # development.
39 | #
40 | ################################################
41 |
42 | coverage/**
43 | build/**
44 | example/assets/js/**
45 | example/assets/css/**
46 | .happypack/**
47 | manifest.json
48 |
49 |
50 |
51 |
52 | ################################################
53 | # Dependencies
54 | #
55 | # When releasing a production app, you may
56 | # consider including your node_modules and
57 | # bower_components directory in your git repo,
58 | # but during development, its best to exclude it,
59 | # since different developers may be working on
60 | # different kernels, where dependencies would
61 | # need to be recompiled anyway.
62 | #
63 | # More on that here about node_modules dir:
64 | # http://www.futurealoof.com/posts/nodemodules-in-git.html
65 | # (credit Mikeal Rogers, @mikeal)
66 | #
67 | # About bower_components dir, you can see this:
68 | # http://addyosmani.com/blog/checking-in-front-end-dependencies/
69 | # (credit Addy Osmani, @addyosmani)
70 | #
71 | ################################################
72 |
73 | node_modules
74 | bower_components
75 |
76 |
77 |
78 |
79 |
80 | ################################################
81 | # Node.js / NPM
82 | #
83 | # Common files generated by Node, NPM, and the
84 | # related ecosystem.
85 | ################################################
86 | lib-cov
87 | *.seed
88 | *.log
89 | *.out
90 | *.pid
91 | npm-debug.log
92 |
93 |
94 |
95 |
96 |
97 | ################################################
98 | # Miscellaneous
99 | #
100 | # Common files generated by text editors,
101 | # operating systems, file systems, etc.
102 | ################################################
103 |
104 | *~
105 | *#
106 | .DS_STORE
107 | .netbeans
108 | nbproject
109 | .idea
110 | .node_history
111 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "6"
4 | before_script:
5 | - export CHROME_BIN=chromium-browser
6 | - export DISPLAY=:99.0
7 | - "sh -e /etc/init.d/xvfb start"
8 | - sleep 3
9 | addons:
10 | chrome: stable
11 | script: "./node_modules/karma/bin/karma start test/karma.conf.js --browsers Chrome_travis_ci --single-run --no-auto-watch --capture-timeout 300000"
12 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | 'Software'), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # React WOW [](https://travis-ci.org/skyvow/react-wow) [](https://www.npmjs.org/package/react-wow) [](https://coveralls.io/github/skyvow/react-wow?branch=master)
2 |
3 | Using CSS animation in your react components.
4 |
5 | [Demo](https://skyvow.github.io/react-wow)
6 |
7 | ## 依赖
8 |
9 | - [animate.css](https://github.com/daneden/animate.css)
10 |
11 | ## 安装
12 |
13 | ```
14 | $ npm install --save react-wow
15 | ```
16 |
17 | ## 示例
18 |
19 | ```js
20 |
21 | import React from 'react'
22 | import ReactDOM from 'react-dom'
23 | import ReactWOW from 'react-wow'
24 |
25 | const App = () =>
26 |
27 | ReactDOM.render(, document.getElementById('app'))
28 |
29 | ```
30 |
31 | ## 使用方法
32 |
33 | ```sh
34 | $ git clone https://github.com/skyvow/react-wow.git
35 | $ cd react-wow
36 | $ npm install
37 | $ npm start
38 | ```
39 |
40 | |`npm run
17 |