Alex Ziskind
Aug 23, 2017 · 1 min read

Hi Gerard. This is really exciting — and thanks for the great demo!

I’m trying to use this technique, but I’d like to extend it by having a dynamic property passed to the animation. Here’s a little bit of the code where offsetTopPx is a property I’m trying to bind. It seems the initial value of the variable is honored, but if I update the variable just before triggering the routing animation, the new value is not honored. Have you any advice on this?

query('.sel-image', style({ transform: 'translateX(0px)', position: 'absolute', top: '{{ offsetTopPx }}' })),

Alex

)

    Alex Ziskind

    Written by

    Chief nerd at Nuvious. Telerik Developer Expert. Pluralsight author. Synth tweaker.

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade