canvas教程

使用HTML5 Canvas的7个示例(2)

字号+ 作者:H5之家 来源:H5之家 2015-10-04 15:00 我要评论( )

20ThingsLearned is a demo from Google that features an interactive book layout to deliver information about browsers and web technologies. It is not only impressive from a coding standpoint, but a us

20ThingsLearned is a demo from Google that features an interactive book layout to deliver information about browsers and web technologies. It is not only impressive from a coding standpoint, but a useful resource as well.

Book formats and interatcitvity in design can greatly enhance anything from practical applications such as magazines and learning resources to promotional sites, personal journals and portfolios.

Build your own or See it in action

Drag and Drop

HTML5 Canvas includes native support for interacting with images, thanks to the draggable attribute, but when combined with kinetic.js, you can turn this event into anything from a visual categorization app to an interactive pinboard for arranging and displaying images. View the example source to see how the image board was done.

Drag and drop events are useful for more than image collages. Consider using them for arranging content, creating agile project management tools, or a fun way for customers to drop products into a shopping cart.

Build your own or See it in action

Image Effects

One of the most powerful features of HTML5 canvas is its interpretation of pixels and how it grants us power over them. As a result, any image filter or effect can be recreated and applied to apps, themes or anything else you can imagine. Google’s  takes you through several examples to learn this trick.

Learn more and See it in action

Conclusion

Hopefully this overview was useful in introducing the powerful relationship between JavaScript, CSS3 and the HTML5 canvas tag, and that it inspires you to implement your own HTML5 tricks into future or existing web projects.

If you are more of a designer than a developer, but wish you could take advantage of the awesome effects and behaviors of HTML5, you’ll be thrilled to learn that Wix will be launching the very first HTML5 website builder on the 26th of March. This tool can significantly change how you design, giving you a visual editor for creating and styling elements, using drag and drop for arranging layouts and adding widgets. You will also get access to a library of interactive canvas elements and animations, CSS3 effects and add-ins such as HTML5 audio, video, slideshows, forms and more. Visit the Wix website to learn more and sign up to be the first to explore this new technology.

来源: 

相关文章

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • html5canvas核心技术图形、动画与游戏开发源码

    html5canvas核心技术图形、动画与游戏开发源码

    2017-05-02 17:42

  • 打印html5中Canvas的方法

    打印html5中Canvas的方法

    2017-05-01 15:03

  • HTML5+Canvas调用手机拍照功能实现图片上传(下)

    HTML5+Canvas调用手机拍照功能实现图片上传(下)

    2017-04-30 17:00

  • HTML5新特性详解(三)

    HTML5新特性详解(三)

    2017-04-30 16:03

网友点评
a