TweenMax日历翻转动画显示日期效果

代码语言:html

所属分类:悬停

代码描述:TweenMax日历翻转动画显示日期效果

代码标签: 动画 显示 日期 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500);
@import url(https://fonts.googleapis.com/css?family=Quicksand:400,700);
html,
body {
  display: table;
  width: 100%;
  height: 100%;
  background: #f8f8f8;
}

.main-ctr {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.calendar-ctr {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: block;
  position: relative;
  -webkit-perspective: 500px;
  -moz-perspective: 500px;
  perspective: 500px;
  font-family: Roboto;
  font-weight: 400;
}
.calendar-ctr .top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 50%;
  background: #3C75D3;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  overflow: hidden;
  -webkit-transform-origin: center bottom;
  -moz-transform-origin: center bottom;
  -ms-transform-origin: center bottom;
  -o-transform-origin: center bottom;
  transform-origin: center bottom;
  will-change: transform;
}
.calendar-ctr .top:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.calendar-ctr .top.top-0 {
  background: #ddd;
}
.calendar-ctr .top.top-0 {
  z-index: 29;
}
.calendar-ctr .top.top-1 {
  z-index: 28;
}
.calendar-ctr .top.top-2 {
  z-index: 27;
}
.calendar-ctr .top.top-3 {
  z-index: 26;
}
.calendar-ctr .top.top-4 {
  z-index: 25;
}
.calendar-ctr .top.top-5 {
  z-index: 24;
}
.calendar-ctr .top.top-6 {
  z-index: 23;
}
.calendar-ctr .top.top-7 {
  z-index: 22;
}
.calendar-ctr .top.top-8 {
  z-index: 21;
}
.calendar-ctr .top.top-9 {
  z-index: 20;
}
.calendar-ctr .top.top-10 {
  z-index: 19;
}
.calendar-ctr .top.top-11 {
  z-index: 18;
}
.calendar-ctr .top.top-12 {
  z-index: 17;
}
.calendar-ctr .top.top-13 {
  z-index: 16;
}
.calendar-ctr .top.top-14 {
  z-index: 15;
}
.calendar-ctr .top.top-15 {
  z-index: 14;
}
.calendar-ctr .top.top-16 {
  z-index: 13;
}
.calendar-ctr .top.top-17 {
  z-index: 12;
}
.calendar-ctr .top.top-18 {
  z-index: 11;
}
.calendar-ctr .top.top-19 {
  z-index: 10;
}
.calendar-ctr .top.top-20 {
  z-index: 9;
}
.calendar-ctr .top.top-21 {
  z-index: 8;
}
.calendar-ctr .top.top-22 {
  z-index: 7;
}
.calendar-ctr .top.top-23.........完整代码请登录后点击上方下载按钮下载查看

网友评论0