🌾 更新sidebar 显示隐藏方式

This commit is contained in:
79E 2022-10-01 21:26:44 +08:00
parent dcded080e9
commit fd93182115
1 changed files with 5 additions and 5 deletions

View File

@ -33,16 +33,16 @@
z-index: 1998;
}
.sidebar {
width: 0;
width: 66%;
height: 100%;
position: fixed;
top: 0;
right: 0;
right: -100%;
bottom: 0;
background: #fff;
z-index: 1999;
text-align: center;
box-shadow: -6px 0 20px rgba(98, 94, 94, .815)
box-shadow: -6px 0 20px rgba(98, 94, 94, .815);
}
.topo {
@ -123,7 +123,7 @@
.click( function () {
$( '.sidebar' )
.animate( {
width: "66%"
right: "0"
}, 500 );
$( '.shelter' )
.fadeIn( "slow" )
@ -132,7 +132,7 @@
.click( function ( e ) {
$( '.sidebar' )
.animate( {
width: "0"
right: "-100%"
}, 500 );
$( '.shelter' )
.fadeOut( "slow" )