It scares me that you don’t know what that walk is. That’s like chameleons 101. They walk that way because chams are aborieal anamals, meaning they live in trees. They walk that way to mimic the movement of branches/leaves blowing in the wind. It both helps them hide from predators and helps them sneak up on prey.