glide实现层叠式可拖动幻灯片效果代码

代码语言:html

所属分类:幻灯片

代码描述:glide实现层叠式可拖动幻灯片效果代码

代码标签: glide 层叠式 可拖动 幻灯片

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/glide.core.2.0.9.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/glide.theme.2.0.9.css">
    <style>
        .box {
          width: 100%;
          height: 60vh;
          border-radius: 12px;
        }
        .glide__wrapper {
          padding: 15vh 0;
        }
        .glide__track {
          overflow: visible;
          height: 60vh;
        }
        .glide__slide {
          transition: all 200ms ease;
          transform-origin: 50% 50%;
          transform: translate3d(0, 0, 0);
        }
        .glide__slide.active {
          transform: scale(1.02);
        }
        .glide__slide.pre {
          transform: perspective(50em) rotateY(15deg);
        }
        .glide__slide.following {
          transform: perspective(50em) rotateY(-15deg);
        }
        .glide--horizontal .glide__bullets {
          bottom: 25%;
        }
        body {
          display: flex;
          justify-content: center;
          align-items: center;
        }
    </style>


</head>

<body translate="no">
    <div class="glide" id="Glide">
        <div class="glide__wrapper">
            <ul class="glide__track">
                <li class="glide__slide">
                    <div class="box" style="background-color: #77A7FB;"></div>
                </li>
                <li class="glide__slide">
                    <div class="box" style="backg.........完整代码请登录后点击上方下载按钮下载查看

网友评论0