"Pendulum Animation Pure CSS)"
Bootstrap 4.1.1 Snippet by ManuSingh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!-- <div class="floating-icon ">
Demo
</div>-->
<div class="base">
<div class="holder"></div>
<div class="thread">
<div class="knob"></div>
<div class="pendulum">Manu Singh</div>
</div>
<div class="shadow"></div>
</div>
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.base {
width: 500px;
border-top: 5px solid gray;
margin: auto;
text-align: center;
position: relative;
padding: 0 0 30px;
}
.holder {
width: 30px;
height: 20px;
background: black;
margin: auto;
border-radius: 0 0 50% 50%;
}
.thread {
display: inline-block;
width: 2px;
height: 200px;
background: black;
border-radius: 5px;
position: relative;
transform-origin: 50% 0;
animation: moveIt 2.5s ease-in-out infinite;
}
.thread:after {
content: "";
position: absolute;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: