Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
add: ver 1.6 new loading animate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Jun 26, 2019
1 parent 5157506 commit 8210175
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 3 deletions.
3 changes: 2 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
<toggle></toggle>
<div id="loading">
<!-- <div class="loading-circle"></div>-->
<img src="<?php $this->options->themeUrl('src/img/loading.gif') ?>" id="loading-img"/>
<!-- <img src="--><?php //$this->options->themeUrl('src/img/loading.gif') ?><!--" id="loading-img"/>-->
<div class="box"></div>
</div>
<nav>
<a href="<?php $this->options->siteUrl(); ?>">
Expand Down
File renamed without changes
75 changes: 73 additions & 2 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ article:not(.comment-list) li::before, .torTree li::before {
right: 0;
bottom: 0;
margin: auto;
height: 30rem;
width: 30rem;
height: 5rem;
width: 5rem;
transition: opacity .5s;
}

Expand All @@ -628,6 +628,77 @@ body.loading #loading {
animation: loading infinite 1s both linear;
}

/* - 样式二 */
#loading .box {
top: -4rem;
left: -2rem;
position: absolute;
}
#loading .box:before {
content: "";
position: absolute;
z-index: 2;
top: 60px;
left: 50px;
width: 50px;
height: 50px;
background: #e74c3c;
border-radius: 2px;
transform: rotate(45deg);
animation: box 0.8s infinite;
}

#loading .box:after {
content: "";
position: absolute;
z-index: 1;
top: 128px;
left: 52px;
width: 44px;
height: 3px;
background: #eaeaea;
border-radius: 100%;
animation: shadow 0.8s infinite;
}
@keyframes shadow {
0%,
100% {
left: 54px;
width: 40px;
background: #eaeaea;
}
50% {
top: 126px;
left: 50px; /*让阴影保持在原位*/
width: 50px;
height: 7px;
background: #eee;
}
}
@keyframes box {
0% {
top: 50px;
transform: rotate(90deg);
}
20% {
border-radius: .5rem;

}
50% {
top: 80px;
transform: rotate(45deg);
border-bottom-right-radius: 25px;
background-color: #e67e22
}
80% {
border-radius: 2px;
}
100% {
top: 50px;
transform: rotate(0deg);
}
}

#loading img {
transform: translateY(50%);
}
Expand Down

0 comments on commit 8210175

Please sign in to comment.