Dangling Ghost

Dangling Ghosts are enemies encountered in World 5 of Super Mario World 2: Yoshi's Island. Resembling Caged Ghosts, they swing back and forth on the ceiling similarly to a pendulum, in an attempt to hit the Yoshi or Baby Mario. If they succeed, they will grab and hold Baby Mario in their jaws, leading to him needing rescued. They can be defeated temporarily using the usual method (spitting another enemy at them or shooting an egg), and they will retract, allowing the player to pass through. After a few seconds, they will return to their constant swinging back and forth.

They also appear in Yoshi's New Island, particularly in Ready, Steady, Go! They have the same behavior as before, except they do not retract when hit and instead stop where they are. They are also an off-white color.

Super Mario World 2: Yoshi's Island

 *  Official Nintendo Player's Guide: Another homebody without much of a body, the Dangling Ghost doesn't like to get egg on his face.