They seem to have taken a slightly odd and confusing approach… the inline transform on
rect appears to have no influence so I just removed that . But I managed to get the top element positioned. Also moved the inline style attributes to the CSS to make it a bit more readable.
Edit – the top element had negative perspective which isn’t a valid value.