Giter VIP home page Giter VIP logo

Comments (2)

psiborg avatar psiborg commented on August 30, 2024

The possible values for playstate are "running" and "paused", which are standard CSS values for that animation property. I haven't really had a need for "pause" yet, but I left it in case developers don't want an animation to start right away. This allows them to control when it starts programmatically. But your suggestions about better documentation are spot on. Thanks Adam!

from alice.

astanley avatar astanley commented on August 30, 2024

Thanks for explaining. Maybe if there was a master table somewhere that listed all parameters for each method, followed by all eligible values / formats, it might help new developers?

I completely understand that some keywords are standard CSS values, but I would think since AliceJS abstracts the raw CSS from the developers, that developers should be given some assistance in learning what these values are. Otherwise how would they know?

e.g. for comments associated with the methods, should the [type] and [description] keywords be replaced with something more meaningful?

/**

  • [zoom description]
  • @param {[type]} elems [description]
  • @param {[type]} scale [description]
  • @param {[type]} shadow [description]
  • @param {[type]} move [description]
  • @param {[type]} duration [description]
  • @param {[type]} timing [description]
  • @param {[type]} delay [description]
  • @param {[type]} iteration [description]
  • @param {[type]} direction [description]
  • @param {[type]} playstate [description]
  • @return {[type]}
    */

from alice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.