2015-07-20 89 views
0

我想我可能完全誤解了這一點。手寫筆 - mixin - 變量

但說我有這個重複的CSS代碼。

.dot_one { 
    animation: dot_one 2s infinite linear; 
} 
.dot_two { 
    animation: dot_two 2s infinite linear; 
} 
.dot_three { 
    animation: dot_three 2s infinite linear; 
} 

我不應該能夠提取它作爲一個函數嗎? (但在手寫筆一個mixin)

dot_mix(myVar) 
    animation: myVar 2s infinite linear; 

dot_mix(.dot_one) 

回答