Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 javascript 移动/缩放/倾斜图像(或文本)。我知道如何使用 CSS3 来做到这一点,但所有这些操作都应该是动态的并带有控件。像这样:
我找到了fabricjs
但我也需要对skew采取行动。
任何可以做到的JS库/示例?
检查 jQuery 插件:
jquery.transit
用法似乎也很简单。
$('.box').transition({ rotate: '45deg' }); $('.box').transition({ scale: 2.2 }); $('.box').transition({ skewX: '30deg' }); $('.box').transition({ x: 40, y: 40 });