Tuesday, February 07, 2012

Two ideas to improve impress.js


  1. Add a "debug mode" that shows the center and bounds of the currently selected step. This is useful in aligning 3d elements
  2. Add incremental positioning attributes. That is, step n's position is based on step n-1's. This is really useful considering the normal flow is to move from step n-1 to n. The new attributes would be "data-dx", "data-dy", "data-dz", "data-rotate-dx" and so forth.
Implementation note:
impress.js's main logic where the position of each element is determined will have to be enhanced to use the previous element's position when these incremental attributes are used. Once they're calculated, however, the rest of the logic should work as expected.

No comments: