2012-04-10 61 views

回答

2

在你的jsfiddle,你現在已經是度值是什麼,所以你可以只檢查是否屬於旋轉你改變CSS transorm屬性之前已經定義的範圍內:

if(degree < 90 && degree > -90) { 
    // css transform changes 
} 

這將只適用於-90度到90度之間的旋轉。