mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 16:36:18 -08:00
更新webkit样式
This commit is contained in:
1 parent
00c8054a8b
commit
09a6c67c75
3 files changed
+5
-5
No files matched your search
@@ -62,7 +62,7 @@
|
||||
$box.style.top = "".concat(yIndex * height / y, "px");
|
||||
$box.style.width = "".concat(100 / x, "%");
|
||||
$box.style.height = "".concat(100 / y, "%");
|
||||
$box.style['-webkit-transition'] = 'all .2s ease';
|
||||
$box.style.webkitTransition = 'all .2s ease';
|
||||
$box.style.transition = 'all .2s ease';
|
||||
parent.appendChild($box);
|
||||
return {
|
||||
@@ -118,7 +118,7 @@
|
||||
var x = left ? '-60px' : right ? '60px' : '0'; // eslint-disable-next-line no-nested-ternary
|
||||
|
||||
var y = top ? '-60px' : bottom ? '60px' : '0';
|
||||
$box.style['-webkit-box-shadow'] = "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ") ").concat(x, " ").concat(y, " 120px");
|
||||
$box.style.webkitBoxShadow = "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ") ").concat(x, " ").concat(y, " 120px");
|
||||
$box.style.boxShadow = "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ") ").concat(x, " ").concat(y, " 120px");
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user