On-demand drug delivery platforms can provide precise control over the timing and amount of drug delivered using external stimuli. By controlling the timing, duration, dosage, and location of drug release in a predictable, repeatable, and reliable manner, such platforms can determine flexible release patterns and improve therapy efficacy. Herein, we propose an innovative on-demand drug release platform based on electrospun nanofibers (NFs) with a near-infrared (NIR)-triggered glass transition switch to simplify protocols and improve the currently available thermo-responsive nano-carrier formulations. Gold nanorods (GNRs) present in a matrix of NFs with absorbance in the NIR range generate heat in response to NIR irradiation because of the plasmon resonance effect. In this study, electrospun NFs containing GNRs and camptothecin were prepared using poly(L-lactic acid) as the polymer, which has a glass transition temperature (Tg) of 53-58 ℃. Upon NIR irradiation, the increase in temperature above the Tg by the GNRs caused physical changes in the NFs, which ensured that the drug was released in a controlled manner. This study demonstrates a promising platform to safely deliver drugs and to control drug release to treat cancer and other complex diseases.