Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
b2840038
Commit
b2840038
authored
Sep 06, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加注释和修改动画效果
parent
03e4033b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
public.css
public/resource/css/public.css
+12
-4
public.js
public/resource/js/public.js
+3
-3
No files found.
public/resource/css/public.css
View file @
b2840038
...
...
@@ -99,13 +99,21 @@ a:hover{
width
:
12%
;
z-index
:
1000
;
float
:
left
;
animation
:
myfirst
s
;
animation
:
show-mulu-action
1.3s
;
/*目录显示的动画效果(from透明 to 全部显示,用时1.5秒)*/
}
@keyframes
myfirst
@keyframes
show-mulu-action
{
0
%
{
width
:
0%
}
100
%
{
width
:
12%
}
0
%
{
opacity
:
0.0
;
position
:
relative
;
left
:
-20px
;
}
100
%
{
opacity
:
0.9
;
position
:
relative
;
left
:
0px
;
}
}
#sidebar-wrapper
::-webkit-scrollbar
{
...
...
public/resource/js/public.js
View file @
b2840038
...
...
@@ -105,10 +105,10 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
var
_this
=
$
(
this
);
if
(
$
(
'.width-136-hide'
).
find
(
'span'
).
text
()
==
"隐藏"
){
//if($.trim(_this.html()).indexOf("隐藏")!=-1){
//$('#hideLine').show();
$
(
'.width-136-hide'
).
removeClass
(
"hideBtn1"
);
//$('#hideLine').show();
//隐藏一条线,作用是在目录隐藏的时候附加的一个显示效果
$
(
'.width-136-hide'
).
removeClass
(
"hideBtn1"
);
$
(
'.width-136-hide'
).
addClass
(
"hideBtn2"
);
$
(
'.width-136-hide'
).
find
(
'span'
).
css
(
"left"
,
"-17px"
);
$
(
'.width-136-hide'
).
find
(
'span'
).
css
(
"left"
,
"-17px"
);
//通过绝对定位来操作文字的位置,如果后期有所偏移可以纪念性微调
$
(
'#sidebar-wrapper'
).
hide
();
$
(
'.width-136-hide'
).
find
(
'span'
).
text
(
"显示"
);
//_this.html('显示<img src="/resource/image/icon_down_hide@2x.png" class="text-icon-hide"/>');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment