Closed casper5822 closed 4 years ago
Hello i have this simple anchor that points to a div down in the single page site:
<a pageScroll href="#contact" (click) = "open = false"></a>
then in the site there is the section:
<section id="contact"></section>
When i click on the anchor, a very little scroll appears, and then it ends. But the section it down after a lot of html tags between. I don't understand why the scroll begins and ends after just 1 second.
Best regards Antonio
Ok i found the problem, if i set on body css tag scroll:smooth this error will happen. Without this css it works.
Hello i have this simple anchor that points to a div down in the single page site:
<a pageScroll href="#contact" (click) = "open = false"></a>
then in the site there is the section:
<section id="contact"></section>
When i click on the anchor, a very little scroll appears, and then it ends. But the section it down after a lot of html tags between. I don't understand why the scroll begins and ends after just 1 second.
Best regards Antonio