fixed erroneous comma usage (#21826)
I removed commas that were unnecessary and put commas where they should occur in the sentences.pull/24884/head^2
parent
7eec4b898b
commit
afaa606d0e
|
@ -2,12 +2,12 @@
|
||||||
title: jQuery Animate
|
title: jQuery Animate
|
||||||
---
|
---
|
||||||
## jQuery Animate
|
## jQuery Animate
|
||||||
jQuery's animate method makes it easy to create simple animations, using only a few lines of code. The basic structure is as following:
|
jQuery's animate method makes it easy to create simple animations using only a few lines of code. The basic structure is as following:
|
||||||
```javascript
|
```javascript
|
||||||
$(".selector").animate(properties, duration, callbackFunction());
|
$(".selector").animate(properties, duration, callbackFunction());
|
||||||
```
|
```
|
||||||
For the `properties` argument you need to pass a javascript object, with the CSS properties you want to animate as keys, and the values you want to animate to as values.
|
For the `properties` argument, you need to pass a javascript object with the CSS properties you want to animate as keys and the values you want to animate to as values.
|
||||||
For the `duration` you need to input the amount of time in milliseconds the animation should take.
|
For the `duration`, you need to input the amount of time in milliseconds the animation should take.
|
||||||
The `callbackFunction()` is executed once the animation has finished.
|
The `callbackFunction()` is executed once the animation has finished.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
@ -23,4 +23,4 @@ $(".awesome-animation").animate({
|
||||||
|
|
||||||
#### More Information:
|
#### More Information:
|
||||||
|
|
||||||
For more information, please visit the [official website](http://api.jquery.com/animate/)
|
For more information, please visit the [official website](http://api.jquery.com/animate/)
|
||||||
|
|
Loading…
Reference in New Issue