Bigbang
Every Orbit layout starts with a big bang. The .bigbang creates the universe your system lives in, and its box is the only size you set: every ring, satellite and band inside is a fraction of it.
orbit-12 touches its top and bottom, and orbit-6 is halfway.How big it is
A .bigbang is as wide as its parent and square by default. A parent with a definite height caps it, so in a wide, short container it becomes a wide, short box, and the system inside takes the shorter side.
- To size it, give the
.bigbangor its parent a width. Your ownwidth,heightoraspect-ratioalways win, because the defaults have zero specificity. - Directly inside
<body>it is capped at the viewport height. The previews on this site are pages like that, which is why the universe above is as tall as the frame. - It is a size container: the
.gravity-spotinside measures it with container query units. It is also the containing block ofposition: fixeddescendants. - A
.bigbangwith no width or height draws nothing, and the console says so with an[orbit]message.
Drag the corner of the dotted box. The system follows with no JavaScript: make the box wide and short and it takes the height, tall and narrow and it takes the width.
Moving the center
The universe centers its system. An alignment class on the .bigbang puts the center on an edge or a corner of the box instead, so only part of the system shows. It is the quick way to a quarter dial in a corner or a half gauge along an edge.
.at-center is the default.A universe inside a system
A .bigbang placed directly in a .gravity-spot takes the reach of that system instead of measuring its own box. That is how a whole system becomes one layer of a depth stack.
Reference
| Class or property | Default | What it does |
|---|---|---|
.bigbang | Creates the universe. Holds one or more .gravity-spot. | |
width / height / aspect-ratio | 100% / auto / 1 | The size of the universe. Capped by a parent with a definite height, and by the viewport directly in <body>. |
.at-top-left … .at-bottom-right | .at-center | Puts the center of the system on an edge or a corner of the box. |
.dev-orbit | Draws the lanes and explains misplaced elements in the console. See Visual aids. |