Hi,
Whenever I use
scene.setClassToggle(".picto-1", "animated flipInY");
I get this error: Uncaught InvalidCharacterError: Failed to execute 'add' on 'DOMTokenList': The token provided ('animated flipInY') contains HTML space characters, which are not valid in tokens.
Weird it happens as documentation states this method of use. Any clue?
yup, that is a bug, scheduled to be fixed. :)
check here: https://github.com/janpaepke/ScrollMagic/issues/313
Great. Thanks
Has this been fixed yet? I just ran into this issue now.
I'm on the latest version 2.0.5, and this bug still persists.
This should be fine according to documentation but I get the same error as mentioned above:
.setClassToggle(element, '-fadein -bottom')
I can confirm getting a bug with latest version still
The issue is still there apparently. Trying to "animated fadeInRight" and I get the same error.
Hmm, you would think this would be a more prevalent issue and already fixed by now. Maybe update the docs because it is not true about multiple classes http://scrollmagic.io/docs/ScrollMagic.Scene.html#setClassToggle
I appreciate the script anyhow!