Skip to content

Commit

Permalink
feat: 添加首屏渲染动画
Browse files Browse the repository at this point in the history
  • Loading branch information
damingerdai committed Jan 25, 2019
1 parent 948a3cd commit d8e534d
Showing 1 changed file with 60 additions and 2 deletions.
62 changes: 60 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>DamingCoreUi</title>
Expand All @@ -8,7 +9,64 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>

<body>
<app-root></app-root>
<app-root>
<style>
app-root {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;

color: #fff;
;
text-transform: uppercase;
font-family: -apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen-Sans,
Ubuntu,
Cantarell,
Helvetica,
sans-serif;
font-size: 2.5em;
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

body {
background: rgb(10, 103, 157);
;
margin: 0;
padding: 0;
}

@keyframes dots {
50% {
transform: translateY(-.4rem);
}

100% {
transform: translateY(0);
}
}

.d {
animation: dots 1.5s ease-out infinite;
}

.d-2 {
animation-delay: .5s;
}

.d-3 {
animation-delay: 1s;
}
</style>

Loading<span class="d">.</span><span class="d d-2">.</span><span class="d d-3">.</span>
</app-root>
</body>
</html>

</html>

0 comments on commit d8e534d

Please sign in to comment.