We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5562994 commit f5b537dCopy full SHA for f5b537d
page/effects/custom-effects.md
@@ -5,18 +5,24 @@ source: http://jqfundamentals.com/legacy
5
attribution:
6
- jQuery Fundamentals
7
---
8
+
9
jQuery makes it possible to animate arbitrary CSS properties via the
10
`.animate()` method. The `.animate()` method lets you animate to a set
11
value, or to a value relative to the current value.
12
13
```
14
// Custom effects with .animate()
-$( "div.funtimes" ).animate({
15
+$( "div.funtimes" ).animate(
16
+ {
17
left: "+=50",
18
opacity: 0.25
19
},
- 300, // Duration
- function() { // Callback when the animation is finished
20
21
+ // Duration
22
+ 300,
23
24
+ // Callback to invoke when the animation is finished
25
+ function() {
26
console.log( "done!" );
27
}
28
);
0 commit comments