css实现一个全屏垂直滚动捕捉页面效果代码
代码语言:html
所属分类:加载滚动
代码描述:css实现一个全屏垂直滚动捕捉页面效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> html, body, section { block-size: 100%; } html { -ms-scroll-snap-type: y mandatory; scroll-snap-type: y mandatory; } section { scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; } section:nth-of-type(even) { color: white; background.........完整代码请登录后点击上方下载按钮下载查看
网友评论0