How it works
Ztext gives the illusion of volume by creating layers from an HTML element. There's no need to spend hours fiddling with
<canvas>
or forcing users to download multi-megabyte WebGL libraries. With ztext, content remains fully selectable and accessible.Over 96% of users use a web browser that supports the CSS
transform-style
property, which ztext needs to work. In unsupported browsers, ztext gracefully turns off.
Further information can be found here:
Differences to the original
This version focuses only on Hype documents and runs on scene load and doesn't offer the global Ztextify
or zDraw
function in JavaScript. The dataset interface is the same only that there is the additional event timeline
that enables to transfer the 3d rotation from the Hype timeline onto the ztext. Furthermore, hypeDocument
gets two new commands called hypeDocument.zTextify
and hypeDocument.zDraw
that mirror the global ones from the original with the difference that options are always uniform and hypeDocument.zTextify
selectors run in the current scene scope rather then global.