You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.
In the markup, you specify "easeInQuad" or "easeOutQuad" in the data attribute, then the component looks up the values defined in its easings property.
Solution 2
Another alternative is to have a registry option in the Watcher, like this:
Then, in the markup, you use $easing instead of easing for the option, which tells the Watcher to not treat the value as a string, but rather as a property in the registry or a CSS selector if such is not found:
The benefit here is that you can use this registry for all sorts of values globally. If you have multiple components (not just ScrollTo) that have easing options, you don't have to specify available easings for each one - you just use the values in the registry.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, the only possible way to change the component easing is to change the default one:
You can't change it like this:
Solution 1
This can be implemented with a static
easings
property:In the markup, you specify
"easeInQuad"
or"easeOutQuad"
in the data attribute, then the component looks up the values defined in itseasings
property.Solution 2
Another alternative is to have a
registry
option in the Watcher, like this:Then, in the markup, you use
$easing
instead ofeasing
for the option, which tells the Watcher to not treat the value as a string, but rather as a property in the registry or a CSS selector if such is not found:The benefit here is that you can use this
registry
for all sorts of values globally. If you have multiple components (not justScrollTo
) that have easing options, you don't have to specify available easings for each one - you just use the values in the registry.The text was updated successfully, but these errors were encountered: