Scrollmagic: Problems with setClassToggle()

Created on 27 May 2015  路  7Comments  路  Source: janpaepke/ScrollMagic

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?

bug

All 7 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

visualcookie picture visualcookie  路  5Comments

rynokins picture rynokins  路  4Comments

Paulimausi picture Paulimausi  路  7Comments

ch3rr1 picture ch3rr1  路  4Comments

pascaloliv picture pascaloliv  路  3Comments