Re: [selectors] Proposal :enter and :leave

Thank you TJ~ for your explanation. Sorry for the delay.

Maybe another proposal. 

Can we have something like a CSS property « will-change » but for element :enter or :leave the viewport ?

> Le 24 déc. 2014 à 06:57, Brad Kemper <brad.kemper@gmail.com <mailto:brad.kemper@gmail.com>> a écrit :
> 
> 
>> On Dec 22, 2014, at 11:21 AM, Tab Atkins Jr. <jackalmage@gmail.com <mailto:jackalmage@gmail.com>> wrote:
>> 
>> Anything with a "smaller" loop, particularly one that takes place
>> solely in layout code, is much more difficult to deal with.  You don't
>> have a natural place to break loops, and layout doesn't have the
>> ability to complete a full cycle with stable information, because it
>> depends on its own computations.
> 
> You could just check when items are added or removed from the DOM and when scrolling stops for more than a 1/10 second or whatever, and break the loop after that until after the next sustained scroll event.

Received on Thursday, 22 January 2015 00:11:32 UTC