PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, February 8, 2022

[FIXED] Smooth scrolling when clicking Anchor Link

 February 08, 2022     css, html, javascript, wordpress     No comments   

Issue

I am working on a WordPress website that a client came to me with. He is requesting that all scroll speeds for anchors links match.

If you go to the home page here: https://www.lakeshoresup.com/ and click on Learn More under LET THE ADVENTURE BEGIN. The page scrolls down to the next section nicely.

Now if I click on Write Review next to the stars in a product (https://www.lakeshoresup.com/product/pathfinder/) it just jumps to the bottom instantly. The client wants the scroll for the first link.

First, how to I change the scroll speed?

Second, will it even work? The reviews come from a third party called Yotpo. Is it possible to change the scroll speed on this link that is embedded from third party software?


Solution

you can add in css a general scroll behavior for the entire website to scroll smoothly like:

* {
  scroll-behavior: smooth;
}


Answered By - Mahmoud Abdelaziz
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing