Spatiotemporal light control with frequency-gradient metasurfaces