question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Animation with Events not working

See original GitHub issue

I’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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dkhan11commented, Sep 29, 2017

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.

0reactions
moconcommented, Sep 26, 2017

I am also having this issue on the latest version of aframe-react (4.3.0 at this time).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found