Use CSS-transitions

A small change which utilizes CSS-transitions instead of animating using javascript. Added parameterization options for `duration` and `easing`, in addition to `delay`.

Also tweaked `idfy` to reduce consecutive replaced characters to a single character.