Ajax Loader
HTML
<div></div>
1
<div></div>
2
 
3
<script class="cssdeck" src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
 
CSS
* {
1
* {
2
  margin: 0;
3
  padding: 0;
4
}
5
 
6
html, body {
7
  width: 100%;
8
  height: 100%;
9
}
10
 
11
body {
12
  display: flex;
13
  justify-content: center;
14
  align-items: center;
15
  background: #eaeaea;
16
}
17
 
18
div {
19
  display: inline-block;
20
  
21
  background: #fff;
22
  box-shadow: 0 2px 1px #aaa;
23
  animation: shapes 3s ease-in-out infinite;
24
}
25
 
26
@keyframes shapes {
27
  0% {
28
    border-radius: 50%;
29
    width: 48px;
30
    height: 48px;
31
  }
32
  50% {
33
    border-radius: 5px;
34
    width: 128px;
35
    height: 128px;
36
  }
37
  75% {
38
    border-radius: 2px;
39
    width: 256px;
40
    height: 256px;
41
  }
42
  100% {
43
    border-radius: 50%;
44
    width: 48px;
45
    height: 48px;
46
  }
47
}
 

Material design - Transforming material

CSSDeck G+