我們一直在使用iPhone(3G + 4)上的CSS3進行測試,並且出現了一些性能問題。移動設備上的CSS3性能
我們得到了一張Webapp,顯示的是個人資料圖片+額外信息。
我們有一個箱(默認情況下,我們隱藏的90%,箱):
border: 1px solid #aaa;
font-size: 11px;
text-shadow: 0 1px 0 rgba(0,0,0,.75);
box-shadow: inset 0 0 40px rgba(255,255,255,.8);
-webkit-box-shadow: inset 0 0 40px rgba(255,255,255,.8);
-moz-box-shadow: inset 0 0 40px rgba(255,255,255,.8);
-moz-border-radius: 0 10px 0 0;
-webkit-border-radius: 0 10px 0 0;
border-radius: 0 10px 0 0;
我們有3個圖標與下方的標籤:
background: rgba(0,0,0,.5);
padding: 3px;
font-weight: bold;
text-shadow: 0 1px 0 #000;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
現在,如果我們有動畫(讓它移動到喜g Y position position te te)te box the the the the animation re,,,,
我們可以做些什麼來使動畫流暢?
PS。在iPhone 4S是運行退出不錯(因爲更好的CPU)
你好嗎動畫? JavaScript的? css3動畫? dom轉換? –
我們首先嚐試使用Javascript,之後我們嘗試使用CSS3動畫。隨着CSS3我們得到了更好的表現,但仍然不夠流暢...... – StijnH