IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 游戏开发 -> 【css】CSS实现翻书效果加载动画 -> 正文阅读

[游戏开发]【css】CSS实现翻书效果加载动画

css:

            .loader {
			  --background: linear-gradient(135deg, #23C4F8, #275EFE);
			  --shadow: rgba(39, 94, 254, 0.28);
			  --text: #6C7486;
			  --page: rgba(255, 255, 255, 0.36);
			  --page-fold: rgba(255, 255, 255, 0.52);
			  --duration: 3s;
			  width: 200px;
			  height: 140px;
			  position: relative;
			}
			.loader:before, .loader:after {
			  --r: -6deg;
			  content: "";
			  position: absolute;
			  bottom: 8px;
			  width: 120px;
			  top: 80%;
			  box-shadow: 0 16px 12px var(--shadow);
			  transform: rotate(var(--r));
			}
			.loader:before {
			  left: 4px;
			}
			.loader:after {
			  --r: 6deg;
			  right: 4px;
			}
			.loader div {
			  width: 100%;
			  height: 100%;
			  border-radius: 13px;
			  position: relative;
			  z-index: 1;
			  perspective: 600px;
			  box-shadow: 0 4px 6px var(--shadow);
			  background-image: var(--background);
			}
			.loader div ul {
			  margin: 0;
			  padding: 0;
			  list-style: none;
			  position: relative;
			}
			.loader div ul li {
			  --r: 180deg;
			  --o: 0;
			  --c: var(--page);
			  position: absolute;
			  top: 10px;
			  left: 10px;
			  transform-origin: 100% 50%;
			  color: var(--c);
			  opacity: var(--o);
			  transform: rotateY(var(--r));
			  -webkit-animation: var(--duration) ease infinite;
			          animation: var(--duration) ease infinite;
			}
			.loader div ul li:nth-child(2) {
			  --c: var(--page-fold);
			  -webkit-animation-name: page-2;
			          animation-name: page-2;
			}
			.loader div ul li:nth-child(3) {
			  --c: var(--page-fold);
			  -webkit-animation-name: page-3;
			          animation-name: page-3;
			}
			.loader div ul li:nth-child(4) {
			  --c: var(--page-fold);
			  -webkit-animation-name: page-4;
			          animation-name: page-4;
			}
			.loader div ul li:nth-child(5) {
			  --c: var(--page-fold);
			  -webkit-animation-name: page-5;
			          animation-name: page-5;
			}
			.loader div ul li svg {
			  width: 90px;
			  height: 120px;
			  display: block;
			}
			.loader div ul li:first-child {
			  --r: 0deg;
			  --o: 1;
			}
			.loader div ul li:last-child {
			  --o: 1;
			}
			.loader span {
			  display: block;
			  left: 0;
			  right: 0;
			  top: 100%;
			  margin-top: 20px;
			  text-align: center;
			  color: var(--text);
			}
			
			@-webkit-keyframes page-2 {
			  0% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  20% {
			    opacity: 1;
			  }
			  35%, 100% {
			    opacity: 0;
			  }
			  50%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			
			@keyframes page-2 {
			  0% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  20% {
			    opacity: 1;
			  }
			  35%, 100% {
			    opacity: 0;
			  }
			  50%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			@-webkit-keyframes page-3 {
			  15% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  35% {
			    opacity: 1;
			  }
			  50%, 100% {
			    opacity: 0;
			  }
			  65%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			@keyframes page-3 {
			  15% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  35% {
			    opacity: 1;
			  }
			  50%, 100% {
			    opacity: 0;
			  }
			  65%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			@-webkit-keyframes page-4 {
			  30% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  50% {
			    opacity: 1;
			  }
			  65%, 100% {
			    opacity: 0;
			  }
			  80%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			@keyframes page-4 {
			  30% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  50% {
			    opacity: 1;
			  }
			  65%, 100% {
			    opacity: 0;
			  }
			  80%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			@-webkit-keyframes page-5 {
			  45% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  65% {
			    opacity: 1;
			  }
			  80%, 100% {
			    opacity: 0;
			  }
			  95%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			@keyframes page-5 {
			  45% {
			    transform: rotateY(180deg);
			    opacity: 0;
			  }
			  65% {
			    opacity: 1;
			  }
			  80%, 100% {
			    opacity: 0;
			  }
			  95%, 100% {
			    transform: rotateY(0deg);
			  }
			}
			html {
			  box-sizing: border-box;
			  -webkit-font-smoothing: antialiased;
			}
			
			* {
			  box-sizing: inherit;
			}
			*:before, *:after {
			  box-sizing: inherit;
			}
			
			body {
			  min-height: 100vh;
			  display: flex;
			  justify-content: center;
			  align-items: center;
			  background: #1C212E;
			  font-family: "Roboto", Arial;
			}
			body .dribbble {
			  position: fixed;
			  display: block;
			  right: 24px;
			  bottom: 24px;
			}
			body .dribbble img {
			  display: block;
			  width: 76px;
			}

html:

<div class="loader">
		  <div>
		    <ul>
		      <li>
		        <svg viewBox="0 0 90 120" fill="currentColor">
		          <path d="M90,0 L90,120 L11,120 C4.92486775,120 0,115.075132 0,109 L0,11 C0,4.92486775 4.92486775,0 11,0 L90,0 Z M71.5,81 L18.5,81 C17.1192881,81 16,82.1192881 16,83.5 C16,84.8254834 17.0315359,85.9100387 18.3356243,85.9946823 L18.5,86 L71.5,86 C72.8807119,86 74,84.8807119 74,83.5 C74,82.1745166 72.9684641,81.0899613 71.6643757,81.0053177 L71.5,81 Z M71.5,57 L18.5,57 C17.1192881,57 16,58.1192881 16,59.5 C16,60.8254834 17.0315359,61.9100387 18.3356243,61.9946823 L18.5,62 L71.5,62 C72.8807119,62 74,60.8807119 74,59.5 C74,58.1192881 72.8807119,57 71.5,57 Z M71.5,33 L18.5,33 C17.1192881,33 16,34.1192881 16,35.5 C16,36.8254834 17.0315359,37.9100387 18.3356243,37.9946823 L18.5,38 L71.5,38 C72.8807119,38 74,36.8807119 74,35.5 C74,34.1192881 72.8807119,33 71.5,33 Z"></path>
		        </svg>
		      </li>
		      <li>
		        <svg viewBox="0 0 90 120" fill="currentColor">
		          <path d="M90,0 L90,120 L11,120 C4.92486775,120 0,115.075132 0,109 L0,11 C0,4.92486775 4.92486775,0 11,0 L90,0 Z M71.5,81 L18.5,81 C17.1192881,81 16,82.1192881 16,83.5 C16,84.8254834 17.0315359,85.9100387 18.3356243,85.9946823 L18.5,86 L71.5,86 C72.8807119,86 74,84.8807119 74,83.5 C74,82.1745166 72.9684641,81.0899613 71.6643757,81.0053177 L71.5,81 Z M71.5,57 L18.5,57 C17.1192881,57 16,58.1192881 16,59.5 C16,60.8254834 17.0315359,61.9100387 18.3356243,61.9946823 L18.5,62 L71.5,62 C72.8807119,62 74,60.8807119 74,59.5 C74,58.1192881 72.8807119,57 71.5,57 Z M71.5,33 L18.5,33 C17.1192881,33 16,34.1192881 16,35.5 C16,36.8254834 17.0315359,37.9100387 18.3356243,37.9946823 L18.5,38 L71.5,38 C72.8807119,38 74,36.8807119 74,35.5 C74,34.1192881 72.8807119,33 71.5,33 Z"></path>
		        </svg>
		      </li>
		      <li>
		        <svg viewBox="0 0 90 120" fill="currentColor">
		          <path d="M90,0 L90,120 L11,120 C4.92486775,120 0,115.075132 0,109 L0,11 C0,4.92486775 4.92486775,0 11,0 L90,0 Z M71.5,81 L18.5,81 C17.1192881,81 16,82.1192881 16,83.5 C16,84.8254834 17.0315359,85.9100387 18.3356243,85.9946823 L18.5,86 L71.5,86 C72.8807119,86 74,84.8807119 74,83.5 C74,82.1745166 72.9684641,81.0899613 71.6643757,81.0053177 L71.5,81 Z M71.5,57 L18.5,57 C17.1192881,57 16,58.1192881 16,59.5 C16,60.8254834 17.0315359,61.9100387 18.3356243,61.9946823 L18.5,62 L71.5,62 C72.8807119,62 74,60.8807119 74,59.5 C74,58.1192881 72.8807119,57 71.5,57 Z M71.5,33 L18.5,33 C17.1192881,33 16,34.1192881 16,35.5 C16,36.8254834 17.0315359,37.9100387 18.3356243,37.9946823 L18.5,38 L71.5,38 C72.8807119,38 74,36.8807119 74,35.5 C74,34.1192881 72.8807119,33 71.5,33 Z"></path>
		        </svg>
		      </li>
		      <li>
		        <svg viewBox="0 0 90 120" fill="currentColor">
		          <path d="M90,0 L90,120 L11,120 C4.92486775,120 0,115.075132 0,109 L0,11 C0,4.92486775 4.92486775,0 11,0 L90,0 Z M71.5,81 L18.5,81 C17.1192881,81 16,82.1192881 16,83.5 C16,84.8254834 17.0315359,85.9100387 18.3356243,85.9946823 L18.5,86 L71.5,86 C72.8807119,86 74,84.8807119 74,83.5 C74,82.1745166 72.9684641,81.0899613 71.6643757,81.0053177 L71.5,81 Z M71.5,57 L18.5,57 C17.1192881,57 16,58.1192881 16,59.5 C16,60.8254834 17.0315359,61.9100387 18.3356243,61.9946823 L18.5,62 L71.5,62 C72.8807119,62 74,60.8807119 74,59.5 C74,58.1192881 72.8807119,57 71.5,57 Z M71.5,33 L18.5,33 C17.1192881,33 16,34.1192881 16,35.5 C16,36.8254834 17.0315359,37.9100387 18.3356243,37.9946823 L18.5,38 L71.5,38 C72.8807119,38 74,36.8807119 74,35.5 C74,34.1192881 72.8807119,33 71.5,33 Z"></path>
		        </svg>
		      </li>
		      <li>
		        <svg viewBox="0 0 90 120" fill="currentColor">
		          <path d="M90,0 L90,120 L11,120 C4.92486775,120 0,115.075132 0,109 L0,11 C0,4.92486775 4.92486775,0 11,0 L90,0 Z M71.5,81 L18.5,81 C17.1192881,81 16,82.1192881 16,83.5 C16,84.8254834 17.0315359,85.9100387 18.3356243,85.9946823 L18.5,86 L71.5,86 C72.8807119,86 74,84.8807119 74,83.5 C74,82.1745166 72.9684641,81.0899613 71.6643757,81.0053177 L71.5,81 Z M71.5,57 L18.5,57 C17.1192881,57 16,58.1192881 16,59.5 C16,60.8254834 17.0315359,61.9100387 18.3356243,61.9946823 L18.5,62 L71.5,62 C72.8807119,62 74,60.8807119 74,59.5 C74,58.1192881 72.8807119,57 71.5,57 Z M71.5,33 L18.5,33 C17.1192881,33 16,34.1192881 16,35.5 C16,36.8254834 17.0315359,37.9100387 18.3356243,37.9946823 L18.5,38 L71.5,38 C72.8807119,38 74,36.8807119 74,35.5 C74,34.1192881 72.8807119,33 71.5,33 Z"></path>
		        </svg>
		      </li>
		      <li>
		        <svg viewBox="0 0 90 120" fill="currentColor">
		          <path d="M90,0 L90,120 L11,120 C4.92486775,120 0,115.075132 0,109 L0,11 C0,4.92486775 4.92486775,0 11,0 L90,0 Z M71.5,81 L18.5,81 C17.1192881,81 16,82.1192881 16,83.5 C16,84.8254834 17.0315359,85.9100387 18.3356243,85.9946823 L18.5,86 L71.5,86 C72.8807119,86 74,84.8807119 74,83.5 C74,82.1745166 72.9684641,81.0899613 71.6643757,81.0053177 L71.5,81 Z M71.5,57 L18.5,57 C17.1192881,57 16,58.1192881 16,59.5 C16,60.8254834 17.0315359,61.9100387 18.3356243,61.9946823 L18.5,62 L71.5,62 C72.8807119,62 74,60.8807119 74,59.5 C74,58.1192881 72.8807119,57 71.5,57 Z M71.5,33 L18.5,33 C17.1192881,33 16,34.1192881 16,35.5 C16,36.8254834 17.0315359,37.9100387 18.3356243,37.9946823 L18.5,38 L71.5,38 C72.8807119,38 74,36.8807119 74,35.5 C74,34.1192881 72.8807119,33 71.5,33 Z"></path>
		        </svg>
		      </li>
		    </ul>
		  </div><span>Loading</span>
		</div>

?

  游戏开发 最新文章
6、英飞凌-AURIX-TC3XX: PWM实验之使用 GT
泛型自动装箱
CubeMax添加Rtthread操作系统 组件STM32F10
python多线程编程:如何优雅地关闭线程
数据类型隐式转换导致的阻塞
WebAPi实现多文件上传,并附带参数
from origin ‘null‘ has been blocked by
UE4 蓝图调用C++函数(附带项目工程)
Unity学习笔记(一)结构体的简单理解与应用
【Memory As a Programming Concept in C a
上一篇文章      下一篇文章      查看所有文章
加:2022-01-08 14:22:27  更:2022-01-08 14:24:32 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/27 19:39:21-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码