I have the following code:
$(document).ready(function(){
$('#cadastre-se').click(function(){
$('.icon-cracha').stop(true, true).delay(500).animate({top: "+0"},1000);
});
});
.icon-cracha{
width:100px;
height: 100px;
background-color:black;
border-radius: 100%;
position:absolute;
top:-100px;
}
button{
margin-top: 100px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script><divclass="icon-cracha"></div>
<button id="cadastre-se" name="submit" class="btn">Próximo</button>
I would like this effect to repeat every time I clicked the próximo
button. Because here in my project it only happens in the first step of the registration, in the others the ball already appears right without effect.