Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery smooth scrool

('a[href*="#"]').on('click', function (e) {
  e.preventDefault()

  $('html, body').animate(
    {
      scrollTop: $($(this).attr('href')).offset().top,
    },
    500,
    'linear'
  )
})
Comment

smooth scroll jquery

smooth scroll
Comment

PREVIOUS NEXT
Code Example
Javascript :: check if parameter is array javascript 
Javascript :: javascript get first 2 char 
Javascript :: tolowercase javascript 
Javascript :: am pm to 24 hours converter javascript 
Javascript :: node read file line 
Javascript :: automatically add typedef to module.exports vscode site:stackoverflow.com 
Javascript :: javascript voice reader 
Javascript :: regex to check non empty string 
Javascript :: js stop form submit on enter 
Javascript :: javascript setinterval 
Javascript :: angular ng serve with custom port 
Javascript :: js change opacity 
Javascript :: nodejs ask for input 
Javascript :: flash input js 
Javascript :: javascript get string between two characters 
Javascript :: swap two numbers without temp in javascript 
Javascript :: camera helper three js 
Javascript :: how to add double click event in javascript 
Javascript :: split string by uppercase javascript 
Javascript :: if is array javascript 
Javascript :: set text of dom element 
Javascript :: jquery get all title 
Javascript :: javascript readfile 
Javascript :: remove decimals javascript 
Javascript :: check if letter is uppercase javascript 
Javascript :: capitalize first letter of every word javascript 
Javascript :: javascript get utc time 
Javascript :: performance.now nodejs example 
Javascript :: socket io esm 
Javascript :: mongo delete a key in matching documents 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =