use transact! in animation example instead of swap!