Topic: smooth-scroll on button

Delari pro asked 6 years ago


hello,
Tell me how to apply smooth-scroll to a button

<a class="btn btn-outline-white" href="#Solutions">Read more</a>

that not work
<a class="btn btn-outline-white smooth-scroll" href="#Solutions">Read more</a>

<section id="Solutions"> ... </ section>

Mikołaj Smoleński staff answered 6 years ago


Hi Delari,

Please try the following code and let me know if it solved Your issue:

<div class="smooth-scroll">
 <a class="btn btn-outline-white" href="#Solutions">Read more</a>
</div>
<div style="height: 1800px; width: 100%"></div>
<section id="Solutions"> ... </section>

Regards


Dávid Kőrösi free commented 6 years ago

it worked for me, thanks!


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags