Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,813

    Lightbulb Using anime.js in a Xara Web Design

    anime.js is a JavaScript animation library that works with CSS selectors , DOM nodes & JavaScript objects & arrays as targets of manipulation of any or all of their CSS properties, SVG & DOM attributes.
    Any CSS property that handles a number can be manipulated. It allows a collection of JavaScript objects to be arranged along a timeline, making it very powerful for notable effects.

    It can be integrated with jQuery and Animate.css but needs neither. It shoes in nicely with Xara designs.

    This is a file that explains how to add anime.js into your design or as a Template: Add anime.js for XDA Use.xar.

    To enable anime.js, you can simply link to a CDN source; the <script> tag is put into the Website Code Head and so can be turned into a Template, ready to go.
    The payload is a small 18kB.

    I prefer using a local copy in case I am running or end up disconnected to the Internet.
    This is similar to the special Name UsesJQuery that Xara employs for the same purpose.
    When you do this you create a Support Folder that is married to the design filename: <filename>.xar <==> <filename>_xar_files (folder).

    Animations are of the form:
    var animationName = { ... };
    and are called with:
    anime(animationName);
    or added into a timeline as:
    var tl = anime.timeline({ ... });
    tl.add(animationName);
    Other animations are chained:
    tl.add(...).add(...).add(...);
    each animation follows the next or they can be told to fire up at a given time of run at an offset to the preceding ones.

    I have included a simple animation script in this file to prove anime.js is enabled.
    Feel free to play around with it.

    Here is the demo: https://shared.xara.com/WLa8lJdn1N

    Acorn
    Last edited by Acorn; 18 May 2022 at 11:34 AM.
    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

  2. #2
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,910

    Default Re: Using anime.js in a Xara Web Design

    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,813

    Default Re: Using anime.js in a Xara Web Design

    Quote Originally Posted by Egg Bramhill View Post
    Egg, I think you're stretching it a bit!

    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

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •