0.1.0 • Published 2 years ago

@georgedoescode/nugget v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Nugget — Responsive Graphics Reimagined!

What it is

Nugget is a small (~9kb) JavaScript library that creates generative grids which automatically arrange themselves “around” existing content on a web page. These grids enable developers and designers to create bespoke graphics that will adapt to any layout, any device, at every resolution — all in a few lines of code!

What it isn't

Nugget isn’t a graphics library. It helps position things on the page, not render them! SVG, Canvas, and HTML elements can all be used alongside Nugget.

Performance

Nugget uses Resize Observer to track changes in the DOM without polling and leverages workers to offload it’s grid calculation to a separate thread. As a result, calculating grids using Nugget is extremely fast and non-blocking.

Creating content to fill Nugget’s grids, however, can introduce some performance cost. Please be mindful of the execution time of your chosen render method, and take a look at some of the example below for optimal solutions!

Usage

Examples

0.0.23

2 years ago

0.1.0

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago