![](http://www.mk2048.com/web_upload/blog_imgs/3/static-wozhuye-com_uploadfile_2015_0616_20150616031847515.jpg)
我不像标题,我是一个不会晃动的安静的小天使!
代码
CSS代码:
/*注意:私有前缀这里已省略……*/
.demo {
margin-left: calc(100vw - 100%);
text-align: center; overflow: hidden;
animation: scrollbar-toggle 2s infinite alternate;
}
@keyframes scrollbar-toggle {
from { height: 0vh; }
to { height: 80vh; }
}
转载请注明:前端录»纯CSS让overflow:auto页面滚动条出现时不跳动
<script src="http://www.wozhuye.com/index.php?m=digg&c=index&a=init&id=16-122-2"></script>