This is typical Spoonbill behavior.
Here a bird became interested in ‘something’ on the lower branches. The something actually being nothing, but they are always climbing and looking around.
It still had his attention so he decided to lean a little closer.
Finally the Spoonbill almost hung upside down.
As expected it was nothing so back to standing around looking for something else to do.
note; on any other bird this would likely be ignored. But… big, pink, and a little goofy looking it becomes something to photograph.