Angular directive for CSS 3d book created from HTML or JSON