-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
At its heart, jquery.scrollTo uses this format of the .animate()
method:
.animate(properties [, duration ] [, easing ] [, complete ])
Would it be possible to use the alternate version of the .animate()
method:
.animate(properties, options)
to allow optional passing in of additional properties that could be animated while the scroll is happening? For example, animating (with the proper plug-ins) the background color of an element while it scrolls.
It appears on cursory examination that this would involve moving the current duration
, settings.easing
, and callback
arguments to a new options
object as well as getting the current attr
argument into a new properties
object along with any other properties that are passed into the plug-in.