Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c5ea5a55
authored
Nov 15, 2023
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化logo切换动画
1 parent
529c5910
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
src/layout/components/Logo.vue
src/layout/components/Logo.vue
View file @
c5ea5a5
...
...
@@ -2,14 +2,14 @@
* @Author: lizhijie429
* @Date: 2021-08-19 11:16:08
* @LastEditors: limin
* @LastEditTime: 2023-11-1
4 17:41:22
* @LastEditTime: 2023-11-1
5 16:43:06
* @Description:
-->
<
template
>
<div
class=
"logo"
:class=
"
{ collapse: menu.isCollapse }">
<!-- 防止切换图片闪烁,折叠和展开分别用标签展示 -->
<el-image
:src=
"src_logo_menu"
></el-image>
<el-image
:src=
"src_logo_collapse"
></el-image>
<el-image
:src=
"src_logo_menu"
style=
"width: 176px"
></el-image>
<el-image
:src=
"src_logo_collapse"
style=
"width: 48px"
></el-image>
<div
class=
"folder"
@
click=
"toggleFolder()"
>
<i
class=
"i i-left"
></i>
</div>
...
...
@@ -71,30 +71,36 @@ export default {
}
}
.el-image
{
padding
:
12px
0
;
padding-left
:
20px
;
left
:
0
;
top
:
0
;
//
padding
:
12px
0
;
//
padding-left
:
20px
;
//
left
:
0
;
//
top
:
0
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
&:nth-child(1)
{
opacity
:
1
;
transform
:
translateX
(
0
)
translate
(
-50%
,
-50%
);
}
&
:nth-child
(
2
)
{
opacity
:
0
;
transform
:
translateX
(
204px
)
translate
(
-50%
,
-50%
);
}
transition
:
padding-left
0
.2s
;
transition
:
all
0
.12s
ease-in-out
;
}
&
.collapse
{
i
{
transform
:
rotate
(
180deg
);
}
.el-image
{
padding-left
:
8px
;
//
padding-left
:
8px
;
&:nth-child(1)
{
opacity
:
0
;
transform
:
translateX
(
-184px
)
translate
(
-50%
,
-50%
);
}
&
:nth-child
(
2
)
{
opacity
:
1
;
transform
:
translateX
(
0
)
translate
(
-50%
,
-50%
);
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment