Disable flicker on elements during CSS animation or transition in Safari

Disable flicker on elements during CSS animation or CSS transition in Safari by adding this (with browser prefixes) in your CSS-file.