your question appears to relate to animating 2D objects, using constraints, information for which you will find under Animation and Constraints, in the AL4_UserGuide, page 26. You select the property name from the VariableName drop down list and enter required values next.
However, as you may be wanting to animate a 3D spring object, then you will need to use, preferably, the Key Frame Editor, with the results shown in Henry and Julian's examples. Again, this is better covered in the AL4_UserGuide, IMHO.
Finally, a tip, don't forget to UNDO the scenario, after each scenario run.
I hope this helps.
You can design without engineering, but you cannot engineer without design.
Using Win 10 with Designer 2017-2020 and TurboCAD Pro. Plat. 2018-2020 + Lightworks (64-bit versions) + AnimationLab 5.2.
Windows 10 Pro (1909) 64-bit