Abstract: An atomic-force-microscope-based apparatus and method including hardware and software, configured to collect, in a dynamic fashion, and analyze data representing mechanical properties of soft materials on a nanoscale, to map viscoelastic properties of a soft-material sample. The use of the apparatus as an addition to the existing atomic-force microscope device.