I've got no idea what this is, but it looks like nonsense.  I think an ordinary CSS transition property should suffice here.