Skip to content

Commit fa2e80c

Browse files
committed
first
0 parents  commit fa2e80c

File tree

11 files changed

+4043
-0
lines changed

11 files changed

+4043
-0
lines changed

.babelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"browsers": ["last 2 versions"]
6+
}
7+
}]
8+
]
9+
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "airbnb",
3+
"env": {
4+
"browser": true,
5+
"node": false
6+
},
7+
"rules": {
8+
"indent": ["warn", 4],
9+
"no-restricted-syntax": 0,
10+
"guard-for-in": 0,
11+
"func-names": 0,
12+
"class-methods-use-this": 0,
13+
"no-debugger": 0
14+
}
15+
}

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.com
2+
*.class
3+
*.dll
4+
*.exe
5+
*.o
6+
*.so
7+
*.7z
8+
*.dmg
9+
*.gz
10+
*.iso
11+
*.jar
12+
*.rar
13+
*.tar
14+
*.zip
15+
*.log
16+
*.sql
17+
*.sqlite
18+
.DS_Store
19+
.DS_Store?
20+
._*
21+
.Spotlight-V100
22+
.Trashes
23+
ehthumbs.db
24+
Thumbs.db
25+
node_modules
26+
prepros.cfg

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Keyframes (https://github.com/Keyframes/Keyframes.Proximity)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Keyframes.Proximity
2+
====================
3+
4+
A plugin for Keyframes that plays animations based on distance from another element.
5+
6+
Installation
7+
-----
8+
9+
```javascript
10+
import Proximity from '@keyframes/proximity';
11+
Keyframes.plugin(Proximity);
12+
```
13+
14+
Usage
15+
-----

example/example.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<style>
5+
.block{
6+
position: absolute;
7+
width: 33px;
8+
height: 33px;
9+
background: url(twitter.png);
10+
}
11+
</style>
12+
</head>
13+
<body>
14+
<div class="block block1"></div>
15+
<div class="block block2"></div>
16+
<div class="block block3"></div>
17+
<script src="example.dist.js"></script>
18+
</body>
19+
</html>

example/example.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Keyframes from '@keyframes/core';
2+
import Proximity from '../src/keyframes.proximity';
3+
4+
Keyframes.plugin(Proximity);
5+
6+
window.onload = function () {
7+
8+
};

0 commit comments

Comments
 (0)