@ Siran & @ Acorn
Ref. Animated Supersite
Great thoughts and code snippets: With your thoughts and code, I can create a scrolling supersite that can use ANY of the available transitions and adjust timing. I can now also disable the navigation popup and its associated keyboard arrow actions: I added some comments for my benefit, one of which is not to hit the webpage preview button because it locks up.
HTML Code:
<style>#xr_palrt,#xr_pnava{display:none !important}</style>
<! do not show navigation panel code line -->
<! preview website only not webpage -->
<script>
//scrolling supersite
setInterval(function(){xr_spapp((xr_curp+1)%xr_spapn);},3000);
// disable keyboard navigation
(function(){if(typeof(xr_prinit4)=="function"){var o=xr_prinit4;xr_prinit4=function()
{o();if(document.onkeydown==xr_prku)document.onkeydown=xr_d_old_onkeydown;};}})();
</script>
In design terms, from a main website, I can use a link to a supersite (with the same consistent styling and published under the same domain name), have a return link, or replicate the main site NavBar. I can also have the supersite in a placeholder on the main site, but now with integral scrolling.
What would be an added bonus is Pause and Play buttons that would operate on Click/Touch buttons. The scrolling supersite can then have a video feel to it too.
Scrolling Animated Pop-ups
I can create any number of animated pop-ups and get them to behalf as a manual slider (the necessary workaround is to do all the animation on the MouseOff layer first, copy and past to the pop-up layer, else Xara objects and says its not possible!). That's animation within the pop-up itself and animation of the way the pop-up rolls in.
Thanks to Acorn, I understand how to link to the generated reference for a pop-up via "xr_cpu(n)". Extraordinarily useful when you want a dual function such as "close pop-up, go to page top or anywhere else for that matter".
Thinking out of the box on animated pop-ups scrolling, can I simply create a function that would do the same as has been achieved for pages in a supersite, but achieves scrolling through the layers? Rationale is that my manual slider for animated pop-ups can use standard Xara functionality for next, pervious, start and end. already has two phases of animation, it just needs to scroll through with user defined timing, ideally with the same play and pause buttons?
That's my Friday morning done! time for lockdown takeaway cappuccino!
Some great thinking from you both, many thanks,
Gary
Bookmarks