Skip to main content

Goto the Div Position - JavaScript

HTML
--------
<div id="design_start">
Your content here
</div>
<button onclick="goto_top_position();">Move to design area</button>

JS
------
function goto_top_position()
        {
            $('html, body').animate({
                scrollTop: $("#design_start").offset().top
            }, 1000);
        }


This code will take the scroll to the div position with animation

Popular posts from this blog

#ThankYouCitrisys

MAY 5, 2015 an unforgettable day in my life. Why this award is so special to me? Because, after 8 years (After completion of Engineering), I landed on a good place where they identified me and involved me in the good projects with suitable PMOs. With all their support in Citrisys, I did small things with my involvement. For that, Citrisys, awarded me this "Award of Excellence". This award not shows me the best performance, but, it shows me to work more and more. Thank you Mr.ARA (CEO, Citrisys Solutions) for this award. #ThankYouCitrisys

Citrisys Poster Competition work 02