Natural selection shapes behaviour in all organisms, but this is difficult to study in small, millimetre-sized, organisms. With novel labelling and tracking techniques, based on nanotechnology, we here show how behaviour in zooplankton (Daphnia magna) is affected by size, morphology and previous exposure to detrimental ultraviolet radiation (UVR). All individuals responded with immediate downward swimming to UVR exposure, but when released from the threat they rapidly returned to the surface. Large individuals swam faster and generally travelled longer distances than small individuals. Interestingly, individuals previously exposed to UVR (during several generations) showed a more relaxed response to UVR and travelled shorter total distances than those that were naive to UVR, suggesting induced tolerance to the threat. In addition, animals previously exposed to UVR also had smaller eyes than the naive ones, whereas UVR-protective melanin pigmentation of the animals was similar between populations. Finally, we show that smaller individuals have lower capacity to avoid UVR which could explain patterns in natural systems of lower migration amplitudes in small individuals. The ability to change behavioural patterns in response to a threat, in this case UVR, adds to our understanding of how organisms navigate in the 'landscape of fear', and this has important implications for individual fitness and for interaction strengths in biotic interactions.