What I am doing that when the page loads I want the email input to slide in from left and password input from right. But this doesn't work.
Can anyone help me with my code?
$(document).ready(function()
{
$("#login_email").hide();
$("#login_email").show('slide', {direction: 'left'}, 1000);
$("#login_password").show('slide', {direction: 'right'}, 1000);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<input id="login_email" type="email" class="form-control" placeholder="Email" name="email" value="" required autofocus>
<input id="login_password" type="password" placeholder="Password" class="form-control" name="password" required>