6 ms·
Somebody please make a bookmarklet out of this.
by olegp 14y ago
Somebody please make a bookmarklet out of this.
- federicoweber 14y agothat's exactly the first thought that strike my mind.
- franze 14y agocurrently there is a performance overhead to animate deeply nested HTML elements. so we would basically need a sizzle selector that applies to every HTML page that only selects "not deeply nested" nodes. so ":not(:has())" filters will be needed.
- jQueryIsAwesome 14y agoI was trying to do this but it seems like the implementation haves a little bug: https://github.com/franzenzenhofer/box2d-jquery/issues/1 https://github.com/franzenzenhofer/box2d-jquery/issues/1
- franze 14y agothx, all bug-reports are welcome and will be fixed and tested a.s.a.p.
- orng 14y agoA quick and dirty one that only affects h1, divs and imgs (based off the example on the github page): javascript:(function(){document.body.appendChild(document.createElement('script')).src='https://raw.github.com/gist/4257861/bf99710923dc4512338a9f193e05ff9928b0593b/jqb2d.js;})() https://raw.github.com/gist/4257861/bf99710923dc4512338a9f19...; The code can be found here: https://gist.github.com/4257861 https://gist.github.com/4257861
- jQueryIsAwesome 14y agoIn most sites those three are enough to crash the tab/browser.
- franze 14y agodivs are an issue, because divs commonly include other divs commonly include other divs commonly include other divs .... jquery-box2d does not animate the DOM of the webpage you see, it animates clones of the elements of the website you see, so basically you create and animated clones of elements that have animated elements of clones of elements and so on... this is probably solvable (everything is), hopefully it will be solved by somebody who is more in love with the DOM than i am
- nwh 14y agoThere's something similar for Google search — http://mrdoob.com/projects/chromeexperiments/google_gravity/ http://mrdoob.com/projects/chromeexperiments/google_gravity/