first commit
This commit is contained in:
3
bootstrap/node_modules/after-transition/.npmignore
generated
vendored
Normal file
3
bootstrap/node_modules/after-transition/.npmignore
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
components
|
||||
build
|
||||
node_modules
|
12
bootstrap/node_modules/after-transition/Makefile
generated
vendored
Normal file
12
bootstrap/node_modules/after-transition/Makefile
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
build: components index.js
|
||||
@component build --dev
|
||||
|
||||
components: component.json
|
||||
@component install --dev
|
||||
|
||||
clean:
|
||||
rm -fr build components template.js
|
||||
|
||||
.PHONY: clean
|
30
bootstrap/node_modules/after-transition/Readme.md
generated
vendored
Normal file
30
bootstrap/node_modules/after-transition/Readme.md
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
# after-transition
|
||||
|
||||
Fire a callback after a transition or immediately if the browser does not support transitions.
|
||||
If the element does not have a transition property it will also fire immediately.
|
||||
|
||||
## Installation
|
||||
|
||||
$ component install anthonyshort/after-transition
|
||||
|
||||
or via npm for use with Browserify
|
||||
|
||||
$ npm install after-transition
|
||||
|
||||
## API
|
||||
|
||||
var afterTransition = require('after-transition');
|
||||
|
||||
afterTransition(el, function(){
|
||||
// Do things when the transition has finished
|
||||
// This will fire immediately for IE
|
||||
});
|
||||
|
||||
afterTransition.once(el, function(){
|
||||
// Same as above but will only fire once
|
||||
});
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
17
bootstrap/node_modules/after-transition/component.json
generated
vendored
Normal file
17
bootstrap/node_modules/after-transition/component.json
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "after-transition",
|
||||
"repo": "anthonyshort/after-transition",
|
||||
"description": "Fire a callback after a transition or immediately if the browser does not support transitions",
|
||||
"version": "0.0.4",
|
||||
"keywords": [],
|
||||
"dependencies": {
|
||||
"anthonyshort/has-transitions": "0.3.0",
|
||||
"anthonyshort/css-emitter": "0.1.1"
|
||||
},
|
||||
"development": {},
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": [
|
||||
"index.js"
|
||||
]
|
||||
}
|
18
bootstrap/node_modules/after-transition/index.js
generated
vendored
Normal file
18
bootstrap/node_modules/after-transition/index.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
var hasTransitions = require('has-transitions');
|
||||
var emitter = require('css-emitter');
|
||||
|
||||
function afterTransition(el, callback) {
|
||||
if(hasTransitions(el)) {
|
||||
return emitter(el).bind(callback);
|
||||
}
|
||||
return callback.apply(el);
|
||||
};
|
||||
|
||||
afterTransition.once = function(el, callback) {
|
||||
afterTransition(el, function fn(){
|
||||
callback.apply(el);
|
||||
emitter(el).unbind(fn);
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = afterTransition;
|
30
bootstrap/node_modules/after-transition/package.json
generated
vendored
Normal file
30
bootstrap/node_modules/after-transition/package.json
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "after-transition",
|
||||
"version": "0.0.4",
|
||||
"description": "Fire a callback after a transition or immediately if the browser does not support transitions",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "mocha test"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/anthonyshort/after-transition.git"
|
||||
},
|
||||
"keywords": [
|
||||
"component",
|
||||
"browserify",
|
||||
"css",
|
||||
"transition"
|
||||
],
|
||||
"author": "Anthony Short",
|
||||
"license": "BSD",
|
||||
"readmeFilename": "Readme.md",
|
||||
"gitHead": "155a8ab7fa7e557ee0bcddebd14e937c0608f9c2",
|
||||
"browser": {
|
||||
"css-emitter": "css-emitter-component"
|
||||
},
|
||||
"dependencies": {
|
||||
"css-emitter-component": "~0.1.1",
|
||||
"has-transitions": "~0.3.0"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user