Skip to content

Update core animate() to allow additional functionality #35

@peterh-capella

Description

@peterh-capella

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions