Answer:
Stars are hundreds or thousands of light years away from us, so they can be considered as point sources of lights. The light rays emitted by these stars enter into the earth's atmosphere and undergoes continuous refraction, because each layer of earth's atmosphere has different density. They go on refracting and the light rays reaching our eyes will be bended like an arc. Thus we see the stars in an apparent position, which is slightly different from the actual position. Due to continuous refraction the amount of light gets fluctuated. We see that the position is slightly altered. This causes the Twinkling effect.