Skip to main content
teacherzilla
Participating Frequently
Oct 14, 2020 3:29 AM UTC
Question

Can I use an effect to Trigger a change of state?

I am on the 3rd slide of 3 and want to use a down effect to trigger a change of state of an object. I am moving a molecule across a membrane through a protein, so the protein door has to open, let the molecule move in, then close, then door on the other side opens and the molecule moves out. I have tried using various delay of state options, but it never opens and/or closes at the right time. Any suggestions?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    14 replies

    Stagprime2687219
    Legend
    Oct 14, 2020 12:35 PM UTC

    Perhaps not ideal for you but I think the effect you're looking for could be pulled off with some JavaScript.
    Please excuse my crude example but this is generically what I picture your scenario needs to do.

    If you're interested I could expand a little further and give some code to play with.

     

     

    Translate
    teacherzilla
    Participating Frequently
    Oct 14, 2020 6:24 PM UTC

    Yes, I can see how it can be applied, for sure. I would greatly appreciate any JS code and guidance, as it may be the way I go ultimately, with this animation. 

    Translate
    Lilybiri
    Legend
    Oct 14, 2020 7:17 AM UTC

    In CP2019 it is not possible to apply an effect to a transition between states, sorry. You will need to revert to a Show/Hide workflow instead of changing states.

    Translate
    teacherzilla
    Participating Frequently
    Oct 14, 2020 11:53 AM UTC

    Thank you for quick response. Is it possible to time the state change on the 3rd slide to coincide with the action on the 3rd slide? I haven't had luck doing it, but maybe I'm not doing it correctly. 

    Translate
    Stagprime2687219
    Legend
    Oct 14, 2020 12:49 PM UTC

    Perhaps more like this.

    It is a little smoother.

    It will mostly be about the timing to get  the best look.

     

    Translate