Skip to content
Back to the lab

feMorphology dilate · zero JavaScript

The die-cut sticker outline

The white outline of the site's stickers: the element's alpha is grown outward and filled white. One filter, three radii.

Source · GitHub

The outline is feMorphology dilate: SourceAlpha is grown by N pixels and filled white, and the original is drawn back on top. It needs no JavaScript and renders on the server; the three thicknesses are the same filter with different radii. The tilt uses the standalone CSS rotate property and not transform, because the sticker wall's Draggable writes transform, and this way a dragged sticker keeps its tilt. Only content uses the sticker style on this site, and the number of stickers is limited.

Source

Source files on GitHub:

Back to the lab