Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
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
Administrator
web-monitor
Commits
a91f687c
Commit
a91f687c
authored
Aug 28, 2018
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf[css]: refine fade-transform
parent
d54bdc8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
transition.scss
src/styles/transition.scss
+14
-0
AppMain.vue
src/views/layout/components/AppMain.vue
+2
-1
No files found.
src/styles/transition.scss
View file @
a91f687c
...
...
@@ -11,6 +11,20 @@
opacity
:
0
;
}
/*fade-transform*/
.fade-transform-leave-active
,
.fade-transform-enter-active
{
transition
:
all
.5s
;
}
.fade-transform-enter
{
opacity
:
0
;
transform
:
translateX
(
-30px
);
}
.fade-transform-leave-to
{
opacity
:
0
;
transform
:
translateX
(
30px
);
}
/*fade*/
.breadcrumb-enter-active
,
.breadcrumb-leave-active
{
...
...
src/views/layout/components/AppMain.vue
View file @
a91f687c
<
template
>
<section
class=
"app-main"
>
<transition
name=
"fade"
mode=
"out-in"
>
<transition
name=
"fade-transform"
mode=
"out-in"
>
<!-- or name="fade" -->
<!--
<router-view
:key=
"key"
></router-view>
-->
<router-view/>
</transition>
...
...
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