Hoping someone can help me with a small issue.
I have an arrow in the heading of a collapsible section, in a vuejs app, that I make rotate upon section open and close, using timeline. The state of the section being open, or closed, is persisted in Local Storage, so, if the browser is refreshed, the section remains as it was. The challenge is to preserve the position of the arrow too. The only idea I came up with was, upon component mount, to check if the arrow direction was out of sync with the section’s open state, and, if so, have it instantly rotate to the proper position. Rotation would have to be instant (no motion) so the user perceives the arrow to have remained in its previous position upon browser refresh. I played around with setting timeline duration to a very small decimal number, but there is still some detectable motion. Is there a way to achieve instant rotation? My searching the docs did not yield any solutions yet.
Any ideas?
Thank you.