开发者

Element moved using JS/jQuery PIE not updating

开发者 https://www.devze.com 2023-02-23 14:11 出处:网络
I have moved an element using JS on body load but PIE still have the background of the element visible or in the wrong position. However, o开发者_如何学Cn subsequent clicks/interaction that trigger mo

I have moved an element using JS on body load but PIE still have the background of the element visible or in the wrong position. However, o开发者_如何学Cn subsequent clicks/interaction that trigger movements/animation, PIE works ok. Why is that? I even tried to use setTimeout(..., 1200) to update the element position, but it does not seem to update

I am thinking if there was a PIE ready event that I can use to update element position, it will fix it?

$masthead.css({top: "-" + ($masthead.outerHeight() - 20) + "px"});

Also I notice PIE will place those elements (PIE generated backgrounds etc) in position as if no JS (that changes classname/position) was run. I suspect thats the problem


I used images for drop shadows instead ... but I think PIE.js will work.

// after changes by JS
PIE.attach($("elem")[0]);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号