Welcome to TalkGraphics.com
Results 1 to 10 of 17

Threaded View

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,869

    Lightbulb anime.js - Motion Path Animation

    For XDAs that handle SVGs (XPro+ only) [Not yet released for Magix XWD(P) & XDPX v19+], most shapes are rendered as SVG.
    IMPORTANT
    If you Preview this animation with Shapes as SVG unticked , you will not see any animation.

    The Animation Path has a special Name htmlclass="curve"
    Anything you want to move along this path has a special Name htmlclass="shape".

    anime.js is called from the Website Code (head).
    The Animation script is in the Page code (body).

    You can make changes:
    The numbers her are all milliseconds.
    The object action's parameters all are on separate line ending with a comma.
    I would avoid messing with any part of the path() ones unless you are comfortable with anonymous JS functions.

    anime.js - Soaring.xar

    Adding a stagger makes something that is quite regular appear more natural.
    Drag on the butterflies or the blobs. You CPU may start to chug if you add too many.
    Change the shape; I added a rounded corner box to swap in.
    anime.js documentation is https://animejs.com/documentation/#motionPath.

    Acorn
    Last edited by Acorn; 18 May 2022 at 09:42 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

 

 

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
  •