I have a button inside a div whose width is 300px. When the button is clicked, I’d like the button move to the left side of the div and get disappeared in 1 second.
How would that be possible with JQUery?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It probably depends on how the original position is assigned, but I think the following should work:
JS Fiddle.
To fade out, and remove, the button:
JS Fiddle.