On Jul 18, 2008, at 9:25 AM, Mike Alsup wrote:


clip is a valid css property but it is not supported by jQuery's
animate function.  If you need to animate the clip property then you
have to do it manually (without using animate).

Mike


In that case, the problem with the first part of his code was that he was using the .attr() method instead of .css() :
$('#anm').show()
                           .attr({
                                   clip:"rect(auto,auto,auto,80px)"})

So, at least this should work:

$('#anm').show().css({clip: 'rect(auto auto auto 80px)'})

Also, note the lack of commas separating the rect values. It won't work if you include them.


--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com


Reply via email to