Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
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
周韬
node-sample
Commits
edb6192c
Commit
edb6192c
authored
Nov 21, 2016
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve spinner inactive state using v-show
parent
bc1b6b18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Spinner.vue
src/components/Spinner.vue
+8
-5
No files found.
src/components/Spinner.vue
View file @
edb6192c
<
template
>
<svg
class=
"spinner"
:class=
"
{ show: show }" width="44px" height="44px" viewBox="0 0 44 44">
<transition>
<svg
class=
"spinner"
:class=
"
{ show: show }" v-show="show" width="44px" height="44px" viewBox="0 0 44 44">
<circle
class=
"path"
fill=
"none"
stroke-width=
"4"
stroke-linecap=
"round"
cx=
"22"
cy=
"22"
r=
"20"
></circle>
</svg>
</transition>
</
template
>
<
script
>
...
...
@@ -19,14 +21,15 @@ $duration = 1.4s
z-index 999
right 15px
bottom 15px
opacity 0
transition opacity .15s ease
animation rotator $duration linear infinite
animation-play-state paused
.spinner.show
opacity 1
&.show
animation-play-state running
&.v-enter, &.v-leave-active
opacity 0
&.v-enter-active, &.v-leave
opacity 1
@keyframes rotator
0%
...
...
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