Centering a Div with Physics, Instead of CSS
Centering a Div with Physics, Instead of CSS
http://jared314.github.io/physics-based-page-layout/ (Javascript Required) After the last CSS centering article, I thought there had to be another way. So, I put together a basic Physics-based Page Layout system using an existing Javascript physics library, for springs, and an existing Javascript CSS parser library, for CSS Selectors and a custom CSS-like DSL. The end goal is to layout DOM elements with springs, and eventually collisions, instead of floats, margins, or padding.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
A Mindmap of Physics
xmorphic – physics-based realistic CSS generator
An AI council that argues, instead of agreeing with you.
An AI council that argues, instead of agreeing with you.
CSS Prettifier and Minifier
CSS Penrose Triangle (Impossible Triangle)
CSS with no px units
FizzBuzz in CSS
AtoZ CSS
Normalize-OpenType.css