-
Control Animation with markers e.g. IN and OUT and then IN again
Hi there! I hope you are well 😃
I’m trying to achieve the following:
Use the markers’ comments of a layer to drive the animation and be able to use another marker with the same comment again. For example:The camera Zoom begins at a value of 2,000 with the marker “IN” and then interpolates to a value of 5,000 when it reaches the marker “OUT”, AND if I add another “IN” marker after that, it should go back to 2,000
This is what I did but it only animates between the first two markers (which makes sense):
markerIN = thisLayer.marker.key(“IN”);
mIN = markerIN.time;
markerOUT = thisLayer.marker.key(“OUT”);
<i style=”background-color: var(–bb-content-background-color); font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”>mOUT= markerOUT.time;
<i style=”background-color: var(–bb-content-background-color); font-family: inherit; font-size: inherit; color: var(–bb-body-text-color);”>ease(time, mIN, mOUT, 2000, 5000);Thank you!