Magnetization dynamics in the Gd23Fe67Co10 nanofilm was examined by time-resolved experiment of the magneto-optical effect using X-ray free electron laser. By tuning a photon energy at the core-level resonance of Fe absorption edge, the magnetic behavior was traced element-selectively at the Fe site. Triggered by the ultrashort pulse of infrared-ray, the materials show the demagnetization and the magnetic reversal, depending continuously on the laser fluence. The following process was associated with several steps, including generation of the steady state of reversed magnetization and the fast recursion. Comparing with the theoretical predictions, the ultrafast dynamics was triggered by the ultrafast thermal effect and recovered toward the initial state in the non-thermal manner.