davidkpiano / flipping

Flipping awesome animations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken expand example

luckydonald opened this issue · comments

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.