Skip to content

Commit

Permalink
used ms unit
Browse files Browse the repository at this point in the history
  • Loading branch information
ycmjason committed Feb 13, 2019
1 parent f685329 commit 486999c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
*.sw*
4 changes: 2 additions & 2 deletions src/mixins/baseTransition.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
methods: {
beforeEnter(el) {
let enterDuration = this.duration.enter ? this.duration.enter : this.duration
el.style.animationDuration = `${enterDuration / 1000}s`
el.style.animationDuration = `${enterDuration}ms`
this.setStyles(el)
},
cleanUpStyles(el) {
Expand All @@ -73,7 +73,7 @@ export default {
},
beforeLeave(el) {
let leaveDuration = this.duration.leave ? this.duration.leave : this.duration
el.style.animationDuration = `${leaveDuration / 1000}s`
el.style.animationDuration = `${leaveDuration}ms`
this.setStyles(el)
},
leave(el) {
Expand Down

0 comments on commit 486999c

Please sign in to comment.