Tree fogs can jump as far as 33 feet in some cases.
That was a record recorded for a frog jump so tree frogs and most other frogs can jump as far as 33 feet.
Other tree frogs may jump 20 feet but still that's pretty far for a tree frog to jump.
Frogs including tree frogs are pretty good jumpers so if a tree frog is on a tree that is 20 to 30 feet away from another tree and wants to jump from that tree to the other tree the tree frog should have no problem making the jump from either tree at either distance.
I've seen tree frogs myself jump pretty far and I have personally seen a tree frog jump as far as 30 feet between trees and made it just fine.