水溶性加载动画效果

代码语言:html

所属分类:加载滚动

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


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

<style>
*,
*:before,
*:after {
  box-sizing: border-box;
}
.inspiration {
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 10px;
  font-size: 12px;
}
.inspiration img {
  width: 25px;
}
label {
  position: absolute;
  top: 10px;
  right: 5px;
  display: block;
  width: 96px;
  height: 48px;
  border-radius: 25px;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
  -webkit-transform: scale(0.6);
          transform: scale(0.6);
}
.switch {
  display: none;
}
.left,
.right {
  position: absolute;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  width: 100%;
  height: 100%;
  padding: 11px;
  font-size: 30px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.right {
  -webkit-box-pack: end;
          justify-content: flex-end;
}
.switch ~ .button {
  position: absolute;
  width: 46px;
  height: 46px;
  margin-top: 1px;
  margin-left: 1px;
  border-radius: 23px;
  box-shadow: inset -4px -2px 10px 0px #b6b6b6;
  backgroun.........完整代码请登录后点击上方下载按钮下载查看

网友评论0