jquery - 是否可以使用 jQuery 来扭曲元素?

标签 jquery jquery-plugins

这只是我的一个想法,我很好奇它是否可能。

例如,假设我有一个包含文本和图像的 div。 我希望能够单击一个按钮并将顶部向内捏...基本上就像我将其压缩成一个奇点一样。

这种转变可能吗?

最佳答案

jQuery 不支持它,但也许其他一些 JavaScript 库如 Raphaël可以帮助您开始:

Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want to create your own specific chart or image crop and rotate widget, for example, you can achieve it simply and easily with this library.

Raphaël uses the SVG W3C Recommendation and VML as a base for creating graphics. This means every graphical object you create is also a DOM object, so you can attach JavaScript event handlers or modify them later. Raphaël’s goal is to provide an adapter that will make drawing vector art compatible cross-browser and easy.

Raphaël currently supports Firefox 3.0+, Safari 3.0+, Opera 9.5+ and Internet Explorer 6.0+.

关于jquery - 是否可以使用 jQuery 来扭曲元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1571211/

相关文章:

javascript - 在变量 jquery 中运行 .hover()

javascript - jquery 插件架构

jquery - FullCalendar - 所有月份都在一页上?

php - $_SESSION 的问题是 jQuery

javascript - 使用显示和隐藏方法时停止重新加载 Flash 文件

javascript - 使用 jQuery 过滤元素

javascript - 如何从 jquery 中的字符串中删除第一个字符?

javascript - jQuery 图片点击事件不起作用

jQuery UI Datepicker 显示在 Google Chrome 中的表单提交上

javascript - 数据目标在 bootgrid 插件内不起作用