Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #24889
Closed
Open
Issue created Nov 27, 2017 by Administrator@rootContributor

Feature request: smooth scroll behaviour

Created by: MartijnCuppens

Setting scroll-behaviour to smooth will enable smooth scrolling when scrolling happens due to navigation or CSSOM scrolling APIs. In my opinion it is clearer if a user scrolls to the section where he needs to be instead of the instant scoll.

The scroll behaviour can be set on :root or on every element (not inherited by default). Maybe make a variable, so this behaviour can easily be turned off if needed?

Currently only Chrome and Firefox support this feature, but it's more like an enhancement so I don't think this is an issue.

Demo: https://codepen.io/MartijnCuppens/pen/bYjEby?editors=1100 More info: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior Support: https://caniuse.com/#feat=css-scroll-behavior

Assignee
Assign to
Time tracking