Latest version | 1.3.0 |
---|---|
Minimum Core | 11 |
Compatible Core | 12 |
Last updated | 8 months ago |
Created | 3 years ago |
Authors |
|
Languages |
English |
Systems | All systems |
Dependencies |
libWrapper |
Project source | Project URL |
This module extends native Foundry behavior to introduce easing, custom movement speed, and movement duration to tokens.
No more will you suffer the lethargic slog of transporting tokens across the canvas!
In the module settings, you can set the following options:
Default: 6
This sets the default animation speed of moving tokens, in spaces per second (6 is Foundry default).
Default: 0
This sets the default animation duration for token movement (in milliseconds).
This overrides Token Movement Speed, and causes tokens to reach their destination in a set amount of time, regardless of distance.
Default: Linear
This sets the type of ease used by the movement animation on tokens.
Default: In & Out
This sets the type of easing to use at the start/end of the animation. If Token Movement Ease is set to Linear, this has no impact.
Default: False
If enabled, this will make moving tokens with the movement keys (arrow keys, etc) to play the animations configured above.
We do not recommend enabling this, as the movement distance is so short when using movement keys.
As of Foundry v10, this natively accepts an additional optional parameter in its second parameter called `animation`:
token.document.update({
x: ..., y: ...
}, {animate: true, animation: { speed: 6, duration: 0, ease: "linear" }})
Param | Type | Default |
speed | number |
6 |
duration | number |
0 |
ease | string |
linear |
If speed
or duration
is given in the animation
parameter, it will override the settings (see module settings above).
If duration
is provided, speed
has no impact on the animation, as the token will reach the destination within the given duration
.
If you change easing
, it is recommended you use the ones below.
Token Ease adds multiple easing functions to Foundry's CanvasAnimation interface:
linear
easeInSine
easeOutSine
easeInOutSine
easeInQuad
easeOutQuad
easeInOutQuad
easeInCubic
easeOutCubic
easeInOutCubic
easeInQuart
easeOutQuart
easeInOutQuart
easeInQuint
easeOutQuint
easeInOutQuint
easeInExpo
easeOutExpo
easeInOutExpo
easeInCirc
easeOutCirc
easeInOutCirc
easeInBack
easeOutBack
easeInOutBack
easeInElastic
easeOutElastic
easeInOutElastic
easeInBounce
easeOutBounce
easeInOutBounce
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: token-ease or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.