I am currently exploring the capabilities of the animation mixer in A-Frame and trying to trigger a specific action when a particular animation is playing (like Animation 'B' out of A, B, C).
Although I'm not well-versed in Javascript, I have attempted various approaches:
if(character.getAttribute == character.getAttribute("animation-mixer", {clip: "B"}){
// Execute desired action here
}
if(character == character.setAttribute("animation-mixer", {clip: "B"})){
// Execute desired action here
};
if(character.getAttribute("animation-mixer") == {clip: "B"}){
// Execute desired action here
};