ziben69
1 week ago
103
4
Laravel

Scroll to section

Posted 1 week ago by ziben69

Hello guys, I have problem with scroll to section. Here is my code:

navbar.blade.php

 <li><a href="{{ URL::to('/') }}#contact" class="smoothScroll">CONTACT</a></li>

index.blade.php

<section id="contact">
</section>

if I go to any subpage, the CONTACT button takes me to the index page to the contact section but if I'm on the index page, the button above doesn't work. What is wrong?

Thanks for help!

Please sign in or create an account to participate in this conversation.