'animation: make water wave

I would like to build a simple animation for a school project.

I want to make water wave within a box in such a way that tilting the device causes the water to wave in a direction rather the other.

Is there a sample from where I can start to create such effect? Any help is super appreciated.

Thx, mE



Solution 1:[1]

Use Lottie animation. That's so simple way to implement with some lines of code.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tipu