Hi guys,
Can someone help me understand what I need to know in order to make my animations (in After Effects) interactive? Do I need to put an expression in my animation?
I have no experience in code at all (not even JavaScript). I’m a simple motion graphics designer
Hi, @maya1, the post referred by @bhawk is the official post by LottieFiles and the only page where you can understand Lottie interactivity easiest way, that’s the least code using JavaScript. How to create interactivity for LottieFiles animation, you can refer here this guy YouTube channel.
First understand you cannot create any interactivity using After Effect. For interactivity, not necessarily but you can consider following two things before exporting animation as lottiefile (.json) format.
Add name to layer using symbol “#” in After Effect for more deep coding for interaction. Example: “#righthand”
→ What does this do? When, LottieFiles (.json) is rendered on webpage as SVG animation, the layers of the animation are rendered as part of the webpage as objects or graphic elements. These can be accessed and further manipulated by JavaScript (such as click, hover, scroll, in view etc). To access these elements, element ID must be given. And hence this is the way place you can give names. There is another hard way to give name, but that you don’t want it.
Add markers to animation in After Effect for interactive animation.
→ This helps to play animation from certain or specific part or frames of the animation.
@vijaypwr61 Thank you for expounding on this subject. I was not aware that naming a layer in AfterEffects beginning with a # would indicate it as the element ID in the JSON file and hence refer to it in the javascript. I’ve learned something new!
You should explore plugins like Bodymovin’ for interactive animations without code. Tutorials can guide non-coders through After Effects’ interactive features.