JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<a href="#" class="comment-here">Scroll down the page and then press me. I move:( but i dont want to</a>
<div class="comment-form clearfix">
<fieldset>
<textarea class="bio" cols="40" id="user_bio" name="user[bio]" rows="5">What would you like to say? ...
</textarea>
</fieldset>
<div class="form-btns">
<input class=" " name="commit" type="submit" value="Comment">
</div>
</div>
</div>
CSS
.container{
padding-top:200px;
height:2000px;
}
JavaScript
/* COMMENT BOX show
===================================================================*/
$(".comment-here").click(function(){
$(".comment-form").slideToggle('slow');
})
$(".main-btn.orange").click(function(){
$(".comment-form").slideUp('slow');
})