Last active
October 17, 2018 07:50
-
-
Save kevinluo201/06b339ff8c0c753dcf489945d141936f to your computer and use it in GitHub Desktop.
下箭頭 icon 動畫
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.setInterval(() => { | |
let b = parseInt($(".arrow-down").css("bottom")) - 1; | |
let o = parseFloat($(".arrow-down").css("opacity")) - 1 / 30; | |
if(b < 0){ | |
b = 30; | |
o = 1; | |
} | |
$(".arrow-down").css({ | |
bottom: b + "px", | |
opacity: o | |
}) | |
}, 1000 / 30); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment