Traits are inherited by genes passing from parents to their kids. Also, environment can inference traits too.
The parents give one set of genes to their kids. In environmental an organism like the fox can change their color. Like, in the winter the fox's fur can turn white while in summer the fox it can turn brown. Same as the other animal.