"D3" Transition API

Source: Internet
Author: User
Tags time in milliseconds

Summary:

Animation Class API

First, the API uses

1.1 d3.ease

1.2 D3.timer

Start a custom animation timer, invoking the specified function repeatedly until it returns true. There is no-to-cancel the timer after it starts, so make sure your timer function returns True when done!

The animation begins the action, knowing that the method returns true before it stops. The animation cannot be stopped manually after it starts, but only if the method returns True.

An optional numeric delay in milliseconds is specified when the given function should only be invoke D after a delay. The delay is relative-the specified time in milliseconds since UNIX epoch; If time is a specified, it defaults to Date.now.

You can set the animation delay time in milliseconds. The delay is associated with the specified time, and if no time is set, the default is the current time.

Specify relative and absolute moments in time if the function s Hould start being invoked. For example, a calendar notification might is coded as:

You can use the delay and time to specify the exact time at which the animation begins. For example, a calendar reminder can be encoded as follows:

D3.timer (Notify,-4 * + *, +new// four hours before midnight October (months is zero- Based)

Note if D3.timer is called within the callback of another timer, the new timer would be invoked immediately at the end of the current frame (if active as determined by the specified delay and time), rather than waiting unt Il the next frame.

You can see that D3.timer is called at another moment, and the new timer will be triggered immediately (if you specify the delay and time of the action) instead of waiting for the next frame.

1.3 D3.interpolate

"D3" Transition API

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.