0

I am trying to make a website using bootstrap and I want to go to my div's in my homepage from the navbar itself.I have passed the id of my div to the anchor tag in my navbar but the problem is it goes directly to that part,but I want to slide to that part as done in this website when you click on the navbar elements it slides rather than directly going

How to do this?

vibhu kapoor
  • 71
  • 1
  • 9
  • not possible with css, you'll need javascript – Toni Leigh Jul 04 '15 at 18:21
  • Possible duplicate - http://stackoverflow.com/questions/14804941/how-to-add-smooth-scrolling-to-bootstraps-scroll-spy-function – Paulie_D Jul 04 '15 at 18:25
  • http://startbootstrap.com/template-overviews/scrolling-nav/ – Paulie_D Jul 04 '15 at 18:25
  • duplicate is exactly how I was going to answer, dear me, it's hard to get a high scoring answer here, I wish I could get 127 upvotes! – Toni Leigh Jul 04 '15 at 18:29
  • Take heart Toni Leigh. Those 127 votes are over a 2 year span. They kinda trickle in. People search for an issue, then find your answer and vote it up. Write good answers and you'll get votes over time. I still get +10's from answers I wrote years ago... of course, you'll also lose points periodically when user accounts are deleted. – Gary Hayes Jul 04 '15 at 18:36