Check out example codes for "how to make parallax scrolling website using bootstrap". It will help you in understanding the concepts better.

Code Example 1

<style>
.parallax { 
  /* The image used */
  background-image: url("img_parallax.jpg");


    /* Set 
a specific height */
  height: 500px; 

  /* Create the parallax scrolling effect */

    
background-attachment: fixed;
  background-position: 
center;
  background-repeat: no-repeat;
  background-size: cover;
}
</style>

<!-- Container element 
-->
<div class="parallax"></div>

Learn ReactJs, React Native from akashmittal.com