Welcome to TalkGraphics.com
Results 1 to 10 of 11

Threaded View

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

    Default anime.js - Controls

    In Pro+, I have a collection of shapes grouped and flagged with htmlclass="acorn".

    I created a JavaScript object, initial, that produces random values for the animation.
    The animation is fired up on page load and will animate differently on each page load.

    The Links hook into the animation with javascript calls like javascript: animation.play();
    Pause only works during an animation. Play resume it. Restart goes back to the beginning.
    Reverse only works when animating.

    There is an input range control that shows where the animation is.
    It can also be used to set the animation to any step.

    There is one further control - page scrolling.

    Remix is experimental in that I was trying to dial up and keep a different animation. It doesn't keep.

    Demo: https://shared.xara.com/3XfHoMiZSt
    Design file: anime.js - Controls.xar

    Acorn
    Last edited by Acorn; 28 May 2022 at 08:21 PM.
    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
  •