jquery animate image up and down on scroll code example
Example 1: jquery scroll when object appear on screen make animation
body{
padding-top: 150vh;
}
.target{
background: red;
width: 100%;
height: 50px;
margin-bottom: 500px;
}
Example 2: jquery scroll when object appear on screen make animation
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="target">
</div>