Animation with Events not working
See original GitHub issueI’ve got a ring which should expand when it emits the ‘tapped’ event. Using _ref I’m saving a reference to the ring when another click event happens. In the handler I call
this.ring1.emit('tapped');
Is this the correct way to emit aframe events? Is there a better way to trigger animations? thx!
<Entity _ref={this.setRing1}
geometry={{primitive:'ring', radiusInner:0.5, radiusOuter:1.5}}
material={{color:'teal', opacity:1}}
>
<Entity animation={{
attribute:'radius-inner',
begin:'tapped',
dur:1000,
from:0.5,
to:9
}}/>
<Entity animation={{
attribute:'radius-outer',
begin:'tapped',
dur:1000,
from:1,
to:10
}}/>
<Entity animation={{
attribute:"material.opacity",
begin:'tapped',
dur:1000,
from:1,
to:0}}
/>
</Entity>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Animation event not triggering - Unity Forum
Currently in my game a lot of events are triggered from within an animation and occasionally they seem to be skipped over.
Read more >Animation Event Not Triggering : r/Unity3D - Reddit
I know the method/event works because I can place toward the beginning of the animation and it triggers right away.
Read more >Javascript events not working with Element.animate()
The animationstart/end (or transitionstart/end) Events are only fired, if an CSS-defined-animation or -transition is used.
Read more >Animation Events stopped working · Issue #33 - GitHub
Animation Events seem to work fine for the Events examples and any of the other Humanoid examples I try it on, but not...
Read more >Using Animation Events - Unity - Manual
To add an Animation event to any point in the Animation, double-click the Event line at the point where you want the Event...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
I also have the same problem. My animation are not working on iPad based environment. Just try running opening https://ngokevin.github.io/aframe-react-boilerplate/ from a Chrome/Safari running on an iPad and you will see the same results. Events are not propagated properly. I tried using the new camera property with aframe version 7.0 but it didn’t help either.
Thanks for great work, D.
I am also having this issue on the latest version of
aframe-react
(4.3.0 at this time).