Skip to content
Permalink
Browse files
More info in editorconfig
  • Loading branch information
lipis committed Dec 10, 2017
1 parent 3b36436 commit 4e45f1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
@@ -2,10 +2,11 @@
root = true

[*]
indent_style = space
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 100
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@@ -123,7 +123,10 @@ http://api.jquery.com/one/
-->

```javascript
$('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', doSomething);
$('#yourElement').one(
'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend',
doSomething,
);
```

[View a video tutorial](https://www.youtube.com/watch?v=CBQGl6zokMs) on how to use Animate.css with jQuery here.
@@ -135,7 +138,8 @@ You can also extend jQuery to add a function that does it all for you:
```javascript
$.fn.extend({
animateCss: function(animationName, callback) {
var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
var animationEnd =
'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
this.addClass('animated ' + animationName).one(animationEnd, function() {
$(this).removeClass('animated ' + animationName);
if (callback) {
@@ -39,10 +39,8 @@
},
"prettier": {
"bracketSpacing": false,
"printWidth": 120,
"proseWrap": "never",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
},
"scripts": {

0 comments on commit 4e45f1e

Please sign in to comment.