Re: Wavy Bottom Image Border
I think I need Dramamine.
Re: Wavy Bottom Image Border
Lucky I set it slow!
Acorn
1 Attachment(s)
Re: Wavy Bottom Image Border
1 Attachment(s)
Re: Wavy Bottom Image Border
Quote:
Originally Posted by
Egg Bramhill
Interesting ....
Lovely, I had expected a morph into a bowl of petunias though, a la Douglas Adams.
A quick hack of your showing: Attachment 133290
Acorn :salute:
1 Attachment(s)
Re: Wavy Bottom Image Border
Love it and here's my Douglas Adams:
Re: Wavy Bottom Image Border
Quote:
Originally Posted by
Egg Bramhill
Love it and here's my Douglas Adams:
Egg, I like the whale eye/ringed planet. Neat.
Acorn
Re: Wavy Bottom Image Border
Quote:
Originally Posted by
Egg Bramhill
Interesting ....
As we, backward XDP19-ers, can't share in the fun, could you please post a demo? ;)
Re: Wavy Bottom Image Border
Re: Wavy Bottom Image Border
thanks egg... that first one of yours is not exactly rocket science :D
Re: Wavy Bottom Image Border
Thanks, Egg. Love your whale-to-rocket morphing animation!
Re: Wavy Bottom Image Border
Thank you Egg.
The code for my wavy bottom is quite simple:
Code:
<script>
var ming = document.querySelector('#morphing').style.height;
var mer = document.querySelector('#morpher ').style.height;
var txY = ming.replace('px', '') - mer.replace('px', '');
anime({
targets: '#morphing svg path',
d: document.querySelector('#morpher svg path').getAttribute('d'),
translateY: txY,
duration: 5000,
direction: 'alternate',
autoplay: true,
easing: 'linear',
loop: true,
});
</script>
How it works:
The White shape Named morphing morphs into the shape Named morpher. Line colour and size matter.
The morphing shape has a Mix Blend Mode of screen to hide the image under it as it morphs.
The morpher shape need not be visible; here, I gave it No Colour. Line width is ignored.
Acorn
1 Attachment(s)
Re: Wavy Bottom Image Border
Re: Wavy Bottom Image Border
Excellent, very mesmerising Acorn.
Re: Wavy Bottom Image Border
they are indeed... thoug it is a pity that in xara only the outlines morph and not the texture as well
Re: Wavy Bottom Image Border
1 Attachment(s)
Re: Wavy Bottom Image Border
Quote:
Originally Posted by
handrawn
they are indeed... thoug it is a pity that in xara only the outlines morph and not the texture as well
handrawn, you can but making SVG file masking work with what I was showing is quite tricky.
Here is a simple example that probably works across all versions: Attachment 133311
I used an online SVG, as bundling with a XAR is awkward for most to unpack.
It will not work in early Xara Preview (using IE) so use a real browser.
Change the width of your browser to see the how the mask displays the graphic.
You can look at https://www.w3schools.com/css//css3_masking.asp for ideas.
Most current browsers still require the vendor prefix -webkit-.
Acorn
Re: Wavy Bottom Image Border
good to know - I cannot view the xar file as I do not have the pro+
if it needs to be masked then I can see that being tricky, yes...
Re: Wavy Bottom Image Border
Quote:
Originally Posted by
handrawn
good to know - I cannot view the xar file as I do not have the pro+
handrawn, any Xara product will handle a XAR. I checked down to v12.
Acorn
Re: Wavy Bottom Image Border
sorry I was ina hurry and took your file as a live example requiring pro+ as previous
Re: Wavy Bottom Image Border