Skip to content

Commit f5b537d

Browse files
committed
Custom Effects: Cleanup
1 parent 5562994 commit f5b537d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

page/effects/custom-effects.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,24 @@ source: http://jqfundamentals.com/legacy
55
attribution:
66
- jQuery Fundamentals
77
---
8+
89
jQuery makes it possible to animate arbitrary CSS properties via the
910
`.animate()` method. The `.animate()` method lets you animate to a set
1011
value, or to a value relative to the current value.
1112

1213
```
1314
// Custom effects with .animate()
14-
$( "div.funtimes" ).animate({
15+
$( "div.funtimes" ).animate(
16+
{
1517
left: "+=50",
1618
opacity: 0.25
1719
},
18-
300, // Duration
19-
function() { // Callback when the animation is finished
20+
21+
// Duration
22+
300,
23+
24+
// Callback to invoke when the animation is finished
25+
function() {
2026
console.log( "done!" );
2127
}
2228
);

0 commit comments

Comments
 (0)