I am trying to do a full screen animation that starts at the top of the screen and briefly touches the bottom of the screen before moving back up.
However, after extending the page length to 4096 px, and unselecting Scale for Height, my animation starts at the top, goes down to beyond the visible screen maybe 20-30 px below it AND THEN comes back up. This has the effect of making it seem as if the animation goes from top to bottom, stays at the bottom for a few seconds AND THEN moves back up. This spoils the animation.
The broader context is, I am used to doing creating ALL objects in percentages of the viewport which would adjust everything percfectly regardless of screen size. Now, doing everything in px is a bit of a learning curve. From my reading of the forums, my working theory is, set a high resolution screen size, create objects and group them. Activate all the scaling options for the group and the rest will take care of itself. In this case, perhaps due to the longer screen length, it isn’t working. Am sure there is an explanation and way you out can share with me!
the scriptlines expect an element with id == 'startAnimation'.
the origin of this group has to be 0,0
/////////////
let scaleX = ww / elWidth*0.2,
scaleY = wh / elHeight;
and
let scaleX = ww / elWidth,
scaleY = wh / elHeight*0.6;
this'll require more effort. you've got to calculate the values of hypes ecosystem against the viewport ... there are a few pitfalls around
i've got no sparetime at the moment, but to be honest regarding your request: those kind of relative scaling and positionings are not hypes strengths out of the box! You've already noticed that you can not reach your goal using the UI. The API offers a subset of those properties provided by the UI ... of course it's possible, but it'll always rely on coding. And it seems that you've chosen Hype to avoid coding.
if you still like to request a custom coding on this:
please try to phrase it as exact as possible! I've seen a lot of requests starting with a few lines of explanation like yours and in the end the request was not well enough explained. it's often related to missunderstandings. For example: do you want to scale a group or do you want to set its dimensions ¿ This'll completely different in its result regarding Hype ...
but for some reason just not working. Spent 1.5 hour comparing our docs section by section. The only difference I see is that you have removed many of the other JS from Resources. But I disabled those too from the Scene tab and still no luck!
On your further notes – point taken. Will formulate more specific scenarios for better guidance.