提交 af3c1aac 编写于 作者: A afc163

update switch animation ease

上级 7a115c6c
......@@ -37,7 +37,7 @@ const Sider = React.createClass({
render() {
return (
<div>
<Switch onChange={this.changeTheme} checkedChildren={<Icon type="eye" />} unCheckedChildren={<Icon type="eye-o" />} />
<Switch onChange={this.changeTheme} checkedChildren="Dark" unCheckedChildren="Light" />
<br />
<br />
<Menu theme={this.state.theme}
......
......@@ -16,7 +16,7 @@
border: 1px solid #ccc;
background-color: #ccc;
cursor: pointer;
transition: all @switch-duration @ease-in-out-circ;
transition: all @switch-duration;
user-select: none;
&-inner {
......@@ -38,7 +38,7 @@
background-color: #fff;
content: " ";
cursor: pointer;
transition: all @switch-duration @ease-in-out-circ, width @switch-duration @ease-in-out-circ;
transition: all @switch-duration, width @switch-duration;
}
&:active:after {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册