The css3 code for style doesn’t work for SVG group element in perspective.
For example in below image the opacity and visibility doesn’t work for array item 2 with type: group.
If I dig in more and reach to last element the style will work.
Have you tried renaming the “styles” object to “style”? That works for me.