Site Notice
hello, world
Difference between revisions of "AJAX loading"
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. | + | The quick brown fox jumps over the lazy dog. |
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
+ | |||
+ | The quick brown fox jumps over the lazy dog. | ||
<html> | <html> | ||
<style> | <style> | ||
Line 14: | Line 34: | ||
top: 0; | top: 0; | ||
z-index: 1; | z-index: 1; | ||
+ | } | ||
+ | .ajax-load #content:before, | ||
+ | .ajax-load #content:after { | ||
+ | content: ""; | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | border-radius: 50%; | ||
+ | z-index: 2; | ||
+ | } | ||
+ | .ajax-load #content:before { | ||
+ | top: 200px; | ||
+ | left: calc(50% - 38px); | ||
+ | height: 60px; | ||
+ | width: 60px; | ||
+ | border: 8px solid transparent; | ||
+ | border-top-color: #33a0fb; | ||
+ | border-right-color: #33a0fb; | ||
+ | box-shadow: 0 0 4px #33a0fb, 0 0 4px #afafaf inset; | ||
+ | animation: ajax-spin-out 2s infinite linear; | ||
+ | } | ||
+ | .ajax-load #content:after { | ||
+ | top: 214px; | ||
+ | left: calc(50% - 24px); | ||
+ | height: 36px; | ||
+ | width: 36px; | ||
+ | border: 6px solid transparent; | ||
+ | border-bottom-color: #33a0fb; | ||
+ | border-left-color: #33a0fb; | ||
+ | box-shadow: 0 0 4px #afafaf, 0 0 6px #33a0fb inset; | ||
+ | animation: ajax-spin-in 2s infinite linear; | ||
+ | } | ||
+ | @keyframes ajax-spin-in { | ||
+ | from { | ||
+ | transform: rotate(0deg); | ||
+ | } | ||
+ | to { | ||
+ | transform: rotate(720deg); | ||
+ | } | ||
+ | } | ||
+ | @keyframes ajax-spin-out { | ||
+ | from { | ||
+ | transform: rotate(0deg); | ||
+ | } | ||
+ | to { | ||
+ | transform: rotate(-720deg); | ||
+ | } | ||
} | } | ||
</style> | </style> | ||
</html> | </html> |
Latest revision as of 00:28, 3 December 2019
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog. <html> <style> .ajax-load #mw-content::before {
content: ""; background: rgba(255,255,255,.7); display: block; margin: 0; padding: 0; height: 100%; width: 100%; position: absolute; left: 0; top: 0; z-index: 1;
} .ajax-load #content:before, .ajax-load #content:after {
content: ""; display: block; position: absolute; border-radius: 50%; z-index: 2;
} .ajax-load #content:before {
top: 200px; left: calc(50% - 38px); height: 60px; width: 60px; border: 8px solid transparent; border-top-color: #33a0fb; border-right-color: #33a0fb; box-shadow: 0 0 4px #33a0fb, 0 0 4px #afafaf inset; animation: ajax-spin-out 2s infinite linear;
} .ajax-load #content:after {
top: 214px; left: calc(50% - 24px); height: 36px; width: 36px; border: 6px solid transparent; border-bottom-color: #33a0fb; border-left-color: #33a0fb; box-shadow: 0 0 4px #afafaf, 0 0 6px #33a0fb inset; animation: ajax-spin-in 2s infinite linear;
} @keyframes ajax-spin-in {
from { transform: rotate(0deg); } to { transform: rotate(720deg); }
} @keyframes ajax-spin-out {
from { transform: rotate(0deg); } to { transform: rotate(-720deg); }
} </style> </html>