Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent horizontal animation when attaching to a slider #11

Open
davefallis opened this issue Sep 5, 2024 · 1 comment
Open

prevent horizontal animation when attaching to a slider #11

davefallis opened this issue Sep 5, 2024 · 1 comment

Comments

@davefallis
Copy link

I am trying to use this library in a way that the MotionNumber component moves horizontally as value changes, tied to a slider component. What I am observing is that the MotionNumber component itself is animating horizontally but I don't want the animation. I just want it to immediately move to the new location without the horizontal animation. Is there a way to stop the animation? I apologize if this is a general framer question. I am still learning the library.

@davefallis davefallis changed the title prevent horizontal animation attaching to a slider prevent horizontal animation when attaching to a slider Sep 5, 2024
@barvian
Copy link
Owner

barvian commented Sep 5, 2024

Hi, thanks for filing. I agree this isn't ideal; I think normally you'd use layoutRoot to address this but in my tests that didn't seem to work with MotionNumber. I'm investigating potential solutions but I wouldn't expect anything soon unfortunately 🫤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants