浏览代码

added GPU acceleration on switch animation

Emanuele Marchi 11 年之前
父节点
当前提交
70e6c2f183

+ 2 - 0
build/css/bootstrap3/bootstrap-switch.css

@@ -108,6 +108,8 @@
   width: 150%;
   position: relative;
   top: 0;
+  -webkit-transform: translate3d(0, 0, 0);
+  transform: translate3d(0, 0, 0);
 }
 .has-switch input[type=radio],
 .has-switch input[type=checkbox] {

文件差异内容过多而无法显示
+ 0 - 0
build/css/bootstrap3/bootstrap-switch.min.css


+ 1 - 1
index.html

@@ -3,7 +3,7 @@
   <head>
     <meta charset="utf-8">
     <title>Bootstrap Switch by Mattia Larentis and Peter Stein</title>
-    <meta name="description" content="Switches for radio buttons and checkboxes">
+    <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
     <meta name="author" content="Mattia Larentis">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
     <link rel="stylesheet" href="docs/vendor/bootstrap.min.css" />

+ 1 - 0
src/less/bootstrap3/bootstrap-switch.less

@@ -99,6 +99,7 @@
     width: 150%;
     position: relative;
     top: 0;
+    .translate3d(0, 0, 0);
   }
 
   input[type=radio],

部分文件因为文件数量过多而无法显示