상세 컨텐츠

본문 제목

Momentum Scrolling on iOS Overflow Elements

시스템설정

by webtattoo 2016. 5. 21. 21:55

본문



https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/





Web pages on iOS by default have a "momentum" style scrolling where a flick of the finger sends the web page scrolling and it keeps going until eventually slowing down and stopping as if friction is slowing it down. Like if you were to push a hockey puck across the ice or something. You might think that any element with scrolling would have this behavior as well, but it doesn't. You can add it back with a special property.

.module {
  width: 300px;
  height: 200px;

  overflow-y: scroll; /* has to be scroll, not auto */
  -webkit-overflow-scrolling: touch;
}


'시스템설정' 카테고리의 다른 글

[Windows] MySQL 5.7 실행  (7) 2016.05.29
IIS express 외부에서 접속  (0) 2016.05.26
Windows2012 + Tomcat 연동 설정  (0) 2016.04.27
CentOS IP설정  (0) 2016.03.12
c6 실행목록  (0) 2016.01.30

관련글 더보기