Switch to CSS for visibility effects.

Instead of setting attributes on the SVG elements (services and relations), use CSS classes and styling to show/hide/fade them.