Skip to content

Commit

Permalink
Error creating vanish command, min was never fixed (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-chilemme authored Jul 30, 2024
1 parent 6279915 commit f25b295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dances/vanish.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default (elem, value, options = {}) => {
const max = !isNaN(options.max) ? options.max : 1
const min = !isNaN(options.max) ? options.max : 0
const min = !isNaN(options.min) ? options.min : 0
const vanish = (max - min) * value
if (options.reverse) {
elem.style.opacity = max - vanish
Expand Down

0 comments on commit f25b295

Please sign in to comment.