Skip to main content
Question

Unable to set correct Spring animation duration through API

  • June 29, 2023
  • 4 replies
  • 507 views

Aashrey_Sharma

Hi Figma,

I’m adding Spring animation support to Prototyper transition.easing.type = 'GENTLE', 'QUICK'...

But I find that the transition.duration field does not respect the value I assign to it.

For example:

When I set transition.duration to 0.2 (200ms) in code, the field is set correctly i.e. to 0.2. But in Figma’s Interaction Modal, the value displayed is 1200ms. When the prototype is played, the interaction also plays at 1200ms.

This behavior is unexpected. And the relevant API documentation do not describe how to accurately set spring animation duration.

Can someone help me understand how to implement duration correctly?

This topic has been closed for replies.

4 replies

Aashrey_Sharma
  • Author
  • New Participant
  • September 12, 2023

Hey @figma team, any update or eta on a fix for this issue?

cc @miggi @jak_e


jak_e
Figmate
  • Figmate
  • September 13, 2023

Hey Aashrey, it’s in the queue. I dont have an estimation of timeline on it right now, but can definitely come back to this thread when i have updates. Thanks for your patience!

Context for anyone else: we’ve been talking about this in Discord, have reproduced the bug and are working on a fix.


Aashrey_Sharma
  • Author
  • New Participant
  • February 3, 2024

Checking if there’s been any movement on this 🙌

Waiting on this fix to support Spring animations in Prototyper 🙂


Aashrey_Sharma
  • Author
  • New Participant
  • March 8, 2025

@jak_e any updates on this? Still waiting on this bugfix to roll out Spring animations in Prototyper to Figma users.