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
Moogle 2018-11-07 15:03:40 +09:00 committed by Manish Giri
parent 7eec4b898b
commit afaa606d0e
1 changed files with 4 additions and 4 deletions

View File

@ -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