Answers for "css overflow smooth scroll mobile"

CSS
0

css overflow smooth scroll mobile

div {
  width: 100%;
  overflow: auto;
}

p {
  width: 200%;
  background: #f5f9fa;
  border: 2px solid #eaf2f4;
  padding: 10px;
}

.scroll-touch {
  -webkit-overflow-scrolling: touch; /* Lets it scroll lazy */
}

.scroll-auto {
  -webkit-overflow-scrolling: auto; /* Stops scrolling immediately */
}
Posted by: Guest on September-25-2021

Browse Popular Code Answers by Language