css实现百叶窗拖动往下拉打开效果代码

代码语言:html

所属分类:拖放

代码描述:css实现百叶窗拖动往下拉打开效果代码

代码标签: css 百叶窗 拖动 往下 打开

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
   
        @layer demo-stuff, container-stuff;
        
        @layer container-stuff {
          *, *:after, *:before {
            pointer-events: none;
          }
          .container {
            pointer-events: all;
            container-type: size;
          }
          @container (min-height: 75px) {
            .blinds {
              --open: 0;
            }
          }
          @container (min-height: 100px) {
            .peter {
              --peter: 0;
            }
          }
          @container (min-height: 80.5px) {
            .blinds {
              --open: 0.1;
            }
          }
          @container (min-height: 103px) {
            .peter {
              --peter: 0.1;
            }
          }
          @container (min-height: 86px) {
            .blinds {
              --open: 0.2;
            }
          }
          @container (min-height: 106px) {
            .peter {
              --peter: 0.2;
            }
          }
          @container (min-height: 91.5px) {
            .blinds {
              --open: 0.3;
            }
          }
          @container (min-height: 109px) {
            .peter {
              --peter: 0.3;
            }
          }
          @container (min-height: 97px) {
            .blinds {
              --open: 0.4;
            }
          }
          @container (min-height: 112px) {
            .peter {
              --peter: 0.4;
            }
          }
          @container (min-height: 102.5px) {
            .blinds {
              --open: 0.5;
            }
          }
          @container (min-height: 115px) {
            .peter {
              --peter: 0.5;
            }
          }
          @container (min-height: 108px) {
            .blinds {
              --open: 0.6;
            }
          }
          @container (min-height: 118px) {
            .peter {
              --peter: 0.6;
            }
          }
          @container (min-height: 113.5px) {
            .blinds {
              --open: 0.7;
            }
          }
          @container (min-height: 121px) {
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0