Chemistry of Slime

Why does slime stretch? Why is it goopy? Is it a liquid or a solid?