I have function like this:
$(window).on('scroll', function(){
$('.top_fixed').fadeTo('fast', 0.8);
});
I want to return opacity to 1 when window is at top (when user cann’t scroll up any more). How can I make this
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.
Demo http://jsfiddle.net/eE9tp/
Behaviour: scroll down and when you will scroll to the top you will see
opacitybecoming.7API:
scrollTop– http://api.jquery.com/scrollTop/This should help,
B-)code