简体   繁体   中英

Why does JQuery Clip not work?

I'm trying to use the clip function in JQuery. I'm simply experimenting with the functionality. I cannot seem to get the function to work however. I want the image to squeeze into nothing over a second. Here is a code snippet of what I'm working with.

$(".leftstrip").hide("clip", { direction: "horizontal" }, 1000);

When I try to run this I am getting this error:

"object doesn't support property or method '[object Object]'

I have been working with Jquery 1.11. I pulled examples from the web of using the clip function with that same problem. This occurs in IE and Chrome. What could be wrong with my setup?

clip动画效果需要jQueryUI (或至少它的效果组件),而不仅仅是jQuery: http : //api.jqueryui.com/clip-effect/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM