星空网 > 软件开发 > 网页设计

推荐8个实现 SVG 动画的 JavaScript 库

  SVG 是一种分辨率无关的图形(矢量图形)。这意味着它在任何类型的屏幕都不会遭受任何质量损失。除此之外,你可以让 SVG 灵活现一些动画效果。这篇文章就给大家推荐8个实现 SVG 动画的 JavaScript 库。

您可能感兴趣的相关文章
  • 网站开发中很有用的 jQuery 效果【附源码】
  • 分享35个让人惊讶的 CSS3 动画效果演示
  • 十分惊艳的8个 HTML5 & JavaScript 特效
  • Web 开发中很实用的10个效果【源码下载】
  • 12款经典的白富美型 jQuery 图片轮播插件

 

1. Walkway

Walkway supports three type of elements, pathline, and polyline used to draw SVG lines.Here is an example from Polygon that shows the PlayStation 4 console line animation.

推荐8个实现 SVG 动画的 JavaScript 库

2. Bonsai

<ahref="https: bonsaijs.org="" "="">Bonsai is a powerful JavaScript library that allows you to draw, morph as well as animate graphical elements on web pages. It supports both HTML5 graphic type Canvas and SVG. With Bonsai, you can build a simple rectangle or a circle or if you like, a full-fledged multiplayeranimated game like this one. You can use Orbit to feel how Bonsai works in live action or check out a couple of these impressive examples to draw inspiration from.

推荐8个实现 SVG 动画的 JavaScript 库

3. Velocity

Velocity is a JavaScript library built for fast animations. Velocity’s speed when rendering animation is incredibly fast. It outperforms jQuery, and even CSS, in comparison. Velocity’s API works similar to the animation in jQuery except it uses the keyword alias $.velocity()instead of $.animate(). That aside, you can use the exact same animation keywords such asfadeIn and fadeOut.

推荐8个实现 SVG 动画的 JavaScript 库

4. Raphael

RaphaelJS is a library that allows you to draw as well as animate vector graphic SVG on web pages. It supports a wide range of browsers all the way down to IE6, which pretty much makes Raphael the most dependable JavaScript library in the niche. With RaphaelJS, you can buildinteractive analytic charts, world maps, and game interactions akin to that of Counter Strike.

推荐8个实现 SVG 动画的 JavaScript 库

5. Snap

SnapSVG is another popular JavaScript library for SVG animation developed by Raphael developer, Dmitry Baranovskiy, along with the Adobe Web Platform Team from the ground up. Unlike Raphael though, SnapSVG is meant for only the latest browsers. That allows the library to be significantly smaller than Raphael and to support SVG features like clipping and masking.

推荐8个实现 SVG 动画的 JavaScript 库

6. Lazy Line Painter

Lazy Line Painter is a jQuery plugin for animating SVG paths to animate the drawing sequence, similar to Vivus. The bad news is this plugin only does this very specific thing. Hence, when you import SVG from apps like Illustrator or Inkscape, ensure that there is no Fill color left on your SVG, just the paths.

推荐8个实现 SVG 动画的 JavaScript 库

7. SVG.Js

SVG.js is a lightweight library for manipulating and animating SVG. With this library, you’ll be able to animate the size, position or color within your SVG element. It not only animates though; you can also apply additional plugins to add extra functionalities. This example uses the svg.filter.js plugin to apply filters like gaussian blur, desaturate, contrast, sepia etc. to the image.

推荐8个实现 SVG 动画的 JavaScript 库 

8. Vivus

Vivus is a JavaScript library that gives your SVG the appearance of being drawn. Vivus works out of the box without a need for any dependencies (e.g. jQuery). Simply include the .js file in your HTML, and designate the SVG element you want to animate, along with some preset options to start the animation right away.

The above will animate my SVG element that has the svg-element ID in 200 millisecond. Each element of this SVG will be drawn one after the other within that time-frame.

推荐8个实现 SVG 动画的 JavaScript 库

您可能感兴趣的相关文章
  • Web 前端开发人员和设计师必读文章集锦
  • 经典网页设计:25个应用视差滚动单页网站
  • 经典网页设计:20个新鲜出炉 HTML5 网站
  • 经典网页设计:20例简洁精美着陆页面设计
  • 经典网页设计:20个简约风格电子商务网站

 

本文链接:推荐8个实现 SVG 动画的 JavaScript 库

编译来源:梦想天空 ◆ 关注前端开发技术 ◆ 分享网页设计资源




原标题:推荐8个实现 SVG 动画的 JavaScript 库

关键词:JavaScript

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

菲律宾信誉国际物流:https://www.goluckyvip.com/tag/96827.html
Shopify:https://www.goluckyvip.com/tag/9683.html
菲律宾物流技术:https://www.goluckyvip.com/tag/96830.html
中国至菲律宾物流:https://www.goluckyvip.com/tag/96831.html
义乌 菲律宾 物流:https://www.goluckyvip.com/tag/96832.html
菲律宾海运双清包税:https://www.goluckyvip.com/tag/96833.html
小米SU7的不甘心全写进了 “周边”的商品链接里 :https://www.kjdsnews.com/a/1836549.html
10天涨粉300+万 “王婆说媒”凭什么一夜爆红? :https://www.kjdsnews.com/a/1836550.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流