TweenMax实现水平拖拽大气相册幻灯片轮播图效果代码

代码语言:html

所属分类:幻灯片

代码描述:TweenMax实现水平拖拽大气相册幻灯片轮播图效果代码

代码标签: TweenMax 拖拽 水平 幻灯片 轮播图 相册

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

<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
    @font-face {
  font-family: 'font';
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/58281/https://s3-us-west-2.amazonaws.com/s.cdpn.io/58281/OakesGrotesk-Semi-Bold.woff.woff2") format("woff2");
  src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/58281/https://s3-us-west-2.amazonaws.com/s.cdpn.io/58281/OakesGrotesk-Semi-Bold.woff.woff2") format("woff");
  font-weight: normal;
  font-style: normal;
}
html, body {
  height: 100%;
  font-family: 'helvetica neue';
}

body {
  height: 100%;
  overflow-y: scroll;
  padding: 0;
  margin: 0;
  background-color: #111;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

h1, h2 {
  font-weight: normal;
}

* {
  box-sizing: border-box;
}

figure {
  padding: 0;
  margin: 0;
}

.scroll {
  cursor: -webkit-grab;
  cursor: grab;
}

.scroll-content {
  display: flex;
  white-space: nowrap;
  position: relative;
  height: 100vh;
}
.scroll-content--last {
  position: absolute;
  top: 0;
  left: 0;
}

.hi {
  position: fixed;
  bottom: 2vw;
  left: 2vw;
  color: #fff;
  font-size: 1vw;
  z-index: 999;
  text-decoration: none;
}

.logo {
  position: relative;
}
.logo--top {
  position: fixed;
  top: 2vw;
  left: 2vw;
  z-index: 10;
}
.logo--top img {
  height: 1vw;
  width: auto;
}
.logo--resize {
  margin-bottom: 1rem;
}
.logo--resize img {
  width: 10rem;
  margin: 0 auto;
}
.logo--mask {
  overflow: hidden;
  margin-bottom: 2rem;
}
.logo--mask img {
  width: 15rem;
  height: auto;
  margin: 0 auto;
  visibility: hidden;
  opacity: 0;
}

.menu-btn {
  position: fixed;
  top: 2vw;
  right: 2vw;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 999;
}
.menu-btn__circles {
  position: relative;
  height: 0.45vw;
  width: 0.45vw;
  margin-right: 0.75vw;
}
.menu-btn__circle {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 50%;
}
.menu-btn__circle--top {
  visiblity: hidden;
  opacity: 0;
}
.menu-btn__text {
  color: #fff;
  font-size: 1vw;
}

.filter {
  position:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0