I have a button which currently rotates in 360 degrees for half a second. It's css:
.progress-spinner{
color: #FF4081;
-webkit-animation:spin 0.5s linear 1;
-moz-animation:spin 0.5s linear 1;
animation: spin 0.5s linear 1;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
I also want this button to zoom in and out at the same time. How can I achieve it? I have another animation for zoom in and out as following:
animation-name: pop;
animation-iteration-count: 1;
animation-duration: 0.3s;
animation-direction: normal;
animation-fill-mode: forwards;
animation-timing-function: ease-in-out;
@keyframes pop {
0% {
transform: scale(1);
}
50% {
transform: scale(2);
}
100% {
transform: scale(1);
}
}
I am not sure how to put them together?