They also enjoy basking in the hot sun, which is unusual because frogs normally avoid prolonged exposure to high levels of light due to the risk of overheating and dehydration.
Now being studied at the University of Manchester, the decline of the tree frogs is largely being attributed by researchers to global warming.
According to the research team, global warming is leading to more cloud cover in the frogs' natural habitat. This, in turn, is denying them the opportunity to 'sunbathe' and kill off fatal Chytrid fungal infections, leading to many species dying out.
To prove the new theory, researchers have used a technique called Optical Coherence Tomography (OCT) to investigate the properties of the tree frogs' skin.
In their work so far, the team has observed that the skin of basking tree frogs sometimes undergoes a visible change and becomes almost metallic in texture. When this happens, the level of absorption and reflection and the skin temperature also changes.
The Manchester team believes tree frogs are able to bask happily under the sun because they have the ability to regulate their body temperature and prevent overheating through the unique structure and properties of their skin.
As part of their studies, they want to use OCT to compare structural changes in the skin of tree frogs with the structural changes in the skin of frogs that do not have the same high levels of infrared reflectance.
This reflectance is associated with a pigment called pterorhodin, and allows the tree frogs to camouflage themselves from predators by adjusting the infrared reflection of their skin to match the infrared reflection of the leaves they laze upon.
The team plan to travel out to Costa Rica next year and to apply spectral reflectance techniques to tree frogs living in their natural habitat.
"With a third of the world's amphibians currently under threat it's vitally important we do our utmost to investigate the reasons why they are dying out at such an alarming rate," said Andrew Gray, curator of herpetology at the Manchester museum.