Pendulam Christmas Balls Bells Swing CSS3 animation
HTML
<div>
<img id="ball" class="bellImg" src="https://s5.postimg.org/t6niwhpuf/xmas1.png" >
<img id="ball" class="bellImg1" src="https://s5.postimg.org/o99ybdnvb/xmas2.png" >
<img id="ball" class="bellImg2" src="https://s5.postimg.org/p02oh5q8n/xmas3.png" >
</div>
CSS
.bellImg {
width: 48px;
position: absolute;
right: 10px;
top: 18px;
-webkit-animation-name: rotate;
animation-delay: 0s;
-webkit-animation-duration: 3s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: normal;
-webkit-transform-origin: 50% 0%;
-webkit-animation-timing-function: linear; /* or make your custom easing */
}
.bellImg1
{
width: 31px;
position: absolute;
right: 10px;
top: 18px;
-webkit-animation-name: rotate;
animation-delay: 0s;
-webkit-animation-duration: 2s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: normal;
-webkit-transform-origin: 50% 0%;
-webkit-animation-timing-function: linear; /* or make your custom easing */
}
.bellImg2 {
width: 48px;
position: absolute;
right: 10px;
top: 18px;
-webkit-animation-name: rotate;
animation-delay: 0s;
-webkit-animation-duration: 4s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: normal;
-webkit-transform-origin: 50% 0%;
-webkit-animation-timing-function: linear; /* or make your custom easing */
}
@-webkit-keyframes rotate {
0% {
-webkit-transform: rotate(0deg);
}
25% {
-webkit-transform: rotate(10deg);
}
75% {
-webkit-transform: rotate(-10deg);
}
100% {
-webkit-transform: rotate(0deg);
}
}