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

How to use animate-initial-selection #105

Closed
BartKoppelmans opened this issue Nov 18, 2015 · 4 comments
Closed

How to use animate-initial-selection #105

BartKoppelmans opened this issue Nov 18, 2015 · 4 comments
Labels

Comments

@BartKoppelmans
Copy link

Hello,

I am not sure how to use animate-initial-selection in the neon-animated-pages element.

I have the following setup:

    <neon-animated-pages id="pages" selected="0" animate-initial-selection>

      <letter-holder-page></letter-holder-page>

      <letter-detail-page></letter-detail-page>

    </neon-animated-pages>

My letter-holder-page and letter-detail-page share an element and have hero-animations to share the element. Is my use of animate-initial-selection correct? And if so, why do I get an error that says:

Uncaught TypeError: Cannot read property 'getAnimationConfig' of undefined

Bart

@dsschnau
Copy link

Hey Bart,

I think you're using that property right (though i haven't used it myself). But the error you're seeing about getAnimationConfig probably indicates that <letter-holder-page> doesn't implement Polymer.NeonAnimatableBehavior Or one of the other behaviors that expose animationConfig. Can you verify that?

@BartKoppelmans
Copy link
Author

Hey Dan,

It does, it implements Polymer.NeonSharedElementAnimatableBehavior. Everything is working correctly without the animate-initial-selection. With, however, it doesn't.

@cdata cdata added the bug label Dec 10, 2015
@cdata
Copy link
Contributor

cdata commented Dec 10, 2015

Possibly related bug #112

@cdata
Copy link
Contributor

cdata commented Feb 3, 2016

Closing as a dupe of #112.

@cdata cdata closed this as completed Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants