There is no ninja walk in RuneScape, but there is a moonwalk — and it is done with a banker.
This is an animation and movement desync. The "use quickly" action locks your character into a banking animation, but the movement command issued a moment earlier is still being processed, so the character slides while the animation plays as though standing still. Games with separate movement and action state machines produce this kind of glitch reliably, and RuneScape had several variants of it over the years.
Emote and movement glitches of this sort are cosmetic and get tidied up in engine updates. If the sequence no longer produces the effect, the desync has been fixed rather than you doing it wrong. The general approach still works elsewhere in the game: any action that locks your animation while a movement command is pending can produce a slide, so it is worth experimenting with other quick-use interactions.