GithubHelp home page GithubHelp logo

danealiu / tween Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28 KB

缓动函数指定动画效果在执行时的速度,使其看起来更加真实。让运动按不动的轨迹速度执行

JavaScript 96.82% HTML 3.18%

tween's Introduction

tween

缓动函数指定动画效果在执行时的速度,使其看起来更加真实。让运动按不动的轨迹速度执行

参数: start - (optional) Starting value of the tween 开始状态 stop - (required) Final value of the tween 结束状态 time - (optional) Starting time in seconds. Default is 1 second 延迟时间 duration - (optional) Tween duration in seconds. Default is 1 second 持续时间 units - (optional) CSS units to increment in. Default is "px" 动的单位 effect - (optional) Effect to apply to the motion. Default is "linear" 执行效果 onStart - (optional) Callback to trigger when the tween starts 开始回调函数 onFrame - (optional) Callback to trigger after each frame 运动时的回调函数 onStop - (optional) Callback to trigger when the tween stops 结束回调函数

tween's People

Contributors

danealiu avatar

Watchers

 avatar

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.