.circle-animation(){ .circle-animation-details(); .circle-animation-details(-moz-); .circle-animation-details(-webkit-); .circle-animation-details(-ms-); } .circle-animation-details(){ animation-name: spin; animation-duration: 1250ms; animation-iteration-count: infinite; animation-timing-function: linear; } .circle-animation-details(@name){ @{name}animation-name: spin; @{name}animation-duration: 1250ms; @{name}animation-iteration-count: infinite; @{name}animation-timing-function: linear; } @keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } } @-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } @-moz-keyframes spin { from { -moz-transform: rotate(0deg); } to { -moz-transform: rotate(360deg); } } @-ms-keyframes spin { from { -ms-transform: rotate(0deg); } to { -ms-transform: rotate(360deg); } }