SVG/VML+JS realization of cross-browser vector graphics

Source: Internet
Author: User

Article Introduction: Svg/vml+js implements a cross browser vector graphics implementation scheme.

Raphael JS Library is in the Webrebuild conference to listen to experts will arrive, and then looked at the next, really strong--through the SVG/VML+JS implementation of the cross-browser vector graphics implementation program.

This actually and Cufon and other network font implementation principle is somewhat similar: non IE browser using SVG graphics, and then use VML in IE. The goal is to provide an easy-to-use, truly cross-browser vector graphics implementation, including some animation effects.

Raphael's syntax is also simple, and basically understanding SVG will be easy to get started with:

var c = Paper.path ("M10 10l90)";
Draw a line;

Browser support

ie6+, Firefox 3.0+, Chrome, opera and so on are very good support.

Some cool examples:

117 vector icons drawn with Raphael:

Well, these icons are all implemented using Raphael, click on the example page in the icon below will display the code.

Simple animation effect, although can also be implemented with JS+CSS3, but this is a cross browser oh ...

Interested students can visit the official website to see more demo, as well as reference documentation



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.