Moved dirTerminalType directive logic from compile to link phase. Disambiguated its caret class name and added -moz and -o animation variants.