这只是我的一个想法,我很好奇它是否可能。
例如,假设我有一个包含文本和图像的 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/