"Swirling Insanity"
Bootstrap 3.3.0 Snippet by Opeyemi15

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class='container'>
<div id='cube'>
<div class='front'></div>
<div class='back'></div>
<div class='right'></div>
<div class='left'></div>
<div class='top'></div>
<div class='bottom'></div>
</div>
</div>
<div class='container'>
<div id='cube'>
<div class='front'></div>
<div class='back'></div>
<div class='right'></div>
<div class='left'></div>
<div class='top'></div>
<div class='bottom'></div>
</div>
</div>
<div class='container'>
<div id='cube'>
<div class='front'></div>
<div class='back'></div>
<div class='right'></div>
<div class='left'></div>
<div class='top'></div>
<div class='bottom'></div>
</div>
</div>
<div class='container'>
<div id='cube'>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
body {
background: #230F2B;
}
body .container {
width: 100px;
height: 100px;
position: absolute;
perspective: 500px;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
body .container:nth-of-type(1n + 1) #cube {
animation-delay: 0.05s;
}
body .container:nth-of-type(1n + 1) #cube div {
animation-delay: 0.005s;
width: calc(100px - 1px);
height: calc(100px - 1px);
}
body .container:nth-of-type(2n + 2) #cube {
animation-delay: 0.1s;
}
body .container:nth-of-type(2n + 2) #cube div {
animation-delay: 0.01s;
width: calc(100px - 2px);
height: calc(100px - 2px);
}
body .container:nth-of-type(3n + 3) #cube {
animation-delay: 0.15s;
}
body .container:nth-of-type(3n + 3) #cube div {
animation-delay: 0.015s;
width: calc(100px - 3px);
height: calc(100px - 3px);
}
body .container:nth-of-type(4n + 4) #cube {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: