Originally Posted by
XByrne
Hi Acorn,
Unchecking the 'Regenerate' box enabled the graphic to be resized without any problem. But when firstly previewed and later on exported and played in Edge Chromium browser, the audio player retains the same size, not resized.
Seamus
Thanks for clarifying.
To achieve the same as what Gary suggests, still use the Xara mechanism to drop your MP3 onto the page.
Edit Widget and just delete the class contents (within the double quotes).
To scale up is more tricky.
Edit Widget and add id="control01" for the first "control02" for the next and so on. E.g.:
Code:
<audio id="control01" class="" src="index_htm_files/Adagio.mp3" controls autoplay width = "100%" height="100%"/>
<audio id = "control02" controls>
<source src="index_htm_files/Adagio.mp3" type="audio/mpeg">
</audio>
In Website > HTML Code (head) [Source: https://stackoverflow.com/questions/...or-audio-tag]:
Code:
<style>
#control01:hover, #control01:focus, #control01:active
, #control02:hover, #control02:focus, #control02:active {
box-shadow: 15px 15px 20px rgba(0,0, 0, 0.4);
transform: scale(1.5);
}
#control01, #control02 {
transition:all 0.5s linear;
box-shadow: 2px 2px 4px 0px #006773;
border-radius:7px 7px 7px 7px ;
transform: scale(1.4);
}
</style>
In Website > HTML Code (body):
Code:
<script>
document.getElementById('control01').parentNode.style.overflow = "unset";
document.getElementById('control02').parentNode.style.overflow = "unset";
</script>
I have not tweaked this code specifically for a Variant but hopefully you can see how it holds together. Just add new control IDs for each new audio player you add.
Acorn
P.S. Does not fully work with IE
Bookmarks