The jQuery documentations is as follows:
.animate( properties [, duration ] [, easing ] [, complete ] )
In your example properties
=== {width: 'toggle'}, which is just a Plain Object and the duration is 1000 miliseconds. The brackets indicate that the values are optional, and easing and complete are omitted.