Closed parliament718 closed 10 years ago
Ok actually this was a misunderstanding of how jmpress works. The translations dictate where an element is in space BEFORE it becomes active. Then when it becomes active the camera automatically centers the view on that element. It makes sense then that when the element is active, like I was viewing it, then the translations are overriden by transform(-50%, -%50)
I'm having an issue with jmpress.js templates. I have a test template like so:
Althought the offset is applied and I see in the DOM:
translate(-50%, -50%) translate3d(-300px, 0px, 0px)
The translate3d actually has no effect, with the content still centered. Changing -300px to 0 in the DOM however does have the effect of reversing the offset fit in the opposite direction than I wanted.
I load the content dynamically but reapplying the template doesn't seem to do anything either.
As a side question, is there no callback for applying a template on a single property like there is for children?