I covered that quite a time back but the limited response had me thinking it was toooo detailed.
Here goes again.
Xara uses a modified animate.css library for its animation effects.
It exposes 49 animations.
The application actually has access to 153 animations; eleven others are for page transitions.
This Thread allows you to experiment with all 153.
A Reveal animation renders through a ClassName (animated) that is added to a wrapper together with the actual Effect (a small subset of the 153) as the specific Animation. This is also a ClassName.
You see none of this.
Here, however, we are going to override the Animation ClassName with a home-grown ClassName. My naming of these is rwa001 through to rwa153; 'rwa' standing for Reveal Web Animation.
Each rwa invokes the Effect directly but adopt the delay and timing you have set up through the Xara UI for any one of the exposed Effects.
As there are so many, I have added them as a table in this Thread's second Post.
These are the Steps you follow:
- Select your object.
- In Utilities > Web Animation > Reveal/Scroll, set to Reveal animation.
- Pick any Animation, e.g., Fade In.
- Set the Duration, Repetition and Delay.
- Apply these settings.
OVERRIDE
- Choose your required Effect from my Table. [hinge]
- Copy its Special Name. [htmlclass="rwa040"]
- Paste into the Utilities Name > Apply name Box > Add.
- This Special Name can be added to any number of objects on the page.
- Copy its CSS. [<style> .animated:has(.rwa040) { animation: hinge; } </style>]
- Apply to Web Properties > Page > HTML code (body).
Here is a screenshot:
Here is the design file: CSS-Hijacking Xara Reveal Web Animations.xar
Change the rwa value and match its CSS code to experiment further.
Note the Xara limitation on the delay, duration and repetition.
We'll leave that for another day.
Acorn
Bookmarks