Invert gradients for links.