Skip to content

Commit 919ff90

Browse files
committed
Allow using easing names too
1 parent 9221bd1 commit 919ff90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports.install = function (Vue) {
3030

3131
if (typeof this.value === 'object') {
3232
exports.scrollTo(this.value.el || this.value.element , this.value.duration || 500, {
33-
easing: this.value.easing || exports.easing['ease'],
33+
easing: (typeof this.value.easing === 'string' ? exports.easing[this.value.easing] : this.value.easing) || exports.easing['ease'],
3434
offset: this.value.offset || 0
3535
})
3636
} else {

0 commit comments

Comments
 (0)