How do I make my character initiate a falling animation after running off a ledge or being hit off a ledge?

I just found it from a Japanese website it is the animation graph a 2d game

take a look at this