@arraypress/effects-astro 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +85 -0
- package/COMPONENTS.md +1264 -0
- package/LICENSE +139 -0
- package/README.md +197 -2
- package/package.json +60 -4
- package/src/components/AsciiRain.astro +36 -0
- package/src/components/BorderSweep.astro +39 -0
- package/src/components/Caustics.astro +39 -0
- package/src/components/ColorPanels.astro +62 -0
- package/src/components/Cursor.astro +97 -0
- package/src/components/DotGrid.astro +34 -0
- package/src/components/DotSurface.astro +35 -0
- package/src/components/EffectCanvas.astro +152 -0
- package/src/components/FitText.astro +35 -0
- package/src/components/FlutedGlass.astro +36 -0
- package/src/components/Glass.astro +69 -0
- package/src/components/GlassGlyph.astro +38 -0
- package/src/components/GlowField.astro +177 -0
- package/src/components/Grain.astro +98 -0
- package/src/components/HaloRing.astro +38 -0
- package/src/components/HighlightSweep.astro +74 -0
- package/src/components/ImageRipple.astro +56 -0
- package/src/components/Ink.astro +37 -0
- package/src/components/InkField.astro +45 -0
- package/src/components/IsoCity.astro +54 -0
- package/src/components/LightField.astro +40 -0
- package/src/components/LiquidMetal.astro +41 -0
- package/src/components/Magnetic.astro +52 -0
- package/src/components/Marquee.astro +216 -0
- package/src/components/MosaicReveal.astro +196 -0
- package/src/components/NebulaLogo.astro +38 -0
- package/src/components/NeonSwarm.astro +38 -0
- package/src/components/Ocean.astro +40 -0
- package/src/components/OutlineWordmark.astro +222 -0
- package/src/components/PaperBackground.astro +40 -0
- package/src/components/PaperShader.astro +55 -0
- package/src/components/Parallax.astro +49 -0
- package/src/components/ParticleLogo.astro +37 -0
- package/src/components/PixelGlitchText.astro +70 -0
- package/src/components/PointCloud.astro +37 -0
- package/src/components/ProductStack.astro +298 -0
- package/src/components/PulseMark.astro +189 -0
- package/src/components/RadiantGlass.astro +38 -0
- package/src/components/RainOnGlass.astro +71 -0
- package/src/components/Reveal.astro +115 -0
- package/src/components/ScrambleText.astro +52 -0
- package/src/components/ScrollReveal.astro +38 -0
- package/src/components/ShaderBackground.astro +55 -0
- package/src/components/SignalLines.astro +41 -0
- package/src/components/SilkRibbon.astro +37 -0
- package/src/components/SpotlightText.astro +131 -0
- package/src/components/Tilt.astro +79 -0
- package/src/components/Topography.astro +38 -0
- package/src/components/Typewriter.astro +66 -0
- package/src/components/VariableType.astro +59 -0
- package/src/components/VoxelLogo.astro +46 -0
- package/src/components/WaveBars.astro +41 -0
- package/src/components/WorldRoutes.astro +41 -0
- package/src/components/style.js +19 -0
- package/src/index.d.ts +143 -0
- package/src/index.js +105 -0
- package/src/runtime/ascii-rain.d.ts +53 -0
- package/src/runtime/ascii-rain.js +355 -0
- package/src/runtime/audio-meter.d.ts +65 -0
- package/src/runtime/audio-meter.js +282 -0
- package/src/runtime/audio.d.ts +26 -0
- package/src/runtime/audio.js +453 -0
- package/src/runtime/blur.d.ts +2 -0
- package/src/runtime/blur.js +56 -0
- package/src/runtime/canvas2d.d.ts +23 -0
- package/src/runtime/canvas2d.js +105 -0
- package/src/runtime/caustics.d.ts +40 -0
- package/src/runtime/caustics.js +286 -0
- package/src/runtime/color.d.ts +33 -0
- package/src/runtime/color.js +213 -0
- package/src/runtime/curl.d.ts +5 -0
- package/src/runtime/curl.js +81 -0
- package/src/runtime/cursor.d.ts +9 -0
- package/src/runtime/cursor.js +80 -0
- package/src/runtime/device.d.ts +14 -0
- package/src/runtime/device.js +73 -0
- package/src/runtime/dot-grid.d.ts +27 -0
- package/src/runtime/dot-grid.js +245 -0
- package/src/runtime/dot-surface.d.ts +46 -0
- package/src/runtime/dot-surface.js +429 -0
- package/src/runtime/feedback.d.ts +18 -0
- package/src/runtime/feedback.js +131 -0
- package/src/runtime/fit-text.d.ts +5 -0
- package/src/runtime/fit-text.js +60 -0
- package/src/runtime/fluid.d.ts +55 -0
- package/src/runtime/fluid.js +504 -0
- package/src/runtime/fluted-glass.d.ts +27 -0
- package/src/runtime/fluted-glass.js +157 -0
- package/src/runtime/gl.d.ts +19 -0
- package/src/runtime/gl.js +104 -0
- package/src/runtime/glass-glyph.d.ts +49 -0
- package/src/runtime/glass-glyph.js +355 -0
- package/src/runtime/glass-sheen.d.ts +2 -0
- package/src/runtime/glass-sheen.js +30 -0
- package/src/runtime/glsl.d.ts +17 -0
- package/src/runtime/glsl.js +78 -0
- package/src/runtime/glyphs.d.ts +22 -0
- package/src/runtime/glyphs.js +107 -0
- package/src/runtime/halo-ring.d.ts +47 -0
- package/src/runtime/halo-ring.js +334 -0
- package/src/runtime/height-field.d.ts +50 -0
- package/src/runtime/height-field.js +176 -0
- package/src/runtime/image-ripple.d.ts +25 -0
- package/src/runtime/image-ripple.js +353 -0
- package/src/runtime/image.d.ts +11 -0
- package/src/runtime/image.js +81 -0
- package/src/runtime/in-view.d.ts +6 -0
- package/src/runtime/in-view.js +36 -0
- package/src/runtime/ink-field/shaders.js +258 -0
- package/src/runtime/ink-field/sim.js +582 -0
- package/src/runtime/ink-field.d.ts +39 -0
- package/src/runtime/ink-field.js +311 -0
- package/src/runtime/ink.d.ts +31 -0
- package/src/runtime/ink.js +109 -0
- package/src/runtime/instancing.d.ts +12 -0
- package/src/runtime/instancing.js +37 -0
- package/src/runtime/iso-camera.d.ts +35 -0
- package/src/runtime/iso-camera.js +85 -0
- package/src/runtime/iso-city/figures.d.ts +30 -0
- package/src/runtime/iso-city/figures.js +136 -0
- package/src/runtime/iso-city/look.d.ts +34 -0
- package/src/runtime/iso-city/look.js +105 -0
- package/src/runtime/iso-city/plan.d.ts +59 -0
- package/src/runtime/iso-city/plan.js +463 -0
- package/src/runtime/iso-city/roads.d.ts +64 -0
- package/src/runtime/iso-city/roads.js +320 -0
- package/src/runtime/iso-city/scene.d.ts +27 -0
- package/src/runtime/iso-city/scene.js +432 -0
- package/src/runtime/iso-city/shaders.d.ts +6 -0
- package/src/runtime/iso-city/shaders.js +233 -0
- package/src/runtime/iso-city/shadows.d.ts +13 -0
- package/src/runtime/iso-city/shadows.js +148 -0
- package/src/runtime/iso-city/traffic.d.ts +80 -0
- package/src/runtime/iso-city/traffic.js +457 -0
- package/src/runtime/iso-city.d.ts +37 -0
- package/src/runtime/iso-city.js +458 -0
- package/src/runtime/lens-map.d.ts +11 -0
- package/src/runtime/lens-map.js +146 -0
- package/src/runtime/light-field.d.ts +29 -0
- package/src/runtime/light-field.js +292 -0
- package/src/runtime/liquid-glass.d.ts +48 -0
- package/src/runtime/liquid-glass.js +423 -0
- package/src/runtime/liquid-metal/beads.js +217 -0
- package/src/runtime/liquid-metal/field.js +88 -0
- package/src/runtime/liquid-metal/look.js +64 -0
- package/src/runtime/liquid-metal/shaders.js +255 -0
- package/src/runtime/liquid-metal/wave.js +53 -0
- package/src/runtime/liquid-metal.d.ts +46 -0
- package/src/runtime/liquid-metal.js +366 -0
- package/src/runtime/loop.d.ts +7 -0
- package/src/runtime/loop.js +112 -0
- package/src/runtime/magnetic.d.ts +9 -0
- package/src/runtime/magnetic.js +46 -0
- package/src/runtime/marquee.d.ts +2 -0
- package/src/runtime/marquee.js +27 -0
- package/src/runtime/mesh.d.ts +30 -0
- package/src/runtime/mesh.js +217 -0
- package/src/runtime/mosaic-reveal.d.ts +34 -0
- package/src/runtime/mosaic-reveal.js +504 -0
- package/src/runtime/motion.d.ts +2 -0
- package/src/runtime/motion.js +21 -0
- package/src/runtime/mount.d.ts +13 -0
- package/src/runtime/mount.js +120 -0
- package/src/runtime/nebula-logo.d.ts +31 -0
- package/src/runtime/nebula-logo.js +282 -0
- package/src/runtime/neon-swarm.d.ts +31 -0
- package/src/runtime/neon-swarm.js +258 -0
- package/src/runtime/ocean/presets.d.ts +54 -0
- package/src/runtime/ocean/presets.js +184 -0
- package/src/runtime/ocean/shader.d.ts +14 -0
- package/src/runtime/ocean/shader.js +389 -0
- package/src/runtime/ocean/view.d.ts +24 -0
- package/src/runtime/ocean/view.js +98 -0
- package/src/runtime/ocean/waves.d.ts +29 -0
- package/src/runtime/ocean/waves.js +119 -0
- package/src/runtime/ocean.d.ts +31 -0
- package/src/runtime/ocean.js +173 -0
- package/src/runtime/palettes.d.ts +37 -0
- package/src/runtime/palettes.js +75 -0
- package/src/runtime/paper-look.d.ts +42 -0
- package/src/runtime/paper-look.js +91 -0
- package/src/runtime/paper-looks.d.ts +17 -0
- package/src/runtime/paper-looks.js +21 -0
- package/src/runtime/paper.d.ts +37 -0
- package/src/runtime/paper.js +303 -0
- package/src/runtime/particle-logo.d.ts +31 -0
- package/src/runtime/particle-logo.js +196 -0
- package/src/runtime/ping-pong.d.ts +43 -0
- package/src/runtime/ping-pong.js +175 -0
- package/src/runtime/pixel-glitch.d.ts +17 -0
- package/src/runtime/pixel-glitch.js +287 -0
- package/src/runtime/point-cloud.d.ts +33 -0
- package/src/runtime/point-cloud.js +287 -0
- package/src/runtime/pointer.d.ts +27 -0
- package/src/runtime/pointer.js +128 -0
- package/src/runtime/points.d.ts +25 -0
- package/src/runtime/points.js +130 -0
- package/src/runtime/pools.d.ts +2 -0
- package/src/runtime/pools.js +25 -0
- package/src/runtime/product-stack.d.ts +24 -0
- package/src/runtime/product-stack.js +210 -0
- package/src/runtime/radiant-glass.d.ts +29 -0
- package/src/runtime/radiant-glass.js +282 -0
- package/src/runtime/rain-on-glass/backdrop.d.ts +22 -0
- package/src/runtime/rain-on-glass/backdrop.js +185 -0
- package/src/runtime/rain-on-glass/shader.d.ts +2 -0
- package/src/runtime/rain-on-glass/shader.js +168 -0
- package/src/runtime/rain-on-glass/wipe.d.ts +16 -0
- package/src/runtime/rain-on-glass/wipe.js +65 -0
- package/src/runtime/rain-on-glass.d.ts +27 -0
- package/src/runtime/rain-on-glass.js +210 -0
- package/src/runtime/ramp.d.ts +2 -0
- package/src/runtime/ramp.js +30 -0
- package/src/runtime/random.d.ts +2 -0
- package/src/runtime/random.js +22 -0
- package/src/runtime/scroll-reveal.d.ts +22 -0
- package/src/runtime/scroll-reveal.js +73 -0
- package/src/runtime/shader-background.d.ts +42 -0
- package/src/runtime/shader-background.js +261 -0
- package/src/runtime/shader-backgrounds/band-lens.js +72 -0
- package/src/runtime/shader-backgrounds/common.js +53 -0
- package/src/runtime/shader-backgrounds/grain-gradient.js +87 -0
- package/src/runtime/shader-backgrounds/grid.js +33 -0
- package/src/runtime/shader-backgrounds/mesh-gradient.js +74 -0
- package/src/runtime/shader-backgrounds/silk.js +57 -0
- package/src/runtime/shader-backgrounds/waves.js +31 -0
- package/src/runtime/shape.d.ts +42 -0
- package/src/runtime/shape.js +313 -0
- package/src/runtime/silk-ribbon.d.ts +23 -0
- package/src/runtime/silk-ribbon.js +206 -0
- package/src/runtime/slideshow.d.ts +27 -0
- package/src/runtime/slideshow.js +234 -0
- package/src/runtime/spotlight.d.ts +9 -0
- package/src/runtime/spotlight.js +97 -0
- package/src/runtime/stack-poses.d.ts +53 -0
- package/src/runtime/stack-poses.js +273 -0
- package/src/runtime/stage.d.ts +47 -0
- package/src/runtime/stage.js +187 -0
- package/src/runtime/swarm.d.ts +49 -0
- package/src/runtime/swarm.js +199 -0
- package/src/runtime/text-motion.d.ts +41 -0
- package/src/runtime/text-motion.js +165 -0
- package/src/runtime/text.d.ts +11 -0
- package/src/runtime/text.js +90 -0
- package/src/runtime/tilt.d.ts +19 -0
- package/src/runtime/tilt.js +116 -0
- package/src/runtime/topography.d.ts +71 -0
- package/src/runtime/topography.js +650 -0
- package/src/runtime/trackers.d.ts +21 -0
- package/src/runtime/trackers.js +76 -0
- package/src/runtime/variable-type.d.ts +43 -0
- package/src/runtime/variable-type.js +358 -0
- package/src/runtime/voxel-logo.d.ts +31 -0
- package/src/runtime/voxel-logo.js +237 -0
- package/src/runtime/waves.d.ts +70 -0
- package/src/runtime/waves.js +799 -0
- package/src/runtime/world-labels.d.ts +29 -0
- package/src/runtime/world-labels.js +59 -0
- package/src/runtime/world-land.d.ts +8 -0
- package/src/runtime/world-land.js +105 -0
- package/src/runtime/world-map.d.ts +69 -0
- package/src/runtime/world-map.js +308 -0
- package/src/runtime/world-plan.d.ts +101 -0
- package/src/runtime/world-plan.js +333 -0
- package/src/runtime/world-routes.d.ts +75 -0
- package/src/runtime/world-routes.js +673 -0
- package/src/styles/border-sweep.css +82 -0
- package/src/styles/glass.css +104 -0
- package/src/styles/motion.css +218 -0
- package/src/styles/reveal.css +51 -0
- package/src/vendor/paper/LICENSE +201 -0
- package/src/vendor/paper/NOTICE +5 -0
- package/src/vendor/paper/README.md +8 -0
- package/src/vendor/paper/get-shader-color-from-string.js +100 -0
- package/src/vendor/paper/get-shader-noise-texture.js +17 -0
- package/src/vendor/paper/presets.js +3678 -0
- package/src/vendor/paper/shader-sizing.js +37 -0
- package/src/vendor/paper/shader-utils.js +130 -0
- package/src/vendor/paper/shaders/color-panels.js +223 -0
- package/src/vendor/paper/shaders/dithering.js +270 -0
- package/src/vendor/paper/shaders/dot-grid.js +109 -0
- package/src/vendor/paper/shaders/dot-orbit.js +122 -0
- package/src/vendor/paper/shaders/fluted-glass.js +360 -0
- package/src/vendor/paper/shaders/gem-smoke.js +572 -0
- package/src/vendor/paper/shaders/god-rays.js +132 -0
- package/src/vendor/paper/shaders/grain-gradient.js +300 -0
- package/src/vendor/paper/shaders/halftone-cmyk.js +294 -0
- package/src/vendor/paper/shaders/halftone-dots.js +320 -0
- package/src/vendor/paper/shaders/heatmap.js +383 -0
- package/src/vendor/paper/shaders/image-dithering.js +198 -0
- package/src/vendor/paper/shaders/lens-distortion.js +275 -0
- package/src/vendor/paper/shaders/liquid-metal.js +632 -0
- package/src/vendor/paper/shaders/mesh-gradient.js +130 -0
- package/src/vendor/paper/shaders/metaballs.js +110 -0
- package/src/vendor/paper/shaders/neuro-noise.js +76 -0
- package/src/vendor/paper/shaders/paper-texture.js +526 -0
- package/src/vendor/paper/shaders/perlin-noise.js +166 -0
- package/src/vendor/paper/shaders/pulsing-border.js +238 -0
- package/src/vendor/paper/shaders/simplex-noise.js +91 -0
- package/src/vendor/paper/shaders/smoke-ring.js +132 -0
- package/src/vendor/paper/shaders/spiral.js +82 -0
- package/src/vendor/paper/shaders/static-mesh-gradient.js +130 -0
- package/src/vendor/paper/shaders/static-radial-gradient.js +187 -0
- package/src/vendor/paper/shaders/swirl.js +103 -0
- package/src/vendor/paper/shaders/voronoi.js +138 -0
- package/src/vendor/paper/shaders/warp.js +129 -0
- package/src/vendor/paper/shaders/water.js +121 -0
- package/src/vendor/paper/shaders/waves.js +65 -0
- package/src/vendor/paper/vertex-shader.js +159 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
2
|
+
* @arraypress/effects-astro/border-sweep.css
|
|
3
|
+
*
|
|
4
|
+
* A light travelling round an element's outline: a conic gradient turned
|
|
5
|
+
* by an animated angle, masked to a 1px ring (the whole box XOR the
|
|
6
|
+
* content box, so only the border paints, never the label).
|
|
7
|
+
*
|
|
8
|
+
* `@property` is what makes it work: an unregistered custom property is an
|
|
9
|
+
* untyped string and would jump rather than turn. Registered as an
|
|
10
|
+
* `<angle>`, it animates.
|
|
11
|
+
*
|
|
12
|
+
* Use: add `sweep-ring` to an element's class list; it lights on hover and
|
|
13
|
+
* focus. `sweep-ring--always` keeps it running (a featured pricing tier),
|
|
14
|
+
* `sweep-ring--fast` for small things like buttons (a card-length cycle on
|
|
15
|
+
* a pill reads as a stall). Colour and speed from `--sweep-color` and
|
|
16
|
+
* `--sweep-speed`. With reduced motion the ring stays, still.
|
|
17
|
+
*
|
|
18
|
+
* From the ArrayPress theme.
|
|
19
|
+
* ───────────────────────────────────────────────────────────────────── */
|
|
20
|
+
|
|
21
|
+
@property --sweep-angle {
|
|
22
|
+
syntax: '<angle>';
|
|
23
|
+
initial-value: 0deg;
|
|
24
|
+
inherits: false;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sweep-ring {
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.sweep-ring::after {
|
|
32
|
+
content: '';
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset: 0;
|
|
35
|
+
border-radius: inherit;
|
|
36
|
+
padding: var(--sweep-width, 1px);
|
|
37
|
+
background: conic-gradient(
|
|
38
|
+
from var(--sweep-angle),
|
|
39
|
+
transparent 0%,
|
|
40
|
+
transparent 62%,
|
|
41
|
+
var(--sweep-color, currentColor) 78%,
|
|
42
|
+
color-mix(in srgb, var(--sweep-color, currentColor) 35%, transparent) 86%,
|
|
43
|
+
transparent 94%
|
|
44
|
+
);
|
|
45
|
+
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
46
|
+
-webkit-mask-composite: xor;
|
|
47
|
+
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
48
|
+
mask-composite: exclude;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transition: opacity 220ms ease;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sweep-ring:hover::after,
|
|
55
|
+
.sweep-ring:focus-visible::after,
|
|
56
|
+
.sweep-ring:focus-within::after,
|
|
57
|
+
.sweep-ring--always::after {
|
|
58
|
+
opacity: 1;
|
|
59
|
+
animation: effect-border-sweep var(--sweep-speed, 2.6s) linear infinite;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sweep-ring--fast {
|
|
63
|
+
--sweep-speed: 1.8s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@keyframes effect-border-sweep {
|
|
67
|
+
to {
|
|
68
|
+
--sweep-angle: 360deg;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (prefers-reduced-motion: reduce) {
|
|
73
|
+
.sweep-ring:hover::after,
|
|
74
|
+
.sweep-ring:focus-visible::after,
|
|
75
|
+
.sweep-ring:focus-within::after,
|
|
76
|
+
.sweep-ring--always::after {
|
|
77
|
+
animation: none;
|
|
78
|
+
/* Keep the lit edge, drop the travel. */
|
|
79
|
+
background: none;
|
|
80
|
+
box-shadow: inset 0 0 0 1px var(--sweep-color, currentColor);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
2
|
+
* @arraypress/effects-astro/glass.css
|
|
3
|
+
*
|
|
4
|
+
* Liquid glass panels: `class="glass"` on any element. A pane over what is
|
|
5
|
+
* behind it rather than a box on it, built up in layers:
|
|
6
|
+
* - the body: a thin tint, the backdrop blurred, saturated and
|
|
7
|
+
* brightened, as glass concentrates the colour it passes;
|
|
8
|
+
* - the rim (::before): a hairline that catches the light hardest at the
|
|
9
|
+
* top left and again, fainter, at the bottom right;
|
|
10
|
+
* - the depth: inset highlights along the top and bottom edges and a
|
|
11
|
+
* soft shadow beneath;
|
|
12
|
+
* - the sheen (::after): a soft light under the pointer, placed by
|
|
13
|
+
* glass-sheen.js (`<Glass>` includes it).
|
|
14
|
+
*
|
|
15
|
+
* Tuned with custom properties: `--glass-tint` (the body's colour, default
|
|
16
|
+
* near-black), `--glass-tint-amount` (30%), `--glass-blur` (20px),
|
|
17
|
+
* `--glass-lift` (hover rise, 2px; 0 for none).
|
|
18
|
+
*
|
|
19
|
+
* Refraction, opt-in: `--glass-refract` above 0 (up to 2) bends what is
|
|
20
|
+
* behind as a thick lens does at its rim, where liquid-glass.js can draw
|
|
21
|
+
* it (Chromium; `glassLens()` starts it, `<Glass refract>` includes it).
|
|
22
|
+
* Also `--glass-dispersion` (0–1, default 0.35), `--glass-bezel` (the
|
|
23
|
+
* rim's width, 28px), `--glass-specular` (0–1, 0.7) and
|
|
24
|
+
* `--glass-lens-blur` (a light frost on the lens, 0.5px). Elsewhere the
|
|
25
|
+
* panel stays frosted as above.
|
|
26
|
+
*
|
|
27
|
+
* From the LumiThemes site.
|
|
28
|
+
* ───────────────────────────────────────────────────────────────────── */
|
|
29
|
+
|
|
30
|
+
.glass {
|
|
31
|
+
position: relative;
|
|
32
|
+
isolation: isolate;
|
|
33
|
+
border: 1px solid transparent;
|
|
34
|
+
background:
|
|
35
|
+
linear-gradient(160deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02) 45%, rgb(255 255 255 / 0.05)),
|
|
36
|
+
color-mix(in srgb, var(--glass-tint, #08080a) var(--glass-tint-amount, 30%), transparent);
|
|
37
|
+
-webkit-backdrop-filter: blur(var(--glass-blur, 20px)) saturate(190%) brightness(1.3);
|
|
38
|
+
backdrop-filter: blur(var(--glass-blur, 20px)) saturate(190%) brightness(1.3);
|
|
39
|
+
box-shadow:
|
|
40
|
+
inset 0 1px 0 rgb(255 255 255 / 0.22),
|
|
41
|
+
inset 0 -1px 0 rgb(255 255 255 / 0.05),
|
|
42
|
+
inset 0 0 28px rgb(255 255 255 / 0.03),
|
|
43
|
+
0 20px 40px -20px rgb(0 0 0 / 0.65);
|
|
44
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.glass::before,
|
|
48
|
+
.glass::after {
|
|
49
|
+
content: '';
|
|
50
|
+
position: absolute;
|
|
51
|
+
inset: -1px;
|
|
52
|
+
border-radius: inherit;
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* The lens: liquid-glass.js sets `--glass-lens` to the panel's filter and
|
|
57
|
+
* `data-glass-lens` only where the browser draws it. */
|
|
58
|
+
.glass[data-glass-lens] {
|
|
59
|
+
backdrop-filter: blur(var(--glass-lens-blur, 0.5px)) var(--glass-lens) saturate(150%) brightness(1.08);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* The rim: a gradient on the border box with the padding box masked out. */
|
|
63
|
+
.glass::before {
|
|
64
|
+
padding: 1px;
|
|
65
|
+
background: linear-gradient(135deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.12) 30%, rgb(255 255 255 / 0.04) 60%, rgb(255 255 255 / 0.28));
|
|
66
|
+
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
67
|
+
-webkit-mask-composite: xor;
|
|
68
|
+
mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
69
|
+
mask-composite: exclude;
|
|
70
|
+
transition: opacity 0.2s ease;
|
|
71
|
+
opacity: 0.8;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* The sheen: where the pointer is, only while it is over the panel. */
|
|
75
|
+
.glass::after {
|
|
76
|
+
z-index: -1;
|
|
77
|
+
background: radial-gradient(circle at var(--glass-x, 50%) var(--glass-y, 0%), rgb(255 255 255 / 0.14), transparent 55%);
|
|
78
|
+
opacity: 0;
|
|
79
|
+
transition: opacity 0.3s ease;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.glass:hover {
|
|
83
|
+
transform: translateY(calc(var(--glass-lift, 2px) * -1));
|
|
84
|
+
box-shadow:
|
|
85
|
+
inset 0 1px 0 rgb(255 255 255 / 0.32),
|
|
86
|
+
inset 0 -1px 0 rgb(255 255 255 / 0.08),
|
|
87
|
+
inset 0 0 28px rgb(255 255 255 / 0.05),
|
|
88
|
+
0 26px 48px -20px rgb(0 0 0 / 0.7);
|
|
89
|
+
}
|
|
90
|
+
.glass:hover::before,
|
|
91
|
+
.glass:hover::after {
|
|
92
|
+
opacity: 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.glass,
|
|
97
|
+
.glass::before,
|
|
98
|
+
.glass::after {
|
|
99
|
+
transition: none;
|
|
100
|
+
}
|
|
101
|
+
.glass:hover {
|
|
102
|
+
transform: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
2
|
+
* @arraypress/effects-astro/motion.css
|
|
3
|
+
*
|
|
4
|
+
* Small motions for the moments a shop has: classes to put on your own
|
|
5
|
+
* elements. Each stops or settles with prefers-reduced-motion.
|
|
6
|
+
*
|
|
7
|
+
* .fx-pulse-ring a ring pulsing out from a round button while
|
|
8
|
+
* something plays (`--fx-color`).
|
|
9
|
+
* .fx-heartbeat a double pump when `.is-active` is added (a
|
|
10
|
+
* wishlist heart being filled).
|
|
11
|
+
* .fx-bump a quick swell when `.is-bumped` is added (a cart
|
|
12
|
+
* count going up); `bump(el)` from the package
|
|
13
|
+
* replays it.
|
|
14
|
+
* .fx-shimmer a loading shimmer for placeholders.
|
|
15
|
+
* .fx-pulse, .fx-wiggle, .fx-shake
|
|
16
|
+
* attention, now and then: a glow ring, a small
|
|
17
|
+
* wiggle, a shake (a link to look at first).
|
|
18
|
+
* .fx-settle children grow up into place with an overshoot,
|
|
19
|
+
* one after another (bars of a logo, a chart).
|
|
20
|
+
* .fx-live a status dot breathing a glow: available, online,
|
|
21
|
+
* live (`--fx-color`, default green).
|
|
22
|
+
*
|
|
23
|
+
* From the WaveGrid, SellGrid and LinkGrid themes, and David Sherlock's site.
|
|
24
|
+
* ───────────────────────────────────────────────────────────────────── */
|
|
25
|
+
|
|
26
|
+
.fx-pulse-ring {
|
|
27
|
+
position: relative;
|
|
28
|
+
}
|
|
29
|
+
.fx-pulse-ring::after {
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
inset: 0;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
border: 2px solid var(--fx-color, currentColor);
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
animation: fx-pulse-ring 1.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
|
|
37
|
+
}
|
|
38
|
+
@keyframes fx-pulse-ring {
|
|
39
|
+
from {
|
|
40
|
+
transform: scale(1);
|
|
41
|
+
opacity: 0.7;
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
transform: scale(1.7);
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fx-heartbeat.is-active {
|
|
50
|
+
transform-origin: center;
|
|
51
|
+
animation: fx-heartbeat 0.6s cubic-bezier(0.22, 1, 0.36, 1);
|
|
52
|
+
}
|
|
53
|
+
@keyframes fx-heartbeat {
|
|
54
|
+
18% {
|
|
55
|
+
transform: scale(1.35);
|
|
56
|
+
}
|
|
57
|
+
34% {
|
|
58
|
+
transform: scale(0.92);
|
|
59
|
+
}
|
|
60
|
+
50% {
|
|
61
|
+
transform: scale(1.18);
|
|
62
|
+
}
|
|
63
|
+
68% {
|
|
64
|
+
transform: scale(0.98);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.fx-bump.is-bumped {
|
|
69
|
+
animation: fx-bump 0.35s ease-out;
|
|
70
|
+
}
|
|
71
|
+
@keyframes fx-bump {
|
|
72
|
+
40% {
|
|
73
|
+
transform: scale(1.3);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.fx-shimmer {
|
|
78
|
+
background: linear-gradient(
|
|
79
|
+
90deg,
|
|
80
|
+
color-mix(in srgb, currentColor 6%, transparent) 25%,
|
|
81
|
+
color-mix(in srgb, currentColor 14%, transparent) 50%,
|
|
82
|
+
color-mix(in srgb, currentColor 6%, transparent) 75%
|
|
83
|
+
);
|
|
84
|
+
background-size: 200% 100%;
|
|
85
|
+
animation: fx-shimmer 1.4s ease-in-out infinite;
|
|
86
|
+
}
|
|
87
|
+
@keyframes fx-shimmer {
|
|
88
|
+
from {
|
|
89
|
+
background-position: 200% 0;
|
|
90
|
+
}
|
|
91
|
+
to {
|
|
92
|
+
background-position: -200% 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.fx-pulse {
|
|
97
|
+
animation: fx-pulse 2s ease-in-out infinite;
|
|
98
|
+
}
|
|
99
|
+
@keyframes fx-pulse {
|
|
100
|
+
0%,
|
|
101
|
+
100% {
|
|
102
|
+
box-shadow: 0 0 0 0 color-mix(in srgb, var(--fx-color, currentColor) 55%, transparent);
|
|
103
|
+
}
|
|
104
|
+
50% {
|
|
105
|
+
box-shadow: 0 0 0 8px transparent;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.fx-wiggle {
|
|
109
|
+
animation: fx-wiggle 2.6s ease-in-out infinite;
|
|
110
|
+
}
|
|
111
|
+
@keyframes fx-wiggle {
|
|
112
|
+
0%,
|
|
113
|
+
92%,
|
|
114
|
+
100% {
|
|
115
|
+
transform: rotate(0);
|
|
116
|
+
}
|
|
117
|
+
94% {
|
|
118
|
+
transform: rotate(-1.2deg);
|
|
119
|
+
}
|
|
120
|
+
96% {
|
|
121
|
+
transform: rotate(1.2deg);
|
|
122
|
+
}
|
|
123
|
+
98% {
|
|
124
|
+
transform: rotate(-0.6deg);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
.fx-shake {
|
|
128
|
+
animation: fx-shake 3s ease-in-out infinite;
|
|
129
|
+
}
|
|
130
|
+
@keyframes fx-shake {
|
|
131
|
+
0%,
|
|
132
|
+
90%,
|
|
133
|
+
100% {
|
|
134
|
+
transform: translateX(0);
|
|
135
|
+
}
|
|
136
|
+
92% {
|
|
137
|
+
transform: translateX(-4px);
|
|
138
|
+
}
|
|
139
|
+
94% {
|
|
140
|
+
transform: translateX(4px);
|
|
141
|
+
}
|
|
142
|
+
96% {
|
|
143
|
+
transform: translateX(-3px);
|
|
144
|
+
}
|
|
145
|
+
98% {
|
|
146
|
+
transform: translateX(2px);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.fx-settle > * {
|
|
151
|
+
transform-origin: bottom;
|
|
152
|
+
animation: fx-settle 0.62s cubic-bezier(0.2, 0.85, 0.25, 1) both;
|
|
153
|
+
}
|
|
154
|
+
.fx-settle > :nth-child(2) {
|
|
155
|
+
animation-delay: 55ms;
|
|
156
|
+
}
|
|
157
|
+
.fx-settle > :nth-child(3) {
|
|
158
|
+
animation-delay: 110ms;
|
|
159
|
+
}
|
|
160
|
+
.fx-settle > :nth-child(4) {
|
|
161
|
+
animation-delay: 165ms;
|
|
162
|
+
}
|
|
163
|
+
.fx-settle > :nth-child(5) {
|
|
164
|
+
animation-delay: 220ms;
|
|
165
|
+
}
|
|
166
|
+
.fx-settle > :nth-child(n + 6) {
|
|
167
|
+
animation-delay: 275ms;
|
|
168
|
+
}
|
|
169
|
+
@keyframes fx-settle {
|
|
170
|
+
0% {
|
|
171
|
+
transform: scaleY(0.18);
|
|
172
|
+
opacity: 0.55;
|
|
173
|
+
}
|
|
174
|
+
58% {
|
|
175
|
+
transform: scaleY(1.14);
|
|
176
|
+
}
|
|
177
|
+
100% {
|
|
178
|
+
transform: scaleY(1);
|
|
179
|
+
opacity: 1;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.fx-live {
|
|
184
|
+
display: inline-block;
|
|
185
|
+
flex-shrink: 0;
|
|
186
|
+
width: 0.6em;
|
|
187
|
+
height: 0.6em;
|
|
188
|
+
border-radius: 50%;
|
|
189
|
+
background: var(--fx-color, #10b981);
|
|
190
|
+
vertical-align: middle;
|
|
191
|
+
animation: fx-live 2s ease-in-out infinite;
|
|
192
|
+
}
|
|
193
|
+
@keyframes fx-live {
|
|
194
|
+
0%,
|
|
195
|
+
100% {
|
|
196
|
+
box-shadow: 0 0 0 0 color-mix(in srgb, var(--fx-color, #10b981) 50%, transparent);
|
|
197
|
+
}
|
|
198
|
+
50% {
|
|
199
|
+
box-shadow: 0 0 0 0.6em color-mix(in srgb, var(--fx-color, #10b981) 0%, transparent);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@media (prefers-reduced-motion: reduce) {
|
|
204
|
+
.fx-pulse-ring::after,
|
|
205
|
+
.fx-heartbeat.is-active,
|
|
206
|
+
.fx-bump.is-bumped,
|
|
207
|
+
.fx-shimmer,
|
|
208
|
+
.fx-pulse,
|
|
209
|
+
.fx-wiggle,
|
|
210
|
+
.fx-shake,
|
|
211
|
+
.fx-settle > *,
|
|
212
|
+
.fx-live {
|
|
213
|
+
animation: none;
|
|
214
|
+
}
|
|
215
|
+
.fx-live {
|
|
216
|
+
box-shadow: 0 0 0 0.2em color-mix(in srgb, var(--fx-color, #10b981) 25%, transparent);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* ─────────────────────────────────────────────────────────────────────
|
|
2
|
+
* @arraypress/effects-astro/reveal.css
|
|
3
|
+
*
|
|
4
|
+
* Scroll reveal by class: put one of these on any element and
|
|
5
|
+
* `<ScrollReveal />` (once, in the layout) brings it into place as it
|
|
6
|
+
* scrolls into view, by adding `.is-visible`.
|
|
7
|
+
*
|
|
8
|
+
* fade: .fade-in, .fade-in-up, .fade-in-down, .fade-in-left, .fade-in-right
|
|
9
|
+
* slide: .slide-in-up, .slide-in-down, .slide-in-left, .slide-in-right
|
|
10
|
+
* zoom: .zoom-in, .zoom-out
|
|
11
|
+
* flip: .flip-up, .flip-down, .flip-left, .flip-right
|
|
12
|
+
* blur: .blur-in
|
|
13
|
+
*
|
|
14
|
+
* Nothing is hidden until the script has started (it marks the page
|
|
15
|
+
* `.fx-reveal`), so without JavaScript everything shows; with reduced
|
|
16
|
+
* motion everything shows, still. `--reveal-delay` on an element staggers
|
|
17
|
+
* it. `<Reveal>` does the same for one element, and word by word.
|
|
18
|
+
*
|
|
19
|
+
* From the reveal-astro package, which this replaces.
|
|
20
|
+
* ───────────────────────────────────────────────────────────────────── */
|
|
21
|
+
|
|
22
|
+
.fx-reveal :is(.fade-in, .fade-in-up, .fade-in-down, .fade-in-left, .fade-in-right, .slide-in-up, .slide-in-down, .slide-in-left, .slide-in-right, .zoom-in, .zoom-out, .flip-up, .flip-down, .flip-left, .flip-right, .blur-in) {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
transition:
|
|
25
|
+
opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
|
|
26
|
+
transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
|
|
27
|
+
filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
28
|
+
transition-delay: var(--reveal-delay, 0s);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.fx-reveal .fade-in-up { transform: translateY(24px); }
|
|
32
|
+
.fx-reveal .fade-in-down { transform: translateY(-24px); }
|
|
33
|
+
.fx-reveal .fade-in-left { transform: translateX(24px); }
|
|
34
|
+
.fx-reveal .fade-in-right { transform: translateX(-24px); }
|
|
35
|
+
.fx-reveal .slide-in-up { transform: translateY(48px); }
|
|
36
|
+
.fx-reveal .slide-in-down { transform: translateY(-48px); }
|
|
37
|
+
.fx-reveal .slide-in-left { transform: translateX(48px); }
|
|
38
|
+
.fx-reveal .slide-in-right { transform: translateX(-48px); }
|
|
39
|
+
.fx-reveal .zoom-in { transform: scale(0.92); }
|
|
40
|
+
.fx-reveal .zoom-out { transform: scale(1.08); }
|
|
41
|
+
.fx-reveal .flip-up { transform: perspective(2500px) rotateX(-100deg); }
|
|
42
|
+
.fx-reveal .flip-down { transform: perspective(2500px) rotateX(100deg); }
|
|
43
|
+
.fx-reveal .flip-left { transform: perspective(2500px) rotateY(-100deg); }
|
|
44
|
+
.fx-reveal .flip-right { transform: perspective(2500px) rotateY(100deg); }
|
|
45
|
+
.fx-reveal .blur-in { filter: blur(12px); }
|
|
46
|
+
|
|
47
|
+
.fx-reveal .is-visible {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
transform: none;
|
|
50
|
+
filter: none;
|
|
51
|
+
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Paper Shaders (vendored)
|
|
2
|
+
|
|
3
|
+
From [Paper Shaders](https://github.com/paper-design/shaders), © 2026 Paper, under the Apache License 2.0 ([LICENSE](LICENSE), [NOTICE](NOTICE)).
|
|
4
|
+
|
|
5
|
+
- `shaders/*.js`, `shader-sizing.js`, `shader-utils.js`, `vertex-shader.js`, `get-shader-noise-texture.js` and `get-shader-color-from-string.js` are copied from `@paper-design/shaders` 0.0.81. The only change is that their source-map comments are removed, since the maps are not shipped.
|
|
6
|
+
- `presets.js` is generated from `@paper-design/shaders-react` 0.0.81. It holds each shader's presets and the named options its settings take, as plain data.
|
|
7
|
+
|
|
8
|
+
The host that runs them, `src/runtime/paper.js`, is ours.
|