Demo : https://kotsoft.github.io/particle_based_viscoelastic_fluid/
Code : https://github.com/kotsoft/particle_based_viscoelastic_fluid...
Video :https://www.youtube.com/watch?v=3OxC4oqy74U
edit : you probably also want to check one of the mentioned link : https://matthias-research.github.io/pages/tenMinutePhysics/i...