我正在尝试将clipPath
与jQuery的animate()
方法一起使用,但是它不起作用。这是我的jQuery代码:
$(document).ready(function main() {
"use strict";
$(document).click(function(){
$(".container").animate({
width: "100px",
height: "100px",
lineHeight: "100px",
fontSize: "16px",
clipPath: "polygon(0 50%, 50% 0, 100% 50%, 50% 100%)"
}, 1000);
});
});