微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Walkway.js

程序名称:Walkway.js

授权协议: MIT

操作系统: 跨平台

开发语言: JavaScript

Walkway.js 介绍

Walkway.js 实现了一个简单的方式用来对包含线和路径元素的 SVG 图像进行动画展示。

在线演示

示例代码

// Create a new instance
var svg = new Walkway(options);
// Draw when ready, providing an optional callback
svg.draw(callback);

// Options passed in as an object, see options below.
var svg = new Walkway({ selector: '#test'});

// Overwriting defaults
var svg = new Walkway({
  selector: '#test',
  duration: '2000',
  // can pass in a function or a string like 'eaSEOutQuint'
  easing: function (t) {
    return t * t;
  }
});

svg.draw();

// If you don't want to change the default options you can
// also supply the constructor with a selector string.
var svg = new Walkway('#test');

svg.draw(function () {
  console.log('Animation finished');
});

Walkway.js 官网

http://www.connoratherton.com/walkway

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐