How to turn off the animation when locking screen on Nexus 5 running on KitKat? I need to turn off the CRT TV animation when locking screen in Nexus 5, running KitKat 4.4.3. 

I was able to turn off the TV animation by keeping Animator duration scale to Animation off in developer options, but this caused the issue in dialer. The dial pad won't appear first time. You have to click again to get the dial pad.

So any other way to turn off the animation without affecting dialer? The phone is not rooted, though solution for rooted phone is also welcomed.

Update:

The CRT TV animation animation is no longer there in Lollipop.
As pointed out by a comment on the question itself: GravityBox, a module for the famous Xposed framwork, can be used for this (and for many other things: it's a feature-rich toolbox): you can select a different effect, or even switch it off.

If you're on a custom ROM, however, the dev doesn't recommend using GravityBox, as it might lead to conflicts (many of the tweaks GravityBox offers are already present in custom ROMs). In that case, simply search the repo for other CRT related mods – there are several of them dealing with this. One example would be XBlast Tools, which explicitely mentions: CRT Screen off effect (No Effect,Horizontal Effect and Vertical Effect) in its list of tweaks.