I have an image of a tennis ball:
It is necessary to make an animation of a ball falling with subsequent bounces from a solid surface.
I got this kind of animation, but it doesn't look realistic:
To start the animation, click on the image:
<svg id="svg1" version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="200" height="200" viewBox="0 0 200 200" preserveAspectRatio="xMinYMin meet" style="border:1px solid" >
<image xlink:href="https://i.stack.imgur.com/hXyA5.png" x="82" width="25px" height="25px" >
<animateTransform attributeName="transform" type="translate" dur="1s" begin="svg1.click" values="0,0;0,168;0" repeatCount="3" />
</image>
<polyline points="5,190 190,190" stroke="silver" stroke-width="4" />
</svg>
It is necessary that the first bounce was less than the height of the fall of the ball, the second bounce was less than the height of the first bounce, the third bounce was less than the second.
How do you achieve this? Solution maybe on SMIL SVG, CSS, JS
SMIL SVG solution is preferred.
