A photo-triggered hydrogel for bidirectional regulation with imaging visualization.