In progressing the concepts of https://www.talkgraphics.com/showthr...-gt-Accordions, I have added some more JavaScript code to ensure no more than one <details> grouping is open at any point. This allows for the creation of a simple image gallery.
In reality it can be used for an accordion of FAQs, reveal answers to puzzles, mega menus, presentation steps, ....
To create similar in pure Xara requires a lot of trickery to force a toggle action and lots of layers.
Here, jQuery Gallery.xar, I have used just the one.
Most Xara features will work, there are bound to be some that don't.
If you find any, do Post back.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Acorn, I tried the file but noticed that only clicking the thumbnails from the top down works. If I click the ones above the one that's open, no response. Also the 'X' doesn't seem to work. Opened it in Chrome.
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Hi Acorn, I noticed the same issues as Boy with Pro v18.5. I would have thought you should be able to randomly click/touch the thumbnails; it works top to bottom but not upwards. Guessing here it is related to the group's order in the Gallery layer?
I think it might be Group Images, which has changed to Group web images in Pro+v21.7.
All we can do at the moment is use the Thumbs as a toggle but any group cannot be closed by another.
I am confused by the Close icon not firing though as it works in Dev Tools in Chrome.
It is as if the addition of a click listener is not happening in JS or jQuery.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Couldn't quite follow the technicalities of what you mentioned but it's clear there are some difference between Xara's and Magix' latest versions of XDP. So, we'll have to wait for an update to have your approach work. As the last one was in January, that will take a while, I suspect.
Not sure what impact any Pro+ 'group' changes will have for Pro users until v19.0 emerges. Looked at the release notes for Pro+ v21.7 and I'm none the wiser.
Many more examples that can be started with a single photo template, with a desktop/mobile combo grid created thereafter e.g. https://initiostar.co.uk/demo/hoverZoom/
We have thank Acorn for most of the code-driven examples
Bookmarks