mirror of
https://github.com/zhigang1992/react-content-loader.git
synced 2026-04-28 12:15:33 +08:00
adjusts
This commit is contained in:
18
index.html
18
index.html
@@ -4,12 +4,16 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>Document</title>
|
||||
<style>
|
||||
body {
|
||||
background: #f3f3f3;
|
||||
}
|
||||
.container {
|
||||
position: relative;
|
||||
width: 400px;
|
||||
margin: 30px auto;
|
||||
padding: 30px;
|
||||
box-shadow: 0 3px 10px rgba(0,0,0,.2);
|
||||
background: #fff;
|
||||
}
|
||||
.gradient {
|
||||
fill: #999;
|
||||
@@ -23,7 +27,7 @@
|
||||
<div class="container">
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg viewBox = "0 0 400 400" version = "1.1">
|
||||
<svg viewBox = "0 0 400 130" version = "1.1">
|
||||
<!-- base -->
|
||||
<rect class="gradient" x="0" y="0" rx="5" ry="5" width="70" height="70" fill="#eee" stroke-width="0"/>
|
||||
|
||||
@@ -38,14 +42,14 @@
|
||||
|
||||
<defs>
|
||||
<linearGradient id="gradient">
|
||||
<stop offset="0%" stop-color="#EEE">
|
||||
<animate attributeName="offset" values="-2; 1" dur="2s" repeatCount="indefinite"/>
|
||||
<stop offset="0%" stop-color="#f3f3f3">
|
||||
<animate attributeName="offset" values="-2; 1" dur="2s" repeatCount="indefinite" />
|
||||
</stop>
|
||||
<stop offset="50%" stop-color="#dedede">
|
||||
<animate attributeName="offset" values="-1.5; 1.5" dur="2s" repeatCount="indefinite"/>
|
||||
<stop offset="50%" stop-color="#eeecec">
|
||||
<animate attributeName="offset" values="-1.5; 1.5" dur="2s" repeatCount="indefinite" />
|
||||
</stop>
|
||||
<stop offset="100%" stop-color="#EEE">
|
||||
<animate attributeName="offset" values="-1; 2" dur="2s" repeatCount="indefinite"/>
|
||||
<stop offset="100%" stop-color="#f3f3f3">
|
||||
<animate attributeName="offset" values="-1; 2" dur="2s" repeatCount="indefinite" />
|
||||
</stop>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
Reference in New Issue
Block a user