This project demonstrates how you can create "elastic" motion. Play around with the sliders, or click the colorful buttons at the bottom to try out some presets.
Full disclosure: I'm not very good at physics, so I'm not entirely sure that "inertia" and "friction" are the most appropriate variable names, but it's the best I could come up with. Thanks to @360Genius for the wonderful project "Hand.", which I used as reference when writing the code. My code looks different, but the logic is basically the same: https://scratch.mit.edu/projects/453434831