Home › Forums › JavaScript › Change function animation duration? › Reply To: Change function animation duration?
December 18, 2013 at 5:00 pm
#158657
Member
No, in this case you can’t have it outside. You could define a default outside but you’d still need to do the check again.
var default = 600;
// the following would be somewhere inside your function
var speed = duration ? duration : default