Example 1 — Multi-Property Animation
From the jQuery docs: animate several numeric CSS properties in one call.
$("#go").on("click", function () {
$("#block").animate({
width: "70%",
opacity: 0.4,
marginLeft: "0.6in",
fontSize: "3em",
borderWidth: "10px"
}, 1500);
}); How It Works
- Map. One object lists every property to change.
- Tween. jQuery interpolates from current values to each target.
- Duration.
1500is milliseconds for the whole run.

