Glow in the dark is not magic, it's just plain and simple science.
Glowing in the dark is also known as luminescence is simply requires chemicals that store energy when exposed to light. These special substances are called phosphors. This type of glowing is sometimes called phosphorescence. Phosphors radiate visible light after being energized. This means you have to expose the items to light for a while before they will glow in the dark. Phosphors then slowly release their stored energy over time. As they release the energy, they emit small amounts of light, which we see as an object glowing. Sometimes glow in the dark objects will only glow very weakly for a short time. Often, you have to place them in a very dark place to see their faint green glow. Newer glow in the dark items may glow more brightly for several hours.
Over the years, chemists have created thousands of chemical compounds that act as phosphors. For glow in the dark toys, manufacturers look for phosphors that can be energized by normal light and that glow as long as possible.
To make glow in the dark toys, manufacturers mix their chosen phosphor into plastic and then mold it to the desired shape. Two of the most common phosphors found in glow in the dark toys are zinc sulfide and strontium aluminate.
There are a couple of other types of luminescence. Chemiluminescence, for example, makes object glow in the dark because of a chemical reaction. When two particular chemicals react, they produce energy that is subsequently released, creating a glow. This is what happens in glow sticks.
Radioluminescence uses phosphors that are constantly charged by adding a radioactive element, such as radium, to them. You may have seen this type of luminescence on the hands of a watch, for example.
One final example from nature is bioluminescence. Some creatures, such as fireflies and jellyfish, contain chemicals within them that cause them to glow. Some of these creatures glow for protection, camouflage or to attract mates.