More info in editorconfig
This commit is contained in:
parent
3b36436e01
commit
4e45f1eeda
|
@ -2,10 +2,11 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
tab_width = 2
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
max_line_length = 100
|
||||
tab_width = 2
|
||||
trim_trailing_whitespace = 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": {
|
||||
|
|
Loading…
Reference in a new issue