JSFiddle - React, Tailwind, and code Playground

HTML

<header> <h3>This space Header and Other Contents </h3><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</p></header>
<form action="final-page.html" method="post" id="question_form">
            <!--BOF Question block Container-->
            <div class="question-block-container" id="block1">
              <div class="question-title-block"> 
                <div class="question-title"> <span class="question-number"> 1</span> It is a long established fact that a reader will be distracted ? </div>
              </div>
              
              <!--BOF option block-->
              <div class="question-option-block">
                <p> All the Lorem Ipsum generators on the Internet </p>
                <div class="options">
                  <input type="radio" id="radio1" name="radios" value="strongly-disagree" checked>
                  <label for="radio1">strongly disagree</label>
                  <input type="radio" id="radio2" name="radios" value="disagree">
                  <label for="radio2">disagree</label>
                  <input type="radio" id="radio3" name="radios"  value="slightly-disagree">
                  <label for="radio3">slightly disagree</label>
                  <input type="radio" id="radio4" name="radios" value="neither">
                  <label for="radio4">neither</label>
                  <input type="radio" id="radio5" name="radios" value="slightly-agree">
                  <label for="radio5">slightly agree</label>
                  <input type="radio" id="radio6" name="radios"  value="agree">
                  <label...

CSS

header{
    background:#ccc ;
    height:404px
}
 
.sticky{
	position:fixed;
	top:0;
	z-index:2;
	width:100%
}

.question-block-container {
	width:100%;
	color:#000;
	font-size:14px;
	margin-bottom:60px;
}
.question-number {
	height:25px;
	width:25px;
	border-radius:50%;
	background:#c8d9ee;
	display:inline-block;
	text-align:center;
	line-height:25px;
	margin-right:5px;
}
.question-title {
	width:95%;
	background:#c8d9ee;
	padding:10px 30px;
	display:inline-block;
}
.question-option-block {
	background:#FFF;
	padding:20px 30px;
	width:95%;
	margin:0 34px;
	font-weight:bold
}

JavaScript

var titleBlocks = $(".question-title-block");

$(window).scroll(function() {
    var windowpos = $(window).scrollTop();
    titleBlocks.each(function(){
        $(this).toggleClass('sticky',$(this).parent().offset().top<=windowpos);
    });
});