mod animation logic