Check out example codes for "css opacity from 0 to 1". It will help you in understanding the concepts better.

Code Example 1

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

Learn ReactJs, React Native from akashmittal.com