Jump to content
GreenSock

GreenSock Docs

SplitTextPlugin

.split()

.split( vars:Object ) ;

[static] Splits the text in the target element(s) according to the provided config properties.

Parameters

vars: Object

(default = null) — a configuration object defining any of the following values: type, charsClass, wordsClass, linesClass, or position. (see the constructor description for details)

Details

Splits the text in the target element(s) according to the provided config properties. Normally you don’t need to use this method because it is called in the constructor automatically, but if you want to change the way the text is split after the SplitText instance is created, you can use this method. It will automatically call revert() first if necessary.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×