Closed simonhoss closed 2 years ago
Yes:
two.bind('resize', resize);
resize();
function resize() {
two.scene.position.y = two.height;
}
Or if you're not using the fullscreen
parameter when instantiating Two. You can do:
window.addEventListener('resize', resize, false);
resize();
function resize() {
two.scene.position.y = two.height;
}
Thanks a lot! This works.
I made a pen for this: https://codepen.io/simonhoss/pen/oNoEjbO
Hey
Thanks a lot for this library.
Is it possible to move the origin of a scene to bottom left?
Thanks for your help Simon