Animation Questions, PS & IR

I was wondering how the two following animated text effects were achieved.


 Credit to mansruin  Credit to dontspeak


I played with a few of the distort filters and looked through the memories but I can't find exactly how to do this.


I use Photoshop CS & ImageReady. Thanks!