Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken expand example #12

Open
luckydonald opened this issue Jun 30, 2018 · 0 comments
Open

Broken expand example #12

luckydonald opened this issue Jun 30, 2018 · 0 comments

Comments

@luckydonald
Copy link

luckydonald commented Jun 30, 2018

For example, the expand.html example just flips states without animation.

In the console I got.

Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
    at clone (file:///path/to/examples/expand.html:102:22)
    at flipping.onFlip.stateMap (file:///path/to/examples/expand.html:145:31)
    at file:///path/to/node_modules/flipping/dist/flipping.js:1:9988
    at Array.map (native)
    at Object.emit (file:///path/to/node_modules/flipping/dist/flipping.js:1:9972)
    at t.dispatch (file:///path/to/node_modules/flipping/dist/flipping.js:1:4374)
    at t.flip (file:///path/to/node_modules/flipping/dist/flipping.js:1:5696)
    at HTMLBodyElement.<anonymous> (file:///path/to/node_modules/flipping/dist/flipping.js:1:5962)
clone @ expand.html:102
flipping.onFlip.stateMap @ expand.html:145
(anonymous) @ flipping.js:1
emit @ flipping.js:1
t.dispatch @ flipping.js:1
t.flip @ flipping.js:1
(anonymous) @ flipping.js:1

I have adjusted the path to go to the current library's version installed node_modules/, if that might be part of the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant