The snippet gets error. According to your descriptions, there is no problem with your rotate effect, and i delete some unneccessary code in my mock environment i think logic in your init
function is not correct, especially the update of current
, you can log current
variable to check if it meets your expectations.