kuinetic 0.2.3 → 0.3.0
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/README.md +2 -2
- package/dist/esm/advanced/index.mjs +1 -1
- package/dist/esm/{chunk-FYMZW5N2.mjs → chunk-4QKMEDM4.mjs} +6745 -2562
- package/dist/esm/{chunk-FASAEQDR.mjs → chunk-7NW4OLOC.mjs} +506 -29
- package/dist/esm/{chunk-MZQG2VMG.mjs → chunk-DAVDOYOS.mjs} +92 -495
- package/dist/esm/{chunk-AEQGC2KM.mjs → chunk-EDFJTT5B.mjs} +2 -1
- package/dist/esm/core/index.mjs +3 -3
- package/dist/esm/effects/index.mjs +3 -3
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/notes/index.mjs +284 -5
- package/dist/kuinetic.advanced.js +2 -1
- package/dist/kuinetic.advanced.min.js +1 -1
- package/dist/kuinetic.all.js +5158 -930
- package/dist/kuinetic.all.min.js +2 -2
- package/dist/kuinetic.css +1207 -73
- package/dist/kuinetic.js +5157 -929
- package/dist/kuinetic.min.css +1 -1
- package/dist/kuinetic.min.js +1 -1
- package/dist/kuinetic.notes.js +1 -1
- package/dist/types/advanced/shaders.d.ts +1 -1
- package/dist/types/core/channels.d.ts +1 -1
- package/dist/types/core/easing.d.ts +9 -0
- package/dist/types/core/effect-context.d.ts +5 -0
- package/dist/types/core/element-config.d.ts +2 -0
- package/dist/types/core/flip.d.ts +25 -1
- package/dist/types/core/gesture.d.ts +5 -0
- package/dist/types/core/image-flight.d.ts +23 -0
- package/dist/types/core/js-effect-preparer.d.ts +3 -1
- package/dist/types/core/owned-styles.d.ts +2 -1
- package/dist/types/core/params.d.ts +1 -1
- package/dist/types/core/parse.d.ts +1 -0
- package/dist/types/core/registry.d.ts +1 -1
- package/dist/types/core/types.d.ts +11 -1
- package/dist/types/effects/auto-motion.d.ts +8 -0
- package/dist/types/effects/carousel/archive.d.ts +18 -0
- package/dist/types/effects/carousel/coast.d.ts +7 -0
- package/dist/types/effects/carousel/deck.d.ts +26 -2
- package/dist/types/effects/carousel/drag.d.ts +19 -7
- package/dist/types/effects/carousel/glide.d.ts +89 -0
- package/dist/types/effects/carousel/index.d.ts +7 -0
- package/dist/types/effects/carousel/line.d.ts +10 -0
- package/dist/types/effects/carousel/row-copies.d.ts +10 -0
- package/dist/types/effects/carousel/row.d.ts +3 -0
- package/dist/types/effects/carousel/shape-fit.d.ts +46 -0
- package/dist/types/effects/carousel/sources.d.ts +26 -0
- package/dist/types/effects/carousel/sphere.d.ts +23 -0
- package/dist/types/effects/carousel/stack.d.ts +4 -3
- package/dist/types/effects/catalog/confetti.d.ts +2 -0
- package/dist/types/effects/catalog/cursor-trail.d.ts +2 -0
- package/dist/types/effects/catalog/curtains.d.ts +2 -0
- package/dist/types/effects/catalog/image-flight.d.ts +2 -0
- package/dist/types/effects/catalog/line-boil.d.ts +2 -0
- package/dist/types/effects/catalog/number-tokens.d.ts +5 -0
- package/dist/types/effects/catalog/numbers-shared.d.ts +3 -4
- package/dist/types/effects/catalog/text-shared.d.ts +13 -6
- package/dist/types/effects/catalog/typewriter-scatter.d.ts +5 -0
- package/dist/types/effects/catalog/view-transitions.d.ts +32 -1
- package/dist/types/effects/catalog/wobble.d.ts +2 -0
- package/dist/types/effects/gestures/drag-options.d.ts +17 -0
- package/dist/types/effects/layout/departures.d.ts +21 -0
- package/dist/types/effects/motion-path/fit.d.ts +4 -0
- package/dist/types/effects/scroll-mechanics/progress-output.d.ts +9 -0
- package/dist/types/effects/step-marking.d.ts +7 -4
- package/dist/types/effects/svg/morph-loop.d.ts +5 -0
- package/dist/types/effects/svg/text-path.d.ts +2 -0
- package/dist/types/effects/three-d/cube.d.ts +2 -0
- package/dist/types/effects/tween/index.d.ts +2 -1
- package/dist/types/effects/tween/properties.d.ts +1 -1
- package/dist/types/effects/tween/toggle.d.ts +6 -0
- package/dist/types/notes/effects.d.ts +1 -0
- package/dist/types/notes/index.d.ts +11 -0
- package/dist/types/notes/showcase.d.ts +1 -0
- package/dist/types/showcase/lightbox-flight.d.ts +11 -0
- package/dist/types/showcase/lightbox.d.ts +2 -1
- package/dist/types/showcase/modal-shell.d.ts +5 -0
- package/package.json +1 -1
package/dist/kuinetic.notes.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var kuineticNotes=(()=>{var r=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var s in t)r(e,s,{get:t[s],enumerable:!0})},v=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of g(t))!y.call(e,o)&&o!==s&&r(e,o,{get:()=>t[o],enumerable:!(i=f(t,o))||i.enumerable});return e};var k=e=>v(r({},"__esModule",{value:!0}),e);var T={};b(T,{PARAM_NOTES:()=>x});var a={"ambient-float.duration":"How long one full up-and-down drift takes, repeating forever.","ambient-float.distance":"How far the element drifts up and down.","ambient-gradient.duration":"How long one full colour drift takes, repeating forever.","ambient-gradient.from":{why:"The first colour of the gradient.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-gradient.to":{why:"The second colour of the gradient.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-gradient-ring.duration":"How long the colours take to travel once around the edge.","ambient-gradient-ring.from":{why:"The first colour of the glowing edge.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-gradient-ring.to":{why:"The second colour of the glowing edge.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-orbit.duration":"How long one full turn takes, repeating forever.","ambient-orbit.angle":"How far it turns each cycle; 360deg is one full circle.","ambient-pulse.duration":"How long one swell-and-shrink beat takes, repeating forever.","ambient-pulse.scale":"How big it swells at the peak; 1.15 is 15% larger.","ambient-tint.duration":"How long one full drift of the pattern takes, repeating forever.","ambient-tint.from":{why:"The colour of the pattern or glow.",whenOmitted:"Uses the effect\u2019s built-in colour, or the text colour."},"background-media.src":{why:"The picture or video file to fill the background with.",required:!0},"background-media.poster":{why:"A still picture shown while the video loads, so the background is never blank.",whenOmitted:"The background stays empty until the first video frame arrives."},"background-media.fit":"Cover crops the media to fill the box; contain shows all of it.","background-media.focus":"Which part of the picture stays visible when it gets cropped.","background-media.overlay":{why:"A colour laid over the media, so text on top stays readable.",whenOmitted:"No overlay; the media shows at full strength."},"background-media.overlay-opacity":"How strongly the overlay colour covers the media.","background-media.autoplay":{why:"When a video plays: only while on screen, always, or never."},"background-media.rate":"Video speed; 1 is normal, 0.5 is half speed, up to 4.","background-media.loop":"Whether the video starts over when it ends.","glass.blur":"How much the content behind the panel is blurred.","glass.saturate":"How vivid the colours behind the panel look; 1 leaves them unchanged.","glass.opacity":"How strongly the panel\u2019s tint shows over the blurred background.","glass.tint":{why:"The colour of the frosted glass itself.",whenOmitted:"White-ish glass that follows the page\u2019s colour scheme."},"glass.rim":{why:"The colour of the thin edge line, which also colours the top highlight.",whenOmitted:"A faint white edge."},"glass.rim-width":"How thick the thin edge line is.","glass.sheen":"How bright the soft highlight across the top is; 0 removes it.","glass.radius":{why:"How rounded the corners are; a very large value makes a pill.",whenOmitted:"Rounded corners of 16px, unless the page sets its own."},"media-blur-up.distance":"How far the image rises into place as it sharpens.","media-blur-up.blur":"How blurry the image starts before it sharpens.","media-ken-burns.distance":"How far the image pans while it zooms, right and a little up; negative pans the other way.","media-ken-burns.scale":"How far the image zooms; 1.12 is 12% bigger at the zoomed-in end.","media-lightbox.scale":"The size it starts at before growing to full size.","media-parallax-frame.distance":"How far the image shifts as the page scrolls.","rotate-static.angle":{why:"How far to tilt the element, held still.",whenOmitted:"No tilt; the element keeps its own rotation."},"slat-assemble.slats":"How many strips the picture is cut into, from 2 to 24.","slat-assemble.axis":"Cut the picture into vertical or horizontal strips.","slat-assemble.angle":{why:"Cut the strips at any angle instead; 0deg is vertical, 90deg is horizontal.",whenOmitted:"Follows the axis setting."},"slat-assemble.from":{why:"Which strips land first: alternating ends, start, end, outside-in, or scattered."},"slat-assemble.fold":{why:"Strips flip in like hinged panels instead of sliding in.",whenOmitted:"Off: strips slide in."},"slat-assemble.duration":"How long each strip takes to land, not the whole run.","view-morph.name":{why:"The shared name that pairs this element with its twin on the other view.",whenOmitted:"Uses the element\u2019s own id, so it needs one."},"view-swap.controls":{why:"Which element this control opens and closes, by selector like #panel.",whenOmitted:"Uses the element named by the control\u2019s aria-controls."},"view-swap.attribute":{why:"The marker added or removed on that element each time the control is clicked.",whenOmitted:"Uses data-open."},"view-swap.type":{why:"Names the transition motion to run, like kui-page-slide; a browser without that feature cross-fades.",whenOmitted:"The browser\u2019s default cross-fade, or an instant swap where view transitions are missing."}};var O=["desaturate","parallax","parallax-rotate","parallax-scale","progress","progress-stroke","scroll-fade","skew"],H=Object.fromEntries(O.flatMap(e=>[[`${e}.duration`,"Scrolling sets the pace; this counts only next to delay, or as a clock where scroll-linking isn't supported."],[`${e}.delay`,"Not a clock wait: it starts the motion later in the scroll range, in proportion to duration."],[`${e}.stagger`,{why:"Starts each item a little later in the scroll range, so a group moves one after another.",whenOmitted:"Every item moves together, unless a parent sets a stagger."}]])),n={...H,"desaturate.from":"How grey the element is at the start of the scroll range.","desaturate.to":"How grey the element is at the end of the scroll range.","feedback-burst.scale":"How much the element swells at the peak of the pop.","feedback-burst.distance":"How far the confetti flies, as a size or a share of the element.","feedback-burst.fan":"How wide the confetti spreads sideways; 0 is a narrow fountain.","feedback-burst.size":"How big each confetti speck is.","feedback-burst.spill":"How far past the element the confetti is allowed to show.","feedback-burst.color1":{why:"Colour of the first confetti speck.",whenOmitted:"The page's own --kui-c1 if set, else a pink-red."},"feedback-burst.color2":{why:"Colour of the second confetti speck.",whenOmitted:"The page's own --kui-c2 if set, else amber."},"feedback-burst.color3":{why:"Colour of the third confetti speck.",whenOmitted:"The page's own --kui-c3 if set, else green."},"feedback-burst.color4":{why:"Colour of the fourth confetti speck.",whenOmitted:"The page's own --kui-c4 if set, else blue."},"feedback-burst.color5":{why:"Colour of the fifth confetti speck.",whenOmitted:"The page's own --kui-c5 if set, else purple."},"feedback-confirm.duration":"How long the confirmation takes in total, fade in, hold and fade out.","feedback-dot-pulse.duration":"How long one full pulse of the dots takes, repeating forever.","feedback-dot-pulse.dotSize":"How big each of the three dots is.","feedback-heart-burst.scale":"How much the heart swells at the peak of the pop.","feedback-pop.scale":"How much the element swells at the peak of the pop.","feedback-progress-track.duration":"How long the bar takes to sweep across once, repeating forever.","feedback-pull.distance":"How far the element is pulled down before it springs back.","feedback-ripple.extent":"How many times larger the ripple grows than the element.","feedback-ripple.color":{why:"Colour of the ripple disc.",whenOmitted:"Uses the element's own text colour."},"feedback-ripple.strength":"How solid the ripple looks at its brightest, from 0 to 1.","feedback-ripple.startScale":"How big the ripple begins, as a share of the element.","feedback-shimmer.duration":"How long one sweep of light takes, repeating forever.","feedback-spin.duration":"How long one full turn takes, repeating forever.","feedback-toast.distance":"How far the toast slides as it enters or leaves.","flip-3d.angle":"How far turned away the element starts, before it flips flat.","flip-3d.perspective":"How strong the 3D depth looks; smaller is more dramatic.","parallax.distance":"How far the element drifts against the scroll.","parallax-rotate.angle":"How far the element has turned by the end of the scroll range.","parallax-rotate.from":"How far turned the element is at the start of the scroll range.","parallax-scale.scale":"How big the element is at the end of the scroll range.","parallax-scale.from":"How big the element is at the start of the scroll range.","progress-stroke.length":{why:"The total length of the line being drawn, so it draws exactly to the end.",whenOmitted:"Assumes a path length of 100."},"reveal.distance":"How far the element travels while it appears.","reveal.opacity":"How see-through the element is when it starts; 0 is invisible.","reveal-blur.distance":"How far the element travels while it appears.","reveal-blur.opacity":"How see-through the element is when it starts; 0 is invisible.","reveal-blur.blur":"How blurry the element is when it starts.","roll.distance":"How far the element travels while it rolls in.","roll.angle":"How far turned the element starts before it rolls upright.","scale-move.distance":"How far the element travels while it grows in.","scale-move.scale":"How small the element starts before it grows to full size.","scroll-fade.opacity":"How see-through the element is at the start of the scroll range."};var h={"anchored-preview.distance":"How far the preview travels as it pops in.","anchored-preview.gap":"How much space is left between the preview and what it points at.","anchored-preview.scale":"How small the preview starts before it grows to full size.","anchored-preview.color":{why:"Text colour of the preview.",whenOmitted:"Keeps the surrounding text colour."},"anchored-preview.bg-color":{why:"Background colour of the preview.",whenOmitted:"No background, so a picture or your own styling shows as it is."},"anchored-preview.radius":{why:"How rounded the preview corners are.",whenOmitted:"Square corners."},"anchored-preview.place":{why:"Which side the preview sits on, or auto to flip to the other side when there is no room."},"anchored-preview.tease":{why:"Show the preview once by itself on arrival, so people know it is there.",whenOmitted:"Off: the preview only shows on hover or focus."},"anchored-preview.target":{why:"Which child is the preview, when it is not marked with data-kui-preview.",whenOmitted:"Uses the child marked data-kui-preview."},"beam-border.duration":"How long one full lap of the light around the border takes.","beam-border.delay":"How long the pointer waits before the light starts circling.","beam-border.color":{why:"Colour of the travelling light.",whenOmitted:"A four-colour rainbow."},"beam-border.outset":{why:"Pushes the ring outward, to sit over a border the element already has.",whenOmitted:"The ring sits just inside any existing border."},"beam-border.arc":"How much of the ring is lit: a short dash or a nearly full ring.","beam-border.softness":"How gradually the light fades in at its leading edge.","beam-border-auto.duration":"How long one full lap of the light around the border takes.","beam-border-auto.color":{why:"Colour of the travelling light.",whenOmitted:"A four-colour rainbow."},"beam-border-auto.outset":{why:"Pushes the ring outward, to sit over a border the element already has.",whenOmitted:"The ring sits just inside any existing border."},"beam-border-auto.arc":"How much of the ring is lit: a short dash or a nearly full ring.","beam-border-auto.softness":"How gradually the light fades in at its leading edge.","border-draw.color":{why:"Colour of the border that draws itself.",whenOmitted:"Uses the page accent colour."},"border-draw.width":"How thick the drawn border is.","border-draw.outset":{why:"Pushes the drawn border outward, to sit over a border the element already has.",whenOmitted:"0px: the line sits at the element edge."},"border-glow.color":{why:"Colour of the glowing outline.",whenOmitted:"Uses the page accent colour."},"cursor-follow.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-follow.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-follow.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-follow.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"cursor-invert.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-invert.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-invert.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-invert.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"cursor-label.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-label.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-label.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-label.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"cursor-lag.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-lag.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-lag.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-lag.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"group-dim.delay":"How long the pointer rests before the others dim, so passing over does not flicker.","group-dim.opacity":"How faded the other items get; lower is dimmer.","icon-spin.duration":"How long one full turn of the icon takes.","label-swap.distance":{why:"How far each label slides as it swaps; 100% is a full label height."},"lift.distance":"How far the element rises on hover.","lift-shadow.distance":"How far the element rises on hover.","pop.scale":"How much bigger the element grows on hover; 1 is no change.","press.delay":"How long to hold before the press shows.","press.scale":"How small the element shrinks while pressed; 1 is no change.","press.depth":"How far the shadow sinks in while pressed, to look pushed down.","press.color":{why:"Colour of the shadow that shows while pressed.",whenOmitted:"A soft dark shadow."},"proximity-glow.color":{why:"Colour of the glow on the edge nearest the pointer.",whenOmitted:"Uses the page accent colour."},"proximity-glow.radius":"How far from the pointer the glow reaches before it fades out.","proximity-glow.width":"How thick the glowing edge line is.","proximity-glow.outset":{why:"Pushes the glowing edge outward, to sit over a border the element already has.",whenOmitted:"0px: the line sits at the element edge."},"search-expand.collapsed":"How wide the search box is while resting.","search-expand.width":"How wide the search box grows to when opened.","shine-sweep.color":{why:"Colour of the shiny band that sweeps across.",whenOmitted:"A soft translucent white."},"shine-sweep.angle":"The tilt of the shiny band as it crosses.","shine-sweep.width":"How wide the shiny band is, as a share of the element.","tilt-3d.maxAngle":"The most it tilts, in degrees, with the pointer at its edge; mouse or trackpad only.","tilt-3d.perspective":"How strong the 3D depth looks; a smaller distance looks more dramatic.","tilt-parallax.strength":'Pixels a data-depth="1" layer shifts with the pointer at the edge; other depths scale it.',"underline-center.color":{why:"Colour of the underline.",whenOmitted:"Uses the text colour."},"underline-slide.color":{why:"Colour of the underline.",whenOmitted:"Uses the text colour."}};var l={"hover-intent.duration":"How long the hint takes to fade in once it shows.","hover-intent.delay":"How long the pointer must rest first, so a mouse just passing over doesn't pop the hint.","hover-intent.ease":"The speed curve of the hint fading in.","hover-intent.distance":"How far the hint rises as it appears.","hover-intent.color":"Text colour of the hint card.","hover-intent.bg-color":"Background colour of the hint card.","hover-intent.radius":"How rounded the hint card corners are.","hover-intent.place":{why:"Where the hint sits: above, below, or flip below when there is no room above."},"hover-intent.tease":{why:"Show the hint once by itself on arrival, so people know it is there.",whenOmitted:"Off: the hint only shows on hover or focus."},"hover-intent.target":{why:"Which child is the hint, when it is not marked with data-kui-hint.",whenOmitted:"Uses the child marked data-kui-hint."}};var d={"data-kui.on":{why:"What starts it: scrolling into view, a hover, a click, or any event name.",whenOmitted:"Each effect picks: most start in view, hover and drag ones are ready on load."},"data-kui.actions":{why:"What to do each time it scrolls in, out, back in and back out.",whenOmitted:"It plays on the way in and nothing else."},"data-kui.timeline":{why:"What drives it: the clock, or the scroll position so it moves as you scroll.",whenOmitted:"It plays over time, at its own speed."},"data-kui.threshold":{why:"How much of the element must be in view before it starts.",whenOmitted:"It starts as soon as any part of it shows."},"data-kui.cascade":{why:"Extra wait for each child, so they arrive one after another.",whenOmitted:"The children all start together."},"data-kui.spread":{why:"Total time for all children to start, however many there are.",whenOmitted:"The children all start together, unless cascade sets a step."},"data-kui.order":{why:"Which child goes first: start, end, center, edges, random or a position.",whenOmitted:"The first child goes first."},"data-kui.cols":{why:"How many columns the children sit in, so order can mean a cell in a grid.",whenOmitted:"The children are treated as one line, in page order."},"data-kui.along":{why:"Keep a grid stagger to one direction: across (x) or down (y).",whenOmitted:"The wave spreads both ways."},"data-kui.rm":{why:"What to do for visitors who ask for less motion: shorten, fade, or skip it.",whenOmitted:"The effects choose, and the strictest choice wins."},"data-kui.func":{why:"The name of a page function to call when the effects finish.",whenOmitted:"Nothing is called."},"data-kui.at":{why:"Start this step relative to the one before: with it, after it, or a time off.",whenOmitted:"It starts at the same moment as the other steps."},"data-kui.above":{why:"Only run this step when the screen is at least this wide.",whenOmitted:"It runs at every screen width."},"data-kui.below":{why:"Only run this step when the screen is narrower than this.",whenOmitted:"It runs at every screen width."},"data-kui.wide":{why:"Only run this step when its container is at least this wide.",whenOmitted:"It runs at every container width."},"data-kui.narrow":{why:"Only run this step when its container is narrower than this.",whenOmitted:"It runs at every container width."},"data-kui.repeat":{why:"How many times this step plays, or infinite to keep going.",whenOmitted:"It plays once."},"data-kui.yoyo":{why:"Play every other repeat backwards, so it swings back and forth.",whenOmitted:"Every repeat plays forwards."}};var w={"auto-height.attribute":{why:"Which attribute changing tells the panel it opened or closed, so it can animate its height.",whenOmitted:"Watches data-open."},"bar.from":"How wide the bar starts, growing from its left edge: 0 is empty, 1 is full width.","bar-grow.from":"How short the bar starts, growing up from its base: 0 is flat, 1 is full height.","blur.blur":"How blurry it is at its blurriest, before sharpening or after fading out.","card-toggle.delay":"Wait this long before turning to the back; turning back to the front is never delayed.","card-toggle.perspective":"How deep the 3D looks as the card turns; smaller is more dramatic.","card-toggle.trigger":{why:"What turns the card: a click, a hover, a hover that stays turned, or a hover that flips each time.",whenOmitted:"Click."},"draggable.stiffness":"How firmly it springs toward where it is headed; higher snaps harder.","draggable.damping":"How quickly the spring wobble dies out; lower wobbles longer.","draggable.mass":"How heavy it feels; higher is slower and swingier.","draggable.axis":"Limit dragging to sideways only, up and down only, or both.","draggable.bounds":{why:"The furthest, in pixels, it can be pulled from its start; it gets stiffer near the limit.",whenOmitted:"No limit."},"draggable.return":{why:"Spring back to the starting spot when you let go.",whenOmitted:"Off: it stays where you drop it."},"draggable.inertia":{why:"Keep gliding after you let go, carrying the speed of your flick.",whenOmitted:"Off: it stops exactly where you released it."},"draggable.resistance":"How stiff it feels near the limit, from 0 to 1; lower is harder to stretch. Needs bounds.","draggable.momentum":"How far a flick carries it past the release point. Needs inertia, and does nothing with return.","flip-container.scale":{why:"Also stretch items that change size as they move, instead of only sliding them.",whenOmitted:"Off: items only slide into place."},"grid-to-list.scale":{why:"Also stretch items that change size as they move, instead of only sliding them.",whenOmitted:"On for this name, since every item changes shape between grid and list."},"expand-to-modal.scale":{why:"Also stretch items that change size as they move, instead of only sliding them.",whenOmitted:"On for this name, since the item grows into the modal."},"flip-face.angle":"How far the face turns, in degrees; 180deg is a full flip.","flip-face.perspective":"How deep the 3D looks while turning; smaller is more dramatic.","flip-indicator.follow":{why:"Which element the indicator slides to, such as the active tab; the first match on the page.",whenOmitted:"Nothing to follow, so the indicator stays put.",required:!0},"flip-indicator.attribute":{why:"Which attribute changing tells it the active item has moved.",whenOmitted:"Watches aria-selected."},"icon-toggle.delay":"Wait this long before opening; closing is never delayed.","magnetic.stiffness":"How firmly it springs toward the pointer; higher follows tighter.","magnetic.damping":"How quickly the spring wobble dies out; lower wobbles longer.","magnetic.mass":"How heavy it feels; higher is slower and swingier.","magnetic.radius":"How close the pointer must come, in pixels, before it starts drifting toward it.","magnetic.strength":"How much of the pointer distance it follows; higher drifts further.","motion-path.path":{why:"The route it travels, drawn as SVG path data.",whenOmitted:"The name's own route; plain motion-path uses a straight 120 pixel line to the right."},"motion-path.rotate":{why:"Turn to face the way it travels (auto), the reverse way, or hold a fixed angle.",whenOmitted:"Keeps its own orientation."},"motion-path.anchor":{why:"Which point of the element rides the path; use center when it turns to follow.",whenOmitted:"Its top-left corner."},"motion-path.from":"Where along the path it starts, as a percentage of the length.","motion-path.to":"Where along the path it stops, as a percentage of the length.","page-reveal.distance":"How far the page slides as it fades in. Only the slide version moves.","page-fade.distance":"Does nothing here: page-fade only fades. Use page-slide to move as well.","path-draw.length":{why:"The total length of the line, so it draws fully; match it to your shape.",whenOmitted:"Assumes 100."},"path-morph.from":{why:"The starting shape, as SVG path data.",whenOmitted:"Uses the path's own shape."},"path-morph.to":{why:"The shape it morphs into, as SVG path data.",whenOmitted:"Nothing to morph into: a warning, and the shape never changes.",required:!0},"path-morph.delay":"Wait this long after the pointer arrives before morphing; moving away is never delayed.","pressable.duration":"How long you must hold before it counts as a press.","rotate.angle":"How far it is turned at the start, before straightening up.","scale.scale":"How small it starts before growing to full size; 1 means no size change.","skew.from":"The tilt at the start of the scroll range.","skew.to":"The tilt at the end of the scroll range.","swipeable.axis":"Only count sideways swipes, only up and down swipes, or both.","swipeable.velocity":"How fast a flick must be, in pixels per second, to count as a swipe.","tween.x":"How far it slides sideways by the end; a quoted list like x:'0,100,40' passes through each.","tween.y":"How far it slides up or down by the end; a quoted list like y:'0,-60,0' passes through each.","tween.z":"How far it moves toward or away from you by the end.","tween.rotate":"How far it has turned by the end; a quoted list like rotate:'0,90,45' passes through each.","tween.scale":"How big it is by the end; 2 is double. A quoted list like scale:'1,1.2,1' passes through each.","tween.scale-x":"How wide it is by the end, separate from its height.","tween.scale-y":"How tall it is by the end, separate from its width.","tween.opacity":"How see-through it is by the end; 0 is invisible. A quoted list like opacity:'1,0,1' steps through each.","tween.blur":"How blurry it is by the end.","tween.brightness":"How bright it is by the end; 1 is normal, 0 is black.","tween.saturate":"How vivid the colours are by the end; 0 is grey.","tween.grayscale":"How grey it is by the end; 1 is fully black and white.","tween.contrast":"How strong the light and dark difference is by the end.","tween.hue-rotate":"How far its colours have shifted around the colour wheel by the end.","tween.invert":"How inverted its colours are by the end; 1 is fully flipped.","tween.sepia":"How much of an old-photo brown tone it has by the end.","tween.color":"The text colour it fades to.","tween.background-color":"The background colour it fades to.","tween.translate-ease":{why:"Speed curve for just the sliding part.",whenOmitted:"Uses the main speed curve."},"tween.rotate-ease":{why:"Speed curve for just the turning part.",whenOmitted:"Uses the main speed curve."},"tween.scale-ease":{why:"Speed curve for just the resizing part.",whenOmitted:"Uses the main speed curve."},"tween.opacity-ease":{why:"Speed curve for just the fading part.",whenOmitted:"Uses the main speed curve."},"tween.filter-ease":{why:"Speed curve for just the blur and colour-effect part.",whenOmitted:"Uses the main speed curve."},"tween.color-ease":{why:"Speed curve for just the text colour change.",whenOmitted:"Uses the main speed curve."},"tween.background-ease":{why:"Speed curve for just the background colour change.",whenOmitted:"Uses the main speed curve."},"tween-from.x":"How far sideways it starts, then slides back; a quoted list like x:'80,-20,0' passes through each.","tween-from.y":"How far up or down it starts, then slides back; a quoted list like y:'40,-10,0' passes through each.","tween-from.z":"How far toward or away from you it starts, then settles back.","tween-from.rotate":"How far it is turned at the start, before straightening up.","tween-from.scale":"How big it starts; 0.5 is half size, growing to normal.","tween-from.scale-x":"How wide it starts, separate from its height.","tween-from.scale-y":"How tall it starts, separate from its width.","tween-from.opacity":"How see-through it starts; 0 is invisible, fading in.","tween-from.blur":"How blurry it starts, sharpening to normal.","tween-from.brightness":"How bright it starts; 1 is normal, 0 is black.","tween-from.saturate":"How vivid the colours start; 0 is grey.","tween-from.grayscale":"How grey it starts; 1 is fully black and white.","tween-from.contrast":"How strong the light and dark difference starts.","tween-from.hue-rotate":"How far its colours start shifted around the colour wheel.","tween-from.invert":"How inverted its colours start; 1 is fully flipped.","tween-from.sepia":"How much of an old-photo brown tone it starts with.","tween-from.color":"The text colour it starts as, fading to its normal colour.","tween-from.background-color":"The background colour it starts as, fading to its normal one.","tween-from.translate-ease":{why:"Speed curve for just the sliding part.",whenOmitted:"Uses the main speed curve."},"tween-from.rotate-ease":{why:"Speed curve for just the turning part.",whenOmitted:"Uses the main speed curve."},"tween-from.scale-ease":{why:"Speed curve for just the resizing part.",whenOmitted:"Uses the main speed curve."},"tween-from.opacity-ease":{why:"Speed curve for just the fading part.",whenOmitted:"Uses the main speed curve."},"tween-from.filter-ease":{why:"Speed curve for just the blur and colour-effect part.",whenOmitted:"Uses the main speed curve."},"tween-from.color-ease":{why:"Speed curve for just the text colour change.",whenOmitted:"Uses the main speed curve."},"tween-from.background-ease":{why:"Speed curve for just the background colour change.",whenOmitted:"Uses the main speed curve."}};var c={"back-to-top-fade.offset":"How far down the page you scroll, in pixels, before the button appears.","header-hide-on-scroll.offset":{why:"Smallest scroll movement that counts, so tiny jitters do not hide or show the header."},"header-shrink.offset":"How far down the page you scroll, in pixels, before the header is fully shrunk.","horizontal-track.distance":"How much vertical scrolling it takes to slide the row all the way across.","horizontal-track.travel":{why:"How far the row slides sideways in total, if you do not want it measured.",whenOmitted:"Measured from how much wider the row is than its window."},"horizontal-track.target":{why:"Which element is the sliding row; naming it lets the effect build the pinned window for you.",whenOmitted:"The element itself is the row, and you provide the pinned window."},"horizontal-track.scope":{why:"Whether the row is looked for only inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"horizontal-track.offset-top":{why:"Gap left at the top while the row is held, such as for a fixed header. Only works with target.",whenOmitted:"Uses the page-wide pin gap, or none."},"media-scrub.distance":"How much scrolling it takes to play the frames or video from start to end.","media-scrub.offset-top":{why:"Gap left at the top while the media is held, such as for a fixed header. Only works with spacer.",whenOmitted:"Uses the page-wide pin gap, or none."},"media-scrub.spacer":{why:"Let the effect hold the media in place and reserve the scroll room, so no wrapper is needed.",whenOmitted:"Off: your page positions the media and provides the scroll room."},"media-scrub.frames":{why:"How many numbered images the picture sequence has.",whenOmitted:"Counts as one frame. Ignored when target is set."},"media-scrub.src":{why:"Address of the numbered images, with {i} standing in for the frame number.",whenOmitted:"No images are swapped; a video still plays with scroll."},"media-scrub.target":{why:"Which elements are the frames, shown one at a time as you scroll.",whenOmitted:"Swaps the picture address (src) or scrubs this element if it is a video."},"media-scrub.scope":{why:"Whether the frames are looked for only inside this element or anywhere on the page.",whenOmitted:"Looks anywhere on the page."},"pin.distance":"How much scrolling the element stays held in place for.","pin.offset-top":{why:"Gap left above the held element, such as for a fixed header.",whenOmitted:"Uses the page-wide pin gap, or none."},"pin.spacer":{why:"Add blank scroll room under the element so it can stay held for the full distance.",whenOmitted:"Off: it only holds while its own parent is still on screen."},"radio-fill.scale":"Makes the filled dot inside the radio button bigger or smaller.","range-fill.duration":"No visible effect; the fill timing is fixed in the stylesheet.","range-fill.delay":"No visible effect; the fill timing is fixed in the stylesheet.","range-fill.ease":"No visible effect; the fill timing is fixed in the stylesheet.","scroll-progress.distance":"How much scrolling it takes to go from 0 to 100 percent.","scroll-progress.steps":{why:"Split the scroll into this many numbered steps your styles can react to.",whenOmitted:"0: only a smooth progress value is published, no steps."},"scroll-progress.target":{why:"Which elements get marked as before, active or after as the steps advance. Needs steps.",whenOmitted:"No elements are marked; only the step number is published."},"scroll-progress.scope":{why:"Whether the marked elements are looked for only inside this element or anywhere on the page.",whenOmitted:"Looks anywhere on the page."},"scroll-snap.axis":"Whether scrolling snaps sideways (x) or up and down (y).","scroll-snap.strictness":"Whether it always snaps (mandatory) or only when you stop close to an item.","scroll-snap.align":"Which edge of each item lines up with the scroll area when it snaps.","scroll-snap.target":{why:"Which elements are the snap items; naming them also makes this element the scroll area.",whenOmitted:"Uses its direct children and leaves the scrolling to your page."},"scroll-snap.scope":{why:"Whether the snap items are looked for only inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"scroll-spy.distance":{why:"How much scrolling this section counts as being the current one.",whenOmitted:"One screen height. Ignored when sections is set."},"scroll-spy.target":{why:"Which menu link to highlight; with sections, each link is matched to a section by its #href.",whenOmitted:"No link is highlighted."},"scroll-spy.scope":{why:"Whether the links are looked for only inside this element or anywhere on the page.",whenOmitted:"Anywhere on the page for one section, inside this element when sections is set."},"scroll-spy.sections":{why:"Which elements are the sections, so one setup on a shared parent can track them all.",whenOmitted:"Each section carries its own setup instead."},"scroll-spy.offset-top":{why:"Gap at the top of the screen, such as a fixed header, before a section counts as current.",whenOmitted:"None. Only works when sections is set."},"smooth-scroll.behavior":"Whether jumping to a link glides (smooth) or lands instantly (auto).","strength-meter.duration":"No visible effect; the meter fade timing is fixed in the stylesheet.","strength-meter.delay":"No visible effect; the meter fade timing is fixed in the stylesheet.","strength-meter.ease":"No visible effect; the meter fade timing is fixed in the stylesheet.","submit-flow.duration":"No visible effect; the stage timing is set by load and hold instead.","submit-flow.delay":"No visible effect; the stage timing is set by load and hold instead.","submit-flow.ease":"No visible effect; the stage timing is set by load and hold instead.","submit-flow.load":"How long the spinner shows after a click, before the button shows done.","submit-flow.hold":"How long the done state stays before the button goes back to normal.","toggle-morph.scale":"Makes the whole toggle switch bigger or smaller."};var p={"*.duration":"How long the motion takes from start to finish.","*.delay":"Wait this long after the trigger before starting.","*.ease":"The speed curve: slow start, slow finish, or a bounce.","*.stagger":{why:"Extra wait per item, so a group arrives one after another.",whenOmitted:"Every item starts at once, unless a parent sets a stagger."}};var m={"compare.position":"Where the divider starts between two images, as a share of the width.","compare.positions":{why:"Where each divider starts when comparing three or more images, as one quoted list.",whenOmitted:"Dividers are spaced evenly."},"compare.axis":"Whether the divider moves left-right or up-down.","compare.autoplay":{why:"Makes the divider sweep back and forth by itself, until someone grabs it.",whenOmitted:"Never: the divider stays put until dragged."},"compare.duration":"How long one sweep of the divider takes, edge to edge. Only used with autoplay.","compare.reverse":"Start the sweep toward the other edge first. Only used with autoplay.","compare.loop":{why:"Keep sweeping back and forth until someone takes the handle. Only used with autoplay.",whenOmitted:"Off: it sweeps once and stops."},"device-frame.kind":"Which device the content is framed in: browser window, phone, tablet or laptop.","device-frame.color":"Colour of the device body around the screen.","device-frame.radius":{why:"How rounded the outer corners of the device are.",whenOmitted:"Each device keeps its own natural corner size."},"device-frame.screen-radius":{why:"How rounded the corners of the screen inside the device are.",whenOmitted:"The screen follows the outer corners, less the bezel, and is always at least a little rounded."},"hotspots.target":{why:"Which elements are the notes, one marker each.",whenOmitted:"Uses the items of the list directly inside it."},"hotspots.marker":"Whether each marker shows its number or is a plain dot.","hotspots.scope":{why:"Whether the notes are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"lightbox.media":"What opens in the viewer: pictures, videos, or a mix of both.","lightbox.target":{why:"Which elements open the viewer when clicked.",whenOmitted:"Uses the links (and pictures) inside it."},"lightbox.scope":{why:"Whether the clickable items are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"lightbox.scale":"How small the picture starts as it grows into the viewer; 1 means no zoom.","lightbox.loop":{why:"Whether the arrows wrap from the last item back to the first.",whenOmitted:"On: it wraps around."},"lightbox.aspect":{why:"Forces the video frame to a wide, tall or square shape.",whenOmitted:"Tall for a YouTube Shorts link, wide for every other video."},"lightbox.caption":"Where the line under each item comes from, or none to hide it.","scroll-story.target":{why:"Which elements are the pictures or clips that change as you scroll.",whenOmitted:"Uses the children of its first child."},"scroll-story.sections":{why:"Which elements are the text steps you scroll through.",whenOmitted:"Uses the children of its last child."},"scroll-story.offset-top":"How far down the screen a step must reach before it counts as current.","scroll-story.side":"Which side of the screen the pinned pictures sit on.","slideshow.target":{why:"Which elements are the slides.",whenOmitted:"Uses the items of the list directly inside it."},"slideshow.scope":{why:"Whether the slides are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"slideshow.next":{why:"Your own next button, looked for inside first, then on the page. Replaces the built-in controls.",whenOmitted:"Uses the built-in controls instead."},"slideshow.prev":{why:"Your own previous button, looked for inside first, then on the page. Replaces the built-in controls.",whenOmitted:"Uses the built-in controls instead."},"slideshow.jump":{why:"Your own buttons, each jumping to the slide at its position. Replaces the built-in controls.",whenOmitted:"Uses the built-in controls instead."},"slideshow.controls":"Which built-in controls appear: dots, arrows, both, or none. Ignored once next, prev or jump is set.","slideshow.autoplay":{why:"How long each slide shows before moving on by itself; 2s at least.",whenOmitted:"Off. It also stays off with controls:none or your own next, prev or jump buttons."},"slideshow.transition":"Whether slides cross-fade or slide sideways.","slideshow.swipe":"Whether a left or right swipe changes the slide.","slideshow.mute":{why:"Your own button, inside the slideshow, that mutes and unmutes the video on the current slide.",whenOmitted:"No mute button."},"slow-mo.rate":"How slow motion runs; 0.25 plays at a quarter of normal speed.","slow-mo.controls":"Whether a toggle button is added, or slow motion is just always on.","spatial-ring.grab":"Whether people can drag the ring with a finger or mouse.","spatial-ring.travel":"How many pixels of dragging move the ring by one card.","spatial-ring.target":{why:"Which elements are the cards.",whenOmitted:"Uses its direct children."},"spatial-ring.next":{why:"Your own button that turns the ring to the next card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-ring.prev":{why:"Your own button that turns the ring back a card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-ring.jump":{why:"Your own buttons, each turning the ring to the card at its position; inside first, then the page.",whenOmitted:"No jump buttons."},"spatial-ring.pause":{why:"Your own button that pauses and resumes spin or autoplay, looked for inside first, then the page.",whenOmitted:"No pause button; hovering still pauses."},"spatial-ring.hover":{why:"Whether resting the mouse on the ring pauses spin or autoplay. none keeps it moving.",whenOmitted:"Hovering pauses it. Keyboard focus and the pause button always pause."},"spatial-ring.spin":{why:"Turns the ring slowly all the time; this is the time for one full turn.",whenOmitted:"Off: the ring moves only when asked. A negative time turns it backwards."},"spatial-ring.autoplay":{why:"How long the ring rests on each card before turning to the next; 2s at least.",whenOmitted:"Off. If spin is also set, spin wins."},"spatial-ring.lightbox":{why:"Clicking a card opens all the cards in a full-screen viewer.",whenOmitted:"Off: clicks do nothing special."},"spatial-ring.scope":{why:"Whether the cards are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"spatial-ring.tilt":"How far the camera looks down on the ring; negative looks up from below.","spatial-ring.arc":"How much of a full circle the cards spread over; less makes a curved slice.","spatial-ring.radius":{why:"How wide the ring is; a bigger ring spaces cards further apart.",whenOmitted:"Sized from the card width so neighbours just fit. Shrinks if it would overflow the page."},"spatial-ring.gap":"Breathing room between neighbouring cards when the ring size is worked out for you.","spatial-ring.perspective":"How close the camera is; smaller values make the 3D look more dramatic.","spatial-ring.facing":"Whether cards turn outward with the ring or always face you so text stays readable.","spatial-ring.plane":"Whether the ring turns toward you in depth, or lies flat like a clock face.","spatial-stack.grab":"Whether people can drag the stack with a finger or mouse.","spatial-stack.travel":"How many pixels of dragging move the stack by one card.","spatial-stack.target":{why:"Which elements are the cards.",whenOmitted:"Uses its direct children."},"spatial-stack.next":{why:"Your own button that brings up the next card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-stack.prev":{why:"Your own button that brings back the previous card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-stack.jump":{why:"Your own buttons, each bringing up the card at its position; inside first, then the page.",whenOmitted:"No jump buttons."},"spatial-stack.pause":{why:"Your own button that pauses and resumes spin or autoplay, looked for inside first, then the page.",whenOmitted:"No pause button; hovering still pauses."},"spatial-stack.hover":{why:"Whether resting the mouse on the stack pauses spin or autoplay. none keeps it moving.",whenOmitted:"Hovering pauses it. Keyboard focus and the pause button always pause."},"spatial-stack.spin":{why:"Cycles the cards slowly all the time; this is the time for one full pass.",whenOmitted:"Off: the stack moves only when asked. A negative time runs it backwards."},"spatial-stack.autoplay":{why:"How long the front card rests before the next comes up; 2s at least.",whenOmitted:"Off. If spin is also set, spin wins."},"spatial-stack.lightbox":{why:"Clicking a card opens all the cards in a full-screen viewer.",whenOmitted:"Off: clicks do nothing special."},"spatial-stack.scope":{why:"Whether the cards are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"spatial-stack.shift":"How far each card behind steps sideways; negative steps left.","spatial-stack.rise":"How far each card behind steps up; negative steps down.","spatial-stack.shrink":"How much smaller each card behind gets, per place back.","spatial-stack.blur":"How much blurrier each card behind gets, per place back.","spatial-stack.fade":"How much fainter each card behind gets, per place back.","spatial-stack.depth":"How many cards show behind the front one; the rest wait hidden.","step-progress.duration":"Passed to your slide styles; autoplay also waits this long after someone moves it.","step-progress.delay":"Passed to your slide styles to use as a start wait; the library adds no pause itself.","step-progress.ease":"Passed to your slide styles to use as their speed curve.","step-progress.steps":{why:"The number of steps, for when the elements cannot tell it.",whenOmitted:"Counts the step elements itself."},"step-progress.target":{why:"Which elements are the steps.",whenOmitted:"Uses its direct children."},"step-progress.next":{why:"Your own button that moves to the next step, looked for inside first, then on the page.",whenOmitted:"With no next, prev, jump or pause, a click on it moves on, unless lightbox is on."},"step-progress.prev":{why:"Your own button that moves to the previous step, looked for inside first, then on the page.",whenOmitted:"With no next, prev, jump or pause, a click on it moves on, unless lightbox is on."},"step-progress.jump":{why:"Your own buttons, each moving to the step at its position; inside first, then the page.",whenOmitted:"With no next, prev, jump or pause, a click on it moves on, unless lightbox is on."},"step-progress.peek":"How far, as a share of a slide, your slide styles push neighbours sideways.","step-progress.rest":"How large your slide styles draw the non-current slides, where 1 is full size.","step-progress.main":"How large your slide styles draw the current slide, where 1 is full size.","step-progress.autoplay":{why:"How long each step shows before moving on by itself; 2s at least.",whenOmitted:"Off: steps change only when someone asks."},"step-progress.pause":{why:"Your own button that pauses and resumes autoplay, looked for inside first, then on the page.",whenOmitted:"No pause button; hovering still pauses."},"step-progress.hover":{why:"Whether resting the mouse on the deck pauses autoplay. none keeps it moving.",whenOmitted:"Hovering pauses it. Keyboard focus and the pause button always pause."},"step-progress.lightbox":{why:"Clicking a slide opens all the slides in a full-screen viewer.",whenOmitted:"Off: clicking a slide moves to the next one."},"step-progress.scope":{why:"Whether the steps named by target are looked for inside this element or anywhere on the page.",whenOmitted:"Looks anywhere on the page, except under the carousel name, which looks inside."}};var u={"count.from":"The number the counter starts at.","count.to":"The number the counter ends on.","count.decimals":"How many digits to show after the decimal point; ignored by compact, which shows at most one.","count.format":{why:"How the number is written: plain, as money, as a percent, or shortened like 1.2K.",whenOmitted:"Plain number. Percent expects a fraction, so 0.82 shows 82%."},"count.currency":{why:"The three-letter currency code used when the format is currency.",whenOmitted:"US dollars."},"count-odometer.from":"The number the rolling digits start at; whole numbers from 0 up, so -5 counts as 0.","count-odometer.to":"The number the rolling digits land on; whole numbers from 0 up, so 2.5 rounds to 3.","drop-open.distance":"How far the element drops down into place as it opens.","meter-bar.from":{why:"How full the bar is when it starts, from 0 (empty) to 1 (full).",whenOmitted:"Starts empty and grows to its full width."},"pop-open.scale":"How small the element starts, where 1 is full size.","scale-open.scale":"How small the element starts, where 1 is full size.","scramble-text.step":{why:"How long each scramble flicker lasts; ignored when a total duration is given.",whenOmitted:"40ms per flicker, so longer text takes longer to resolve."},"scramble-text.revealEvery":"How many flickers pass before the next letter locks in.","scramble-text.charset":"Which characters the unsolved letters flicker through.","slide-open-down.distance":"How far the element slides in from above.","slide-open-up.distance":"How far the element slides in from below.","split-text.stagger":"Wait between each piece, so letters or words arrive one by one.","split-text.unit":"What the text is cut into: single letters, whole words, or lines.","split-text.direction":"How each piece arrives: fade, slide up, slide down, or rise from a mask.","split-text-motion.stagger":"Offset between neighbouring letters, which shapes the wave or jitter.","split-text-motion.motion":"The style of letter movement: a smooth wave or a nervous jitter.","text-3d-extrude.angle":"How far the text is turned at the start before it straightens; negative turns it anticlockwise.","text-3d-extrude.distance":"How far below its place the text starts before it rises in.","text-gradient-sweep.color":{why:"The colour of the glowing band that sweeps across the text.",whenOmitted:"Uses the text's own colour."},"text-marquee.duration":"How long one full trip of the scrolling text takes; longer is slower.","text-shimmer.duration":"How long one shimmer pass takes before the next one starts.","text-sweep.color":{why:"The colour of the highlight bar or underline.",whenOmitted:"Uses the text's own colour; the highlight preset uses gold."},"typewriter.step":"How long each typed letter takes; ignored when a total duration is given.","typewriter.loop":{why:"Delete the text and type it again, over and over.",whenOmitted:"Off: it types once and stops."},"var-axis.axis":{why:"The four-character name of the font setting to animate, letters or digits, case exact: wght, GRAD.",whenOmitted:"Animates weight (wght); a font without that setting does not move."},"var-axis.from":"The value of the font setting at the start.","var-axis.to":"The value of the font setting at the end.","var-slant.from":"How far the letters lean at the start.","var-slant.to":"How far the letters lean at the end.","var-weight.from":"How bold the text is at the start, from thin (100) up.","var-weight.to":"How bold the text is at the end, up to extra heavy (900).","var-width.from":"How wide the letters are at the start; 100% is normal.","var-width.to":"How wide the letters are at the end; 100% is normal.","word-cycler.words":{why:'The words to cycle through, separated by | and quoted, like "fast|simple|bold".',required:!0},"word-cycler.interval":"How long each word stays before the next one swaps in."};var x={...p,...n,...a,...h,...l,...u,...c,...w,...m,...d};return k(T);})();
|
|
1
|
+
"use strict";var kuineticNotes=(()=>{var a=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var o in t)a(e,o,{get:t[o],enumerable:!0})},H=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of k(t))!O.call(e,s)&&s!==o&&a(e,s,{get:()=>t[s],enumerable:!(n=v(t,s))||n.enumerable});return e};var T=e=>H(a({},"__esModule",{value:!0}),e);var D={};x(D,{EFFECT_NOTES:()=>c,PARAM_NOTES:()=>L});var h={"line-boil.amount":"How far a line can wander, in pixels; 3 is a gentle wiggle.","line-boil.fps":"How many new drawings play each second; 8 to 12 looks hand-animated.","image-flight.image":"Find this image inside the button\u2019s closest data-kui-flight-source wrapper, without moving the original.","image-flight.destination":"Fly toward the first page element matching this selector, while the app owns basket state.","image-flight.lift":"How far the flight lifts above its straight path, in absolute length units such as pixels.","number-tokens.attribute":"Read the app-formatted string from this attribute and animate matching characters when it changes.","curtain.controls":"Selector for the element whose state changes; defaults to aria-controls, as view-swap does.","curtain.attribute":"Attribute to change only after the colour panel fully covers.","curtain.value":"Destination value, or next to advance through values; omit to toggle attribute presence.","curtain.values":"Quoted space-separated destination order, shared with view-swap.","curtain.cover":"Shape bringing the colour in, including a shuffled grid with pixels.","curtain.reveal":"Shape removing the colour after commit, including pixels.","curtain.color":"Fallback panel colour; defaults to var(--accent).","curtain.colors":"Quoted space-separated value=colour pairs; colours must contain no whitespace.","curtain.origin":"Use click for an iris centred on the pointer; keyboard activation uses centre.","curtain.scope":"Keep the curtain inside the controlled element, following its rounded corners.","curtain.duration":"Duration of each cover and reveal phase; zero commits synchronously.","feedback-wobble.y":"Vertical displacement on the first wobble; negative values reverse its vertical direction.","feedback-wobble.direction":"Use pointer entry to choose the wobble direction.","feedback-burst.pieces":"Create up to 96 decorative strips and dots instead of the five gradient particles.","media-mask.direction":"Direction the soft reveal edge travels: right by default, or left.","media-mask.edges":"Fade both horizontal scroll edges by this width and remove each fade at its matching end.","media-wipe.start-inset":"Set the horizontal inset at the start of curtain-reveal.","media-wipe.start-size":"Open curtain-reveal from a centred crop of this size before scaling.","ambient-float.duration":"How long one full up-and-down drift takes, repeating forever.","ambient-float.distance":"How far the element drifts up and down.","ambient-gradient.duration":"How long one full colour drift takes, repeating forever.","ambient-gradient.from":{why:"The first colour of the gradient.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-gradient.to":{why:"The second colour of the gradient.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-gradient-ring.duration":"How long the colours take to travel once around the edge.","ambient-gradient-ring.from":{why:"The first colour of the glowing edge.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-gradient-ring.to":{why:"The second colour of the glowing edge.",whenOmitted:"Uses the effect\u2019s built-in colours."},"ambient-orbit.duration":"How long one full turn takes, repeating forever.","ambient-orbit.angle":"How far it turns each cycle; 360deg is one full circle.","ambient-pulse.duration":"How long one swell-and-shrink beat takes, repeating forever.","ambient-pulse.scale":"How big it swells at the peak; 1.15 is 15% larger.","ambient-tint.duration":"How long one full drift of the pattern takes, repeating forever.","ambient-tint.from":{why:"The colour of the pattern or glow.",whenOmitted:"Uses the effect\u2019s built-in colour, or the text colour."},"background-media.src":{why:"The picture or video file to fill the background with.",required:!0},"background-media.poster":{why:"A still picture shown while the video loads, so the background is never blank.",whenOmitted:"The background stays empty until the first video frame arrives."},"background-media.fit":"Cover crops the media to fill the box; contain shows all of it.","background-media.focus":"Which part of the picture stays visible when it gets cropped.","background-media.overlay":{why:"A colour laid over the media, so text on top stays readable.",whenOmitted:"No overlay; the media shows at full strength."},"background-media.overlay-opacity":"How strongly the overlay colour covers the media.","background-media.autoplay":{why:"When a video plays: only while on screen, always, or never."},"background-media.rate":"Video speed; 1 is normal, 0.5 is half speed, up to 4.","background-media.loop":"Whether the video starts over when it ends.","glass.blur":"How much the content behind the panel is blurred.","glass.saturate":"How vivid the colours behind the panel look; 1 leaves them unchanged.","glass.opacity":"How strongly the panel\u2019s tint shows over the blurred background.","glass.tint":{why:"The colour of the frosted glass itself.",whenOmitted:"White-ish glass that follows the page\u2019s colour scheme."},"glass.rim":{why:"The colour of the thin edge line, which also colours the top highlight.",whenOmitted:"A faint white edge."},"glass.rim-width":"How thick the thin edge line is.","glass.sheen":"How bright the soft highlight across the top is; 0 removes it.","glass.radius":{why:"How rounded the corners are; a very large value makes a pill.",whenOmitted:"Rounded corners of 16px, unless the page sets its own."},"media-blur-up.distance":"How far the image rises into place as it sharpens.","media-blur-up.blur":"How blurry the image starts before it sharpens.","media-ken-burns.distance":"How far the image pans while it zooms, right and a little up; negative pans the other way.","media-ken-burns.scale":"How far the image zooms; 1.12 is 12% bigger at the zoomed-in end.","media-lightbox.scale":"The size it starts at before growing to full size.","media-parallax-frame.distance":"How far the image shifts as the page scrolls.","rotate-static.angle":{why:"How far to tilt the element, held still.",whenOmitted:"No tilt; the element keeps its own rotation."},"slat-assemble.slats":"How many strips the picture is cut into, from 2 to 24.","slat-assemble.axis":"Cut the picture into vertical or horizontal strips.","slat-assemble.angle":{why:"Cut the strips at any angle instead; 0deg is vertical, 90deg is horizontal.",whenOmitted:"Follows the axis setting."},"slat-assemble.from":{why:"Which strips land first: alternating ends, start, end, outside-in, or scattered."},"slat-assemble.fold":{why:"Strips flip in like hinged panels instead of sliding in.",whenOmitted:"Off: strips slide in."},"slat-assemble.duration":"How long each strip takes to land, not the whole run.","view-morph.name":{why:"The shared name that pairs this element with its twin on the other view.",whenOmitted:"Uses the element\u2019s own id, so it needs one."},"view-swap.controls":{why:"Which element this control opens and closes, by selector like #panel.",whenOmitted:"Uses the element named by the control\u2019s aria-controls."},"view-swap.attribute":{why:"The marker added or removed on that element each time the control is clicked.",whenOmitted:"Uses data-open."},"view-swap.value":"Set this attribute value instead of toggling presence; repeated selection does nothing.","view-swap.values":"Quoted, space-separated values in travel order, such as home activity more; value must occur in the list if supplied.","view-swap.type":{why:"Names the transition motion to run, like kui-page-slide; a browser without that feature cross-fades.",whenOmitted:"The browser\u2019s default cross-fade, or an instant swap where view transitions are missing."}};var N=["desaturate","parallax","parallax-rotate","parallax-scale","progress","progress-stroke","scroll-fade","skew"],W=Object.fromEntries(N.flatMap(e=>[[`${e}.duration`,"Scrolling sets the pace; this counts only next to delay, or as a clock where scroll-linking isn't supported."],[`${e}.delay`,"Not a clock wait: it starts the motion later in the scroll range, in proportion to duration."],[`${e}.stagger`,{why:"Starts each item a little later in the scroll range, so a group moves one after another.",whenOmitted:"Every item moves together, unless a parent sets a stagger."}]])),l={...W,"desaturate.from":"How grey the element is at the start of the scroll range.","desaturate.to":"How grey the element is at the end of the scroll range.","feedback-burst.scale":"How much the element swells at the peak of the pop.","feedback-burst.distance":"How far the confetti flies, as a size or a share of the element.","feedback-burst.fan":"How wide the confetti spreads sideways; 0 is a narrow fountain.","feedback-burst.size":"How big each confetti speck is.","feedback-burst.spill":"How far past the element the confetti is allowed to show.","feedback-burst.color1":{why:"Colour of the first confetti speck.",whenOmitted:"The page's own --kui-c1 if set, else a pink-red."},"feedback-burst.color2":{why:"Colour of the second confetti speck.",whenOmitted:"The page's own --kui-c2 if set, else amber."},"feedback-burst.color3":{why:"Colour of the third confetti speck.",whenOmitted:"The page's own --kui-c3 if set, else green."},"feedback-burst.color4":{why:"Colour of the fourth confetti speck.",whenOmitted:"The page's own --kui-c4 if set, else blue."},"feedback-burst.color5":{why:"Colour of the fifth confetti speck.",whenOmitted:"The page's own --kui-c5 if set, else purple."},"feedback-confirm.duration":"How long the confirmation takes in total, fade in, hold and fade out.","feedback-dot-pulse.duration":"How long one full pulse of the dots takes, repeating forever.","feedback-dot-pulse.dotSize":"How big each of the three dots is.","feedback-heart-burst.scale":"How much the heart swells at the peak of the pop.","feedback-pop.scale":"How much the element swells at the peak of the pop.","feedback-progress-track.duration":"How long the bar takes to sweep across once, repeating forever.","feedback-pull.distance":"How far the element is pulled down before it springs back.","feedback-ripple.extent":"How many times larger the ripple grows than the element.","feedback-ripple.color":{why:"Colour of the ripple disc.",whenOmitted:"Uses the element's own text colour."},"feedback-ripple.strength":"How solid the ripple looks at its brightest, from 0 to 1.","feedback-ripple.startScale":"How big the ripple begins, as a share of the element.","feedback-shimmer.duration":"How long one sweep of light takes, repeating forever.","feedback-spin.duration":"How long one full turn takes, repeating forever.","feedback-toast.distance":"How far the toast slides as it enters or leaves.","flip-3d.angle":"How far turned away the element starts, before it flips flat.","flip-3d.perspective":"How strong the 3D depth looks; smaller is more dramatic.","parallax.distance":"How far the element drifts against the scroll.","parallax-rotate.angle":"How far the element has turned by the end of the scroll range.","parallax-rotate.from":"How far turned the element is at the start of the scroll range.","parallax-scale.scale":"How big the element is at the end of the scroll range.","parallax-scale.from":"How big the element is at the start of the scroll range.","progress-stroke.length":{why:"The total length of the line being drawn, so it draws exactly to the end.",whenOmitted:"Assumes a path length of 100."},"reveal.distance":"How far the element travels while it appears.","reveal.opacity":"How see-through the element is when it starts; 0 is invisible.","reveal-blur.distance":"How far the element travels while it appears.","reveal-blur.opacity":"How see-through the element is when it starts; 0 is invisible.","reveal-blur.blur":"How blurry the element is when it starts.","roll.distance":"How far the element travels while it rolls in.","roll.angle":"How far turned the element starts before it rolls upright.","scale-move.distance":"How far the element travels while it grows in.","scale-move.scale":"How small the element starts before it grows to full size.","scroll-fade.opacity":"How see-through the element is at the start of the scroll range."};function r(e,t){return Object.fromEntries(e.map(o=>[o,t(o)]))}var S=["hamburger-to-x","play-to-pause","video-scrub","label-float","strength-meter","toggle-morph","checkbox-draw","radio-fill","step-progress","group-dim","group-expand"];function d(e){return[`${e} works on its own children, so target: doesn't apply here.`,"If you add target:, the library warns and ignores it. The effect stays on the box you put data-kui on."]}var E=["fade-out-left","fade-out-right","fade-out-up","fade-out-down","slide-out-left","slide-out-right","slide-out-up","slide-out-down"],C=["wipe-left","wipe-right"],A=["wipe-up","wipe-down"],U=["cursor-follow","cursor-lag","cursor-label","cursor-invert"];function z(e){let t=e.slice(e.lastIndexOf("-")+1);return[`The direction in the name is where it heads. ${e} moves ${t} as it leaves.`]}function P(e){let t=e.endsWith("left");return[`${e} reveals the box starting from its ${t?"left":"right"} edge, sweeping ${t?"right":"left"}.`]}function j(e){let t=e.endsWith("up");return[`${e} reveals the box starting from its ${t?"bottom":"top"} edge, sweeping ${t?"up":"down"}.`]}var _={"cursor-follow":"The dot follows the pointer closely.","cursor-lag":"The dot trails a little behind the pointer on purpose.","cursor-label":"The dot is a small pill of text. Set the words with label: (the default is View).","cursor-invert":"The dot flips the colours of whatever it passes over."};function R(e){return[`${e} adds a small dot to the page that follows the pointer. The box you put data-kui on doesn't move.`,_[e],"The dot only shows while the pointer is over the box, or when the box has keyboard focus. It is skipped on touch screens."]}var c={"line-boil":["Makes the lines of a still drawing wiggle a few times a second, like hand-drawn animation. It works best on bold line art and flat colour.","It uses the filter property, so it replaces any filter on the same box. It pauses off screen and is skipped under reduced motion."],"image-flight":["Put this on the trigger button inside data-kui-flight-source; the app owns purchases and basket state.","image: searches the closest source wrapper and destination: searches the page; target: would relocate the effect."],"number-formatting":["The app writes the formatted string to data-value; matching characters keep their identity without rolling digits."],"text-path":["Put text-path on an SVG textPath to drive startOffset on scroll or a native SVG timer."],"carousel-loop":["Mixed-width slides loop horizontally; give each direct child a width in CSS.","A short row stays a static, locally scrollable strip until it can cover the viewport while recycling.","shape:line uses constant yaw with rise and depth per measured stride and fades before recycling."],"drop-open":["Parent data-open, open or popover-open opens its direct children."],curtain:["Covers with a solid colour, commits one attribute change, then reveals. Cover and reveal shapes are independent.","Controls of the same target share one inert panel. Latest request wins; hidden tabs and reduced motion commit immediately."],"flip-card":["flip-card turns its first two child elements into the front and back faces, and flips between them. No special classes needed.","Already using kui-face-front / kui-face-back classes? Those still work, and they win over the first-two-children rule.","A button with aria-pressed directly inside the card becomes the flip control. With no button, the card adds one.",...d("flip-card")],...r(S,e=>d(e)),...r(E,e=>z(e)),...r(C,e=>P(e)),...r(A,e=>j(e)),...r(U,e=>R(e)),"cursor-spotlight":["cursor-spotlight lights up the box with a soft glow that follows the pointer. No extra dot is added.","The box itself stays where it is. Only the glow moves, and that is normal.","The glow only shows while the pointer is over the box, or when the box has keyboard focus."],carousel:["target: names the slides and the dots together, like target:'.slide, .dot'. Any value with a comma or a space needs quotes.","next: and prev: are the arrow buttons. jump: is the row of dots, and each dot jumps to the slide in the same position.","Past the last slide it wraps back to the first. With no next:, prev: or jump:, clicking the carousel moves it forward."],"horizontal-scroll":["target: names the strip that slides sideways. The outer box stays put while you scroll down.","Only the first match is used, so point target: at one strip.","Without a target:, the box with data-kui is the strip, and it just slides sideways as you scroll."]};var w={"cursor-trail.images":"Which source images inside the host supply the decorative trail.","cursor-trail.spacing":"Distance between successive photographs along the pointer path.","group-expand.grow":"How many shares of the row the hovered or focused card takes, compared with each neighbour.","cursor-follow.over":"Which descendants supply the hovered shape and content.","cursor-follow.match":"Keep the dot size, fit the target box, or match its text height.","cursor-follow.snap":"Follow the pointer or spring to the hovered target centre.","cursor-follow.dot-class":"Extra style classes on this follower, for size, paint or rich content.","cursor-lag.over":"Which descendants supply the hovered shape and content.","cursor-lag.match":"Keep the dot size, fit the target box, or match its text height.","cursor-lag.snap":"Follow the pointer or spring to the hovered target centre.","cursor-lag.dot-class":"Extra style classes on this follower, for size, paint or rich content.","cursor-label.over":"Which descendants supply the hovered shape and content.","cursor-label.match":"Keep the dot size, fit the target box, or match its text height.","cursor-label.snap":"Follow the pointer or spring to the hovered target centre.","cursor-label.dot-class":"Extra style classes on this follower, for size, paint or rich content.","cursor-invert.over":"Which descendants supply the hovered shape and content.","cursor-invert.match":"Keep the dot size, fit the target box, or match its text height.","cursor-invert.snap":"Follow the pointer or spring to the hovered target centre.","cursor-invert.dot-class":"Extra style classes on this follower, for size, paint or rich content.","pop.press":"Scale while pressed, including during hover; release returns to the hover or focus scale.","cursor-spotlight.gradient":"A soft radial glow or fixed conic sectors at the pointer; --kui-spotlight-colors sets the conic stops.","anchored-preview.distance":"How far the preview travels as it pops in.","anchored-preview.gap":"How much space is left between the preview and what it points at.","anchored-preview.scale":"How small the preview starts before it grows to full size.","anchored-preview.color":{why:"Text colour of the preview.",whenOmitted:"Keeps the surrounding text colour."},"anchored-preview.bg-color":{why:"Background colour of the preview.",whenOmitted:"No background, so a picture or your own styling shows as it is."},"anchored-preview.radius":{why:"How rounded the preview corners are.",whenOmitted:"Square corners."},"anchored-preview.place":{why:"Which side the preview sits on, or auto to flip to the other side when there is no room."},"anchored-preview.tease":{why:"Show the preview once by itself on arrival, so people know it is there.",whenOmitted:"Off: the preview only shows on hover or focus."},"anchored-preview.target":{why:"Which child is the preview, when it is not marked with data-kui-preview.",whenOmitted:"Uses the child marked data-kui-preview."},"beam-border.duration":"How long one full lap of the light around the border takes.","beam-border.delay":"How long the pointer waits before the light starts circling.","beam-border.color":{why:"Colour of the travelling light.",whenOmitted:"A four-colour rainbow."},"beam-border.outset":{why:"Pushes the ring outward, to sit over a border the element already has.",whenOmitted:"The ring sits just inside any existing border."},"beam-border.arc":"How much of the ring is lit: a short dash or a nearly full ring.","beam-border.softness":"How gradually the light fades in at its leading edge.","beam-border-auto.duration":"How long one full lap of the light around the border takes.","beam-border-auto.color":{why:"Colour of the travelling light.",whenOmitted:"A four-colour rainbow."},"beam-border-auto.outset":{why:"Pushes the ring outward, to sit over a border the element already has.",whenOmitted:"The ring sits just inside any existing border."},"beam-border-auto.arc":"How much of the ring is lit: a short dash or a nearly full ring.","beam-border-auto.softness":"How gradually the light fades in at its leading edge.","border-draw.color":{why:"Colour of the border that draws itself.",whenOmitted:"Uses the page accent colour."},"border-draw.width":"How thick the drawn border is.","border-draw.outset":{why:"Pushes the drawn border outward, to sit over a border the element already has.",whenOmitted:"0px: the line sits at the element edge."},"border-glow.color":{why:"Colour of the glowing outline.",whenOmitted:"Uses the page accent colour."},"cursor-follow.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-follow.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-follow.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-follow.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"cursor-invert.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-invert.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-invert.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-invert.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"cursor-label.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-label.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-label.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-label.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"cursor-lag.stiffness":"Higher snaps the dot to the pointer faster; lower feels looser.","cursor-lag.damping":"Higher stops the dot wobbling sooner; lower lets it overshoot.","cursor-lag.mass":"Higher makes the dot feel heavier and slower to start and stop.","cursor-lag.label":{why:"Text shown inside the dot that follows the pointer.",whenOmitted:"The dot has no text."},"group-dim.delay":"How long the pointer rests before the others dim, so passing over does not flicker.","group-dim.opacity":"How faded the other items get; lower is dimmer.","icon-spin.duration":"How long one full turn of the icon takes.","label-swap.distance":{why:"How far each label slides as it swaps; 100% is a full label height."},"label-swap.stagger":"The pause between rolling letters; zero moves each whole label.","lift.distance":"How far the element rises on hover.","lift-shadow.distance":"How far the element rises on hover.","pop.scale":"How much bigger the element grows on hover; 1 is no change.","press.delay":"How long to hold before the press shows.","press.scale":"How small the element shrinks while pressed; 1 is no change.","press.depth":"How far the shadow sinks in while pressed, to look pushed down.","press.color":{why:"Colour of the shadow that shows while pressed.",whenOmitted:"A soft dark shadow."},"proximity-glow.color":{why:"Colour of the glow on the edge nearest the pointer.",whenOmitted:"Uses the page accent colour."},"proximity-glow.radius":"How far from the pointer the glow reaches before it fades out.","proximity-glow.width":"How thick the glowing edge line is.","proximity-glow.outset":{why:"Pushes the glowing edge outward, to sit over a border the element already has.",whenOmitted:"0px: the line sits at the element edge."},"search-expand.collapsed":"How wide the search box is while resting.","search-expand.width":"How wide the search box grows to when opened.","shine-sweep.color":{why:"Colour of the shiny band that sweeps across.",whenOmitted:"A soft translucent white."},"shine-sweep.angle":"The tilt of the shiny band as it crosses.","shine-sweep.width":"How wide the shiny band is, as a share of the element.","tilt-3d.maxAngle":"The most it tilts, in degrees, with the pointer at its edge; mouse or trackpad only.","tilt-3d.perspective":"How strong the 3D depth looks; a smaller distance looks more dramatic.","tilt-parallax.strength":'Pixels a data-depth="1" layer shifts with the pointer at the edge; other depths scale it.',"underline-center.color":{why:"Colour of the underline.",whenOmitted:"Uses the text colour."},"underline-slide.color":{why:"Colour of the underline.",whenOmitted:"Uses the text colour."}};var p={"hover-intent.duration":"How long the hint takes to fade in once it shows.","hover-intent.delay":"How long the pointer must rest first, so a mouse just passing over doesn't pop the hint.","hover-intent.ease":"The speed curve of the hint fading in.","hover-intent.distance":"How far the hint rises as it appears.","hover-intent.color":"Text colour of the hint card.","hover-intent.bg-color":"Background colour of the hint card.","hover-intent.radius":"How rounded the hint card corners are.","hover-intent.place":{why:"Where the hint sits: above, below, or flip below when there is no room above."},"hover-intent.tease":{why:"Show the hint once by itself on arrival, so people know it is there.",whenOmitted:"Off: the hint only shows on hover or focus."},"hover-intent.target":{why:"Which child is the hint, when it is not marked with data-kui-hint.",whenOmitted:"Uses the child marked data-kui-hint."}};var u={"data-kui.on":{why:"What starts it: scrolling into view, a hover, a click, or any event name.",whenOmitted:"Each effect picks: most start in view, hover and drag ones are ready on load."},"data-kui.actions":{why:"What to do each time it scrolls in, out, back in and back out.",whenOmitted:"It plays on the way in and nothing else."},"data-kui.timeline":{why:"Choose time, view or scroll, optionally followed by an axis and a CSS timeline name inside quotes.",whenOmitted:"It plays over time, at its own speed."},"data-kui.threshold":{why:"How much of the element must be in view before it starts.",whenOmitted:"It starts as soon as any part of it shows."},"data-kui.cascade":{why:"Extra wait for each child, so they arrive one after another.",whenOmitted:"The children all start together."},"data-kui.spread":{why:"Total time for all children to start, however many there are.",whenOmitted:"The children all start together, unless cascade sets a step."},"data-kui.order":{why:"Which child goes first: start, end, center, edges, random or a position.",whenOmitted:"The first child goes first."},"data-kui.cols":{why:"How many columns the children sit in, so order can mean a cell in a grid.",whenOmitted:"The children are treated as one line, in page order."},"data-kui.along":{why:"Keep a grid stagger to one direction: across (x) or down (y).",whenOmitted:"The wave spreads both ways."},"data-kui.rm":{why:"What to do for visitors who ask for less motion: shorten, fade, or skip it.",whenOmitted:"The effects choose, and the strictest choice wins."},"data-kui.func":{why:"The name of a page function to call when the effects finish.",whenOmitted:"Nothing is called."},"data-kui.at":{why:"Start this step relative to the one before: with it, after it, or a time off.",whenOmitted:"It starts at the same moment as the other steps."},"data-kui.above":{why:"Only run this step when the screen is at least this wide.",whenOmitted:"It runs at every screen width."},"data-kui.below":{why:"Only run this step when the screen is narrower than this.",whenOmitted:"It runs at every screen width."},"data-kui.wide":{why:"Only run this step when its container is at least this wide.",whenOmitted:"It runs at every container width."},"data-kui.narrow":{why:"Only run this step when its container is narrower than this.",whenOmitted:"It runs at every container width."},"data-kui.repeat":{why:"How many times this step plays, or infinite to keep going.",whenOmitted:"It plays once."},"data-kui.yoyo":{why:"Play every other repeat backwards, so it swings back and forth.",whenOmitted:"Every repeat plays forwards."}};var m={"text-path.from":"The starting offset of the lettering along its SVG path.","text-path.to":"The ending offset, using the same unit as from.","text-path.duration":"How long timed lettering takes to travel along its path.","text-path.delay":"How long timed lettering waits before moving.","text-path.ease":"How timed lettering accelerates and slows along its path.","text-path.loop":"Repeats timed lettering continuously when true.","text-path.distance":"How much scrolling moves the lettering from its starting offset to its ending offset.","flip-container.attribute":"Also animate layout changes when this attribute changes on the host or its descendants.","flip-container.nested":"Include the host and descendants with corrected inherited translation and scale.","flip-container.leave":"Fade marked direct children out of flow and emit kui:leave-end so the app can remove each row.","auto-height.axis":"Animate height or width from its displayed size when interrupted.","tween.toggle":"Click to transition between the resting style and a scalar destination.","tween-from.toggle":"Use toggle on tween to transition between two positions.","tween.border-radius":"How round the corners become, with optional waypoint values.","tween-from.border-radius":"How round the corners start before returning to rest.","tween.border-radius-ease":"The curve used only for the corner rounding.","tween-from.border-radius-ease":"The curve used only for the corner rounding.","auto-height.attribute":{why:"Which attribute changing tells the panel it opened or closed, so it can animate its height.",whenOmitted:"Watches data-open."},"bar.from":"How wide the bar starts, growing from its left edge: 0 is empty, 1 is full width.","bar-grow.from":"How short the bar starts, growing up from its base: 0 is flat, 1 is full height.","blur.blur":"How blurry it is at its blurriest, before sharpening or after fading out.","card-toggle.delay":"Wait this long before turning to the back; turning back to the front is never delayed.","card-toggle.perspective":"How deep the 3D looks as the card turns; smaller is more dramatic.","card-toggle.trigger":{why:"What turns the card: a click, a hover, a hover that stays turned, or a hover that flips each time.",whenOmitted:"Click."},"draggable.stiffness":"How firmly it springs toward where it is headed; higher snaps harder.","draggable.damping":"How quickly the spring wobble dies out; lower wobbles longer.","draggable.mass":"How heavy it feels; higher is slower and swingier.","draggable.axis":"Limit dragging to sideways only, up and down only, or both.","draggable.publish":"Publish signed pixel numbers as --kui-drag-x and --kui-drag-y during dragging and settling.","draggable.detents":"Set space-separated pixel stops for the nearest release position on each enabled axis.","draggable.limits":"Use parent or a box selector for uneven elastic edges, measured at pickup and resize.","draggable.lock":"Choose dominant to freeze the stronger axis after the drag threshold, with ties choosing sideways.","draggable.wrap":"One or two positive pixel periods wrap the final offset while the author repeats the content.","draggable.bounds":{why:"The furthest, in pixels, it can be pulled from its start; it gets stiffer near the limit.",whenOmitted:"No limit."},"draggable.return":{why:"Use true to spring home, or edge with limits to return to the nearest valid offset without momentum.",whenOmitted:"Off: it stays where you drop it."},"draggable.inertia":{why:"Keep gliding after you let go, carrying the speed of your flick.",whenOmitted:"Off: it stops exactly where you released it."},"draggable.resistance":"How stiff it feels near the limit, from 0 to 1; lower is harder to stretch. Needs bounds.","draggable.momentum":"How far a flick carries it past the release point. Needs inertia, and does nothing with return.","flip-container.scale":{why:"Also stretch items that change size as they move, instead of only sliding them.",whenOmitted:"Off: items only slide into place."},"grid-to-list.scale":{why:"Also stretch items that change size as they move, instead of only sliding them.",whenOmitted:"On for this name, since every item changes shape between grid and list."},"expand-to-modal.scale":{why:"Also stretch items that change size as they move, instead of only sliding them.",whenOmitted:"On for this name, since the item grows into the modal."},"flip-face.angle":"How far the face turns, in degrees; 180deg is a full flip.","flip-face.perspective":"How deep the 3D looks while turning; smaller is more dramatic.","flip-face.parts":"Use six authored faces to form a cube on cube-rotate.","flip-face.tumble":"Turn a six-faced cube continuously around all three axes.","flip-indicator.follow":{why:"Which element the indicator slides to, such as the active tab; the first match on the page.",whenOmitted:"Nothing to follow, so the indicator stays put.",required:!0},"flip-indicator.attribute":{why:"Which attribute changing tells it the active item has moved.",whenOmitted:"Watches aria-selected."},"icon-toggle.delay":"Wait this long before opening; closing is never delayed.","icon-toggle.parts":"Use dots on hamburger-to-x to stretch four decorative dots into two crossing strokes.","magnetic.stiffness":"How firmly it springs toward the pointer; higher follows tighter.","magnetic.damping":"How quickly the spring wobble dies out; lower wobbles longer.","magnetic.mass":"How heavy it feels; higher is slower and swingier.","magnetic.radius":"How close the pointer must come, in pixels, before it starts drifting toward it.","magnetic.strength":"How much of the pointer distance it follows; higher drifts further.","motion-path.path":{why:"The route it travels, drawn as SVG path data.",whenOmitted:"The name's own route; plain motion-path uses a straight 120 pixel line to the right."},"motion-path.rotate":{why:"Turn to face the way it travels (auto), the reverse way, or hold a fixed angle.",whenOmitted:"Keeps its own orientation."},"motion-path.anchor":{why:"Which point of the element rides the path; use center when it turns to follow.",whenOmitted:"Its top-left corner."},"motion-path.from":"Where along the path it starts, as a percentage of the length.","motion-path.viewbox":"Source coordinate bounds for fitting the path into its parent.","motion-path.to":"Where along the path it stops, as a percentage of the length.","page-reveal.distance":"How far the page slides as it fades in. Only the slide version moves.","page-fade.distance":"Does nothing here: page-fade only fades. Use page-slide to move as well.","path-draw.length":{why:"The total length of the line, so it draws fully; match it to your shape.",whenOmitted:"Assumes 100."},"path-morph.from":{why:"The starting shape, as SVG path data.",whenOmitted:"Uses the path's own shape."},"path-morph.to":{why:"The destination path, or a pipe-separated chain of destination paths with loop enabled.",whenOmitted:"Nothing to morph into: a warning, and the shape never changes.",required:!0},"path-morph.delay":"Wait this long after the pointer arrives before morphing; moving away is never delayed.","path-morph.loop":"Loop through the starting path and each destination, pausing while the tab is hidden.","path-morph.colors":"With loop enabled, blend pipe-separated fill colors with one color for every shape including the start.","pressable.duration":"How long you must hold before it counts as a press.","pressable.held":"Mark the host while a pointer is held and clear it on cancellation.","rotate.angle":"How far it is turned at the start, before straightening up.","scale.scale":"How small it starts before growing to full size; 1 means no size change.","skew.from":"The tilt at the start of the scroll range.","skew.to":"The tilt at the end of the scroll range.","swipeable.axis":"Only count sideways swipes, only up and down swipes, or both.","swipeable.velocity":"How fast a flick must be, in pixels per second, to count as a swipe.","tween.x":"How far it slides sideways by the end; a quoted list like x:'0,100,40' passes through each.","tween.y":"How far it slides up or down by the end; a quoted list like y:'0,-60,0' passes through each.","tween.z":"How far it moves toward or away from you by the end.","tween.rotate":"How far it has turned by the end; a quoted list like rotate:'0,90,45' passes through each.","tween.scale":"How big it is by the end; 2 is double. A quoted list like scale:'1,1.2,1' passes through each.","tween.scale-x":"How wide it is by the end, separate from its height.","tween.scale-y":"How tall it is by the end, separate from its width.","tween.opacity":"How see-through it is by the end; 0 is invisible. A quoted list like opacity:'1,0,1' steps through each.","tween.blur":"How blurry it is by the end.","tween.brightness":"How bright it is by the end; 1 is normal, 0 is black.","tween.saturate":"How vivid the colours are by the end; 0 is grey.","tween.grayscale":"How grey it is by the end; 1 is fully black and white.","tween.contrast":"How strong the light and dark difference is by the end.","tween.hue-rotate":"How far its colours have shifted around the colour wheel by the end.","tween.invert":"How inverted its colours are by the end; 1 is fully flipped.","tween.sepia":"How much of an old-photo brown tone it has by the end.","tween.color":"The text colour it fades to.","tween.background-color":"The background colour it fades to.","tween.translate-ease":{why:"Speed curve for just the sliding part.",whenOmitted:"Uses the main speed curve."},"tween.rotate-ease":{why:"Speed curve for just the turning part.",whenOmitted:"Uses the main speed curve."},"tween.scale-ease":{why:"Speed curve for just the resizing part.",whenOmitted:"Uses the main speed curve."},"tween.opacity-ease":{why:"Speed curve for just the fading part.",whenOmitted:"Uses the main speed curve."},"tween.filter-ease":{why:"Speed curve for just the blur and colour-effect part.",whenOmitted:"Uses the main speed curve."},"tween.color-ease":{why:"Speed curve for just the text colour change.",whenOmitted:"Uses the main speed curve."},"tween.background-ease":{why:"Speed curve for just the background colour change.",whenOmitted:"Uses the main speed curve."},"tween-from.x":"How far sideways it starts, then slides back; a quoted list like x:'80,-20,0' passes through each.","tween-from.y":"How far up or down it starts, then slides back; a quoted list like y:'40,-10,0' passes through each.","tween-from.z":"How far toward or away from you it starts, then settles back.","tween-from.rotate":"How far it is turned at the start, before straightening up.","tween-from.scale":"How big it starts; 0.5 is half size, growing to normal.","tween-from.scale-x":"How wide it starts, separate from its height.","tween-from.scale-y":"How tall it starts, separate from its width.","tween-from.opacity":"How see-through it starts; 0 is invisible, fading in.","tween-from.blur":"How blurry it starts, sharpening to normal.","tween-from.brightness":"How bright it starts; 1 is normal, 0 is black.","tween-from.saturate":"How vivid the colours start; 0 is grey.","tween-from.grayscale":"How grey it starts; 1 is fully black and white.","tween-from.contrast":"How strong the light and dark difference starts.","tween-from.hue-rotate":"How far its colours start shifted around the colour wheel.","tween-from.invert":"How inverted its colours start; 1 is fully flipped.","tween-from.sepia":"How much of an old-photo brown tone it starts with.","tween-from.color":"The text colour it starts as, fading to its normal colour.","tween-from.background-color":"The background colour it starts as, fading to its normal one.","tween-from.translate-ease":{why:"Speed curve for just the sliding part.",whenOmitted:"Uses the main speed curve."},"tween-from.rotate-ease":{why:"Speed curve for just the turning part.",whenOmitted:"Uses the main speed curve."},"tween-from.scale-ease":{why:"Speed curve for just the resizing part.",whenOmitted:"Uses the main speed curve."},"tween-from.opacity-ease":{why:"Speed curve for just the fading part.",whenOmitted:"Uses the main speed curve."},"tween-from.filter-ease":{why:"Speed curve for just the blur and colour-effect part.",whenOmitted:"Uses the main speed curve."},"tween-from.color-ease":{why:"Speed curve for just the text colour change.",whenOmitted:"Uses the main speed curve."},"tween-from.background-ease":{why:"Speed curve for just the background colour change.",whenOmitted:"Uses the main speed curve."}};var g={"back-to-top-fade.offset":"How far down the page you scroll, in pixels, before the button appears.","header-hide-on-scroll.offset":{why:"Smallest scroll movement that counts, so tiny jitters do not hide or show the header."},"header-shrink.offset":"How far down the page you scroll, in pixels, before the header is fully shrunk.","horizontal-track.distance":"How much vertical scrolling it takes to slide the row all the way across.","horizontal-track.travel":{why:"How far the row slides sideways in total, if you do not want it measured.",whenOmitted:"Measured from how much wider the row is than its window."},"horizontal-track.target":{why:"Which element is the sliding row; naming it lets the effect build the pinned window for you.",whenOmitted:"The element itself is the row, and you provide the pinned window."},"horizontal-track.scope":{why:"Whether the row is looked for only inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"horizontal-track.offset-top":{why:"Gap left at the top while the row is held, such as for a fixed header. Only works with target.",whenOmitted:"Uses the page-wide pin gap, or none."},"media-scrub.distance":"How much scrolling it takes to play the frames or video from start to end.","media-scrub.offset-top":{why:"Gap left at the top while the media is held, such as for a fixed header. Only works with spacer.",whenOmitted:"Uses the page-wide pin gap, or none."},"media-scrub.spacer":{why:"Let the effect hold the media in place and reserve the scroll room, so no wrapper is needed.",whenOmitted:"Off: your page positions the media and provides the scroll room."},"media-scrub.frames":{why:"How many numbered images the picture sequence has.",whenOmitted:"Counts as one frame. Ignored when target is set."},"media-scrub.src":{why:"Address of the numbered images, with {i} standing in for the frame number.",whenOmitted:"No images are swapped; a video still plays with scroll."},"media-scrub.target":{why:"Which elements are the frames, shown one at a time as you scroll.",whenOmitted:"Swaps the picture address (src) or scrubs this element if it is a video."},"media-scrub.scope":{why:"Whether the frames are looked for only inside this element or anywhere on the page.",whenOmitted:"Looks anywhere on the page."},"pin.distance":"How much scrolling the element stays held in place for.","pin.offset-top":{why:"Gap left above the held element, such as for a fixed header.",whenOmitted:"Uses the page-wide pin gap, or none."},"pin.spacer":{why:"Add blank scroll room under the element so it can stay held for the full distance.",whenOmitted:"Off: it only holds while its own parent is still on screen."},"radio-fill.scale":"Makes the filled dot inside the radio button bigger or smaller.","range-fill.duration":"No visible effect; the fill timing is fixed in the stylesheet.","range-fill.delay":"No visible effect; the fill timing is fixed in the stylesheet.","range-fill.ease":"No visible effect; the fill timing is fixed in the stylesheet.","scroll-progress.distance":"How much scrolling it takes to go from 0 to 100 percent.","scroll-progress.smooth":"Lets visual progress settle with a spring while step marks follow scrolling directly.","scroll-progress.page":"Tracks the whole document from top to bottom instead of the element distance.","scroll-progress.steps":{why:"Split the scroll into this many numbered steps your styles can react to.",whenOmitted:"0: only a smooth progress value is published, no steps."},"scroll-progress.target":{why:"Which elements get marked as before, active or after as the steps advance. Needs steps.",whenOmitted:"No elements are marked; only the step number is published."},"scroll-progress.scope":{why:"Whether the marked elements are looked for only inside this element or anywhere on the page.",whenOmitted:"Looks anywhere on the page."},"scroll-snap.axis":"Whether scrolling snaps sideways (x) or up and down (y).","scroll-snap.strictness":"Whether it always snaps (mandatory) or only when you stop close to an item.","scroll-snap.align":"Which edge of each item lines up with the scroll area when it snaps.","scroll-snap.target":{why:"Which elements are the snap items; naming them also makes this element the scroll area.",whenOmitted:"Uses its direct children and leaves the scrolling to your page."},"scroll-snap.scope":{why:"Whether the snap items are looked for only inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"scroll-spy.distance":{why:"How much scrolling this section counts as being the current one.",whenOmitted:"One screen height. Ignored when sections is set."},"scroll-spy.target":{why:"Which menu link to highlight; with sections, each link is matched to a section by its #href.",whenOmitted:"No link is highlighted."},"scroll-spy.scope":{why:"Whether the links are looked for only inside this element or anywhere on the page.",whenOmitted:"Anywhere on the page for one section, inside this element when sections is set."},"scroll-spy.sections":{why:"Which elements are the sections, so one setup on a shared parent can track them all.",whenOmitted:"Each section carries its own setup instead."},"scroll-spy.offset-top":{why:"Gap at the top of the screen, such as a fixed header, before a section counts as current.",whenOmitted:"None. Only works when sections is set."},"smooth-scroll.behavior":"Whether jumping to a link glides (smooth) or lands instantly (auto).","strength-meter.duration":"No visible effect; the meter fade timing is fixed in the stylesheet.","strength-meter.delay":"No visible effect; the meter fade timing is fixed in the stylesheet.","strength-meter.ease":"No visible effect; the meter fade timing is fixed in the stylesheet.","submit-flow.duration":"No visible effect; the stage timing is set by load and hold instead.","submit-flow.delay":"No visible effect; the stage timing is set by load and hold instead.","submit-flow.ease":"No visible effect; the stage timing is set by load and hold instead.","submit-flow.load":"How long the spinner shows after a click, before the button shows done.","submit-flow.hold":"How long the done state stays before the button goes back to normal.","toggle-morph.scale":"Makes the whole toggle switch bigger or smaller."};var f={"*.backdrop":"Tint the native dialog or popover backdrop; transparent leaves it clear.","*.backdrop-blur":"Blur the page behind a native dialog or popover.","*.duration":"How long the motion takes from start to finish.","*.delay":"Wait this long after the trigger before starting.","*.ease":"The speed curve: slow start, slow finish, or a bounce.","*.stagger":{why:"Extra wait per item, so a group arrives one after another.",whenOmitted:"Every item starts at once, unless a parent sets a stagger."}};var i={"spatial-ring.shape":"Places cards on the usual ring, an outward vertical helix or a sphere.","spatial-ring.drag-axis":"Lets a drag also tumble a sphere vertically when set to both.","spatial-ring.rise":"The vertical distance between neighboring cards when shape is helix.","spatial-ring.distance":"How much scrolling moves the deck through one full cycle on a scroll timeline.","spatial-ring.speed":"Publishes signed movement speed in pixels per second when true.","spatial-stack.distance":"How much scrolling moves the deck through one full cycle on a scroll timeline.","spatial-stack.speed":"Publishes signed movement speed in pixels per second when true.","spatial-row.copies":"Adds inert image copies to fill a short row when set to auto.","spatial-row.release":"Lets a dragged row coast freely instead of snapping when set to free.","spatial-row.shape":"Places the row flat or along a diagonal depth line.","spatial-row.rise":"The vertical distance per card stride along the line.","spatial-row.depth":"The distance away from the camera per card stride along the line.","spatial-row.yaw":"Turns every line card by the same angle.","spatial-row.perspective":"How close the camera is to the line.","spatial-row.attribute":"Host attribute whose value column moves the line into a bounded column.","spatial-ring.timer":"Publishes how far the current autoplay wait has elapsed, from zero to one, when true.","spatial-stack.timer":"Publishes how far the current autoplay wait has elapsed, from zero to one, when true.","slideshow.enter-delay":"Extra wait before a fade arrives; match duration for out-then-in order. Slide mode does not use it.","compare.position":"Where the divider starts between two images, as a share of the width.","compare.positions":{why:"Where each divider starts when comparing three or more images, as one quoted list.",whenOmitted:"Dividers are spaced evenly."},"compare.axis":"Whether the divider moves left-right or up-down.","compare.autoplay":{why:"Makes the divider sweep back and forth by itself, until someone grabs it.",whenOmitted:"Never: the divider stays put until dragged."},"compare.duration":"How long one sweep of the divider takes, edge to edge. Only used with autoplay.","compare.reverse":"Start the sweep toward the other edge first. Only used with autoplay.","compare.loop":{why:"Keep sweeping back and forth until someone takes the handle. Only used with autoplay.",whenOmitted:"Off: it sweeps once and stops."},"device-frame.kind":"Which device the content is framed in: browser window, phone, tablet or laptop.","device-frame.color":"Colour of the device body around the screen.","device-frame.radius":{why:"How rounded the outer corners of the device are.",whenOmitted:"Each device keeps its own natural corner size."},"device-frame.screen-radius":{why:"How rounded the corners of the screen inside the device are.",whenOmitted:"The screen follows the outer corners, less the bezel, and is always at least a little rounded."},"hotspots.target":{why:"Which elements are the notes, one marker each.",whenOmitted:"Uses the items of the list directly inside it."},"hotspots.marker":"Whether each marker shows its number or is a plain dot.","hotspots.scope":{why:"Whether the notes are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"lightbox.media":"What opens in the viewer: pictures, videos, or a mix of both.","lightbox.target":{why:"Which elements open the viewer when clicked.",whenOmitted:"Uses the links (and pictures) inside it."},"lightbox.scope":{why:"Whether the clickable items are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"lightbox.scale":"How small the picture starts as it grows into the viewer; 1 means no zoom.","lightbox.flight":"Fly a fitted image from its thumbnail and back, with a short decode wait and plain fallback.","lightbox.loop":{why:"Whether the arrows wrap from the last item back to the first.",whenOmitted:"On: it wraps around."},"lightbox.aspect":{why:"Forces the video frame to a wide, tall or square shape.",whenOmitted:"Tall for a YouTube Shorts link, wide for every other video."},"lightbox.caption":"Where the line under each item comes from, or none to hide it.","lightbox.arrows":{why:"Where the previous and next arrows sit: a corner, top or bottom, apart, or on the sides.",whenOmitted:"Bottom right, side by side, clear of the picture."},"lightbox.arrow-gap":{why:"The space between the two arrows when they sit together.",whenOmitted:"Half a line of space."},"scroll-story.target":{why:"Which elements are the pictures or clips that change as you scroll.",whenOmitted:"Uses the children of its first child."},"scroll-story.sections":{why:"Which elements are the text steps you scroll through.",whenOmitted:"Uses the children of its last child."},"scroll-story.offset-top":"How far down the screen a step must reach before it counts as current.","scroll-story.side":"Which side of the screen the pinned pictures sit on.","slideshow.target":{why:"Which elements are the slides.",whenOmitted:"Uses the items of the list directly inside it."},"slideshow.scope":{why:"Whether the slides are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"slideshow.next":{why:"Your own next button, looked for inside first, then on the page. Replaces the built-in controls.",whenOmitted:"Uses the built-in controls instead."},"slideshow.prev":{why:"Your own previous button, looked for inside first, then on the page. Replaces the built-in controls.",whenOmitted:"Uses the built-in controls instead."},"slideshow.jump":{why:"Your own buttons, each jumping to the slide at its position. Replaces the built-in controls.",whenOmitted:"Uses the built-in controls instead."},"slideshow.controls":"Which built-in controls appear: dots, arrows, both, or none. Ignored once next, prev or jump is set.","slideshow.autoplay":{why:"How long each slide shows before moving on by itself; 2s at least.",whenOmitted:"Off. It also stays off with controls:none or your own next, prev or jump buttons."},"slideshow.hover":{why:"Whether resting the mouse on the slideshow pauses autoplay. none keeps it moving.",whenOmitted:"Hovering pauses it. Keyboard focus and the pause button always pause."},"slideshow.transition":"Whether slides cross-fade or slide sideways.","slideshow.swipe":"Whether a left or right swipe changes the slide.","slideshow.mute":{why:"Your own button, inside the slideshow, that mutes and unmutes the video on the current slide.",whenOmitted:"No mute button."},"slow-mo.rate":"How slow motion runs; 0.25 plays at a quarter of normal speed.","slow-mo.controls":"Whether a toggle button is added, or slow motion is just always on.","spatial-ring.grab":"Whether people can drag the ring with a finger or mouse.","spatial-ring.travel":"How many pixels of dragging move the ring by one card.","spatial-ring.target":{why:"Which elements are the cards.",whenOmitted:"Uses its direct children."},"spatial-ring.next":{why:"Your own button that turns the ring to the next card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-ring.prev":{why:"Your own button that turns the ring back a card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-ring.jump":{why:"Your own buttons, each turning the ring to the card at its position; inside first, then the page.",whenOmitted:"No jump buttons."},"spatial-ring.pause":{why:"Your own button that pauses and resumes spin or autoplay, looked for inside first, then the page.",whenOmitted:"No pause button; hovering still pauses."},"spatial-ring.hover":{why:"Whether resting the mouse on the ring pauses spin or autoplay. none keeps it moving.",whenOmitted:"Hovering pauses it. Keyboard focus and the pause button always pause."},"spatial-ring.spin":{why:"Turns the ring slowly all the time; this is the time for one full turn.",whenOmitted:"Off: the ring moves only when asked. A negative time turns it backwards."},"spatial-ring.autoplay":{why:"How long the ring rests on each card before turning to the next; 2s at least.",whenOmitted:"Off. If spin is also set, spin wins."},"spatial-ring.lightbox":{why:"Clicking a card opens all the cards in a full-screen viewer.",whenOmitted:"Off: clicks do nothing special."},"spatial-ring.scope":{why:"Whether the cards are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"spatial-ring.tilt":"How far the camera looks down on the ring; negative looks up from below.","spatial-ring.arc":"How much of a full circle the cards spread over; less makes a curved slice.","spatial-ring.radius":{why:"How wide the ring is; a bigger ring spaces cards further apart.",whenOmitted:"Sized from the card width so neighbours just fit. Shrinks if it would overflow the page."},"spatial-ring.gap":"Breathing room between neighbouring cards when the ring size is worked out for you.","spatial-ring.perspective":"How close the camera is; smaller values make the 3D look more dramatic.","spatial-ring.facing":"Whether cards turn outward with the ring or always face you so text stays readable.","spatial-ring.plane":"Whether the ring turns toward you in depth, or lies flat like a clock face.","spatial-stack.grab":"Whether people can drag the stack with a finger or mouse.","spatial-stack.travel":"How many pixels of dragging move the stack by one card.","spatial-stack.target":{why:"Which elements are the cards.",whenOmitted:"Uses its direct children."},"spatial-stack.next":{why:"Your own button that brings up the next card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-stack.prev":{why:"Your own button that brings back the previous card, looked for inside first, then on the page.",whenOmitted:"No button; use drag, keys or autoplay."},"spatial-stack.jump":{why:"Your own buttons, each bringing up the card at its position; inside first, then the page.",whenOmitted:"No jump buttons."},"spatial-stack.pause":{why:"Your own button that pauses and resumes spin or autoplay, looked for inside first, then the page.",whenOmitted:"No pause button; hovering still pauses."},"spatial-stack.hover":{why:"Whether resting the mouse on the stack pauses spin or autoplay. none keeps it moving.",whenOmitted:"Hovering pauses it. Keyboard focus and the pause button always pause."},"spatial-stack.spin":{why:"Cycles the cards slowly all the time; this is the time for one full pass.",whenOmitted:"Off: the stack moves only when asked. A negative time runs it backwards."},"spatial-stack.autoplay":{why:"How long the front card rests before the next comes up; 2s at least.",whenOmitted:"Off. If spin is also set, spin wins."},"spatial-stack.lightbox":{why:"Clicking a card opens all the cards in a full-screen viewer.",whenOmitted:"Off: clicks do nothing special."},"spatial-stack.scope":{why:"Whether the cards are looked for inside this element or anywhere on the page.",whenOmitted:"Looks only inside this element."},"spatial-stack.shift":"How far each card behind steps sideways; negative steps left.","spatial-stack.rise":"How far each card behind steps up; negative steps down.","spatial-stack.shrink":"How much smaller each card behind gets, per place back.","spatial-stack.blur":"How much blurrier each card behind gets, per place back.","spatial-stack.fade":"How much fainter each card behind gets, per place back.","spatial-stack.depth":"How many cards show behind the front one; the rest wait hidden.","spatial-stack.leave":"Use swipe for a sideways exit that advances one card when dragged either way.","spatial-stack.leave-x":"How far the leaving card moves sideways, multiplied by the swipe direction.","spatial-stack.leave-rotate":"How far the leaving card rotates, multiplied by the swipe direction.","spatial-stack.leave-fade":{why:"Opacity lost over one leaving place; 0 keeps the card opaque until the step ends.",whenOmitted:"A swiped card fades as it goes."},"spatial-stack.rest-rotate":"Alternate resting card angles by stable card index using this angle.","step-progress.duration":"Passed to your slide styles; autoplay also waits this long after someone moves it.","step-progress.delay":"Passed to your slide styles to use as a start wait; the library adds no pause itself.","step-progress.ease":"Passed to your slide styles to use as their speed curve.","step-progress.steps":{why:"The number of steps, for when the elements cannot tell it.",whenOmitted:"Counts the step elements itself."},"step-progress.target":{why:"Which elements are the steps.",whenOmitted:"Uses its direct children."},"step-progress.next":{why:"Your own button that moves to the next step, looked for inside first, then on the page.",whenOmitted:"With no next, prev, jump or pause, a click on it moves on, unless lightbox is on."},"step-progress.prev":{why:"Your own button that moves to the previous step, looked for inside first, then on the page.",whenOmitted:"With no next, prev, jump or pause, a click on it moves on, unless lightbox is on."},"step-progress.jump":{why:"Your own buttons, each moving to the step at its position; inside first, then the page.",whenOmitted:"With no next, prev, jump or pause, a click on it moves on, unless lightbox is on."},"step-progress.peek":"How far, as a share of a slide, your slide styles push neighbours sideways.","step-progress.rest":"How large your slide styles draw the non-current slides, where 1 is full size.","step-progress.main":"How large your slide styles draw the current slide, where 1 is full size.","step-progress.autoplay":{why:"How long each step shows before moving on by itself; 2s at least.",whenOmitted:"Off: steps change only when someone asks."},"step-progress.pause":{why:"Your own button that pauses and resumes autoplay, looked for inside first, then on the page.",whenOmitted:"No pause button; hovering still pauses."},"step-progress.hover":{why:"Whether resting the mouse on the deck pauses autoplay. none keeps it moving.",whenOmitted:"Hovering pauses it. Keyboard focus and the pause button always pause."},"step-progress.lightbox":{why:"Clicking a slide opens all the slides in a full-screen viewer.",whenOmitted:"Off: clicking a slide moves to the next one."},"step-progress.scope":{why:"Whether the steps named by target are looked for inside this element or anywhere on the page.",whenOmitted:"Looks anywhere on the page, except under the carousel name, which looks inside."}},I=new Set(["travel","shift","rise","shrink","blur","fade","depth","leave","leave-x","leave-rotate","leave-fade","rest-rotate"]),y=Object.fromEntries(Object.entries(i).filter(([e])=>{let[t,o]=e.split(".");return t==="spatial-stack"&&!I.has(o)}).map(([e,t])=>[e.replace("spatial-stack.","spatial-row."),typeof t=="string"?t.replace("stack","row"):{why:t.why.replace("stack","row"),whenOmitted:t.whenOmitted.replace("stack","row")}]));var b={"split-text.hold":"Keep the split and light each piece using inherited scroll progress until teardown.","text-gradient-sweep.fill":"Fill dim glyphs with a hard edge from left to right, using the existing sweep animation.","fade-open.enter-delay":"Extra wait only when opening; match the outgoing duration for out-then-in order.","fade-open.shape":"Reveal through a circle or rounded inset in both directions; none keeps the ordinary fade.","fade-open.origin":"Circle centre: center, top, bottom, left, right, or a quoted corner such as top left.","fade-open.radius":"Corner radius throughout an inset reveal.","count.from":"The number the counter starts at.","count.to":"The number the counter ends on.","count.decimals":"How many digits to show after the decimal point; ignored by compact, which shows at most one.","count.format":{why:"How the number is written: plain, as money, as a percent, or shortened like 1.2K.",whenOmitted:"Plain number. Percent expects a fraction, so 0.82 shows 82%."},"count.currency":{why:"The three-letter currency code used when the format is currency.",whenOmitted:"US dollars."},"count-odometer.from":"The number the rolling digits start at; whole numbers from 0 up, so -5 counts as 0.","count-odometer.to":"The number the rolling digits land on; whole numbers from 0 up, so 2.5 rounds to 3.","count-odometer.attribute":"Watch this host attribute for a live number instead of playing a fixed count.","drop-open.distance":"How far the element drops down into place as it opens.","drop-open.radius":"Distance from the group centre; use distance:0px to fan out from that centre.","drop-open.angle":"Angle of the first item, with -90deg pointing up. Existing cascade: assigns each child its index and stagger.","drop-open.step":"Angle between items: 60deg gives six items a ring; a smaller step gives an arc.","meter-bar.from":{why:"How full the bar is when it starts, from 0 (empty) to 1 (full).",whenOmitted:"Starts empty and grows to its full width."},"pop-open.scale":"How small the element starts, where 1 is full size.","scale-open.scale":"How small the element starts, where 1 is full size.","scramble-text.step":{why:"How long each scramble flicker lasts; ignored when a total duration is given.",whenOmitted:"40ms per flicker, so longer text takes longer to resolve."},"scramble-text.revealEvery":"How many flickers pass before the next letter locks in.","scramble-text.charset":"Which characters the unsolved letters flicker through.","slide-open-down.distance":"How far the element slides in from above.","slide-open-up.distance":"How far the element slides in from below.","split-text.stagger":"Wait between each piece, so letters or words arrive one by one.","split-text.unit":"What the text is cut into: single letters, whole words, or lines.","split-text.direction":{why:"How pieces arrive: fade, up/down, a mask wipe, or rise-mask sliding up 120% behind a still clip.",whenOmitted:"Uses the preset's direction; --kui-mask-bleed adds room for letters above and below a mask's edge."},"split-text-motion.stagger":"Offset between neighbouring letters, which shapes the wave or jitter.","split-text-motion.motion":"The style of letter movement: a smooth wave or a nervous jitter.","text-3d-extrude.angle":"How far the text is turned at the start before it straightens; negative turns it anticlockwise.","text-3d-extrude.distance":"How far below its place the text starts before it rises in.","text-gradient-sweep.color":{why:"The colour of the glowing band that sweeps across the text.",whenOmitted:"Uses the text's own colour."},"text-marquee.duration":"How long one full trip of the scrolling text takes; longer is slower.","text-shimmer.duration":"How long one shimmer pass takes before the next one starts.","text-sweep.color":{why:"The colour of the highlight bar or underline.",whenOmitted:"Uses the text's own colour; the highlight preset uses gold."},"text-sweep.position":"Place the underline vertically, with 50% drawing a strike through the text.","typewriter.step":"How long each typed letter takes; ignored when a total duration is given.","typewriter.words":"The words to type and fully delete in turn, separated by |.","typewriter.interval":"How long each whole word stays before it deletes.","typewriter.erase":"Use scatter to drift and fade typed letters away before the next word.","typewriter.rhythm":"Use natural for modestly uneven typing with longer pauses after punctuation.","typewriter.loop":{why:"Delete the text and type it again, over and over.",whenOmitted:"Off: it types once and stops."},"var-axis.axis":{why:"The four-character name of the font setting to animate, letters or digits, case exact: wght, GRAD.",whenOmitted:"Animates weight (wght); a font without that setting does not move."},"var-axis.from":"The value of the font setting at the start.","var-axis.to":"The value of the font setting at the end.","var-slant.from":"How far the letters lean at the start.","var-slant.to":"How far the letters lean at the end.","var-weight.from":"How bold the text is at the start, from thin (100) up.","var-weight.to":"How bold the text is at the end, up to extra heavy (900).","var-width.from":"How wide the letters are at the start; 100% is normal.","var-width.to":"How wide the letters are at the end; 100% is normal.","word-cycler.words":{why:'The words to cycle through, separated by | and quoted, like "fast|simple|bold".',required:!0},"word-cycler.interval":"How long each word stays before the next one swaps in.","word-cycler.swap":"Whether words fade or scramble into the next word.","word-cycler.from":"Where letters start scrambling and returning: start, end, centre or edges.","word-cycler.step":"The pause between scramble steps."};var L={...f,...l,...h,...w,...p,...b,...g,...m,...i,...y,...u};return T(D);})();
|
|
@@ -618,7 +618,7 @@ export declare const SHADER_PARAMETERS: {
|
|
|
618
618
|
mode: {
|
|
619
619
|
type: "keyword";
|
|
620
620
|
default: string;
|
|
621
|
-
keywords: ("
|
|
621
|
+
keywords: ("gradient" | "morph" | "displace" | "fluid" | "liquid" | "particles" | "logo")[];
|
|
622
622
|
cssProperty: string;
|
|
623
623
|
};
|
|
624
624
|
strength: {
|
|
@@ -91,7 +91,7 @@ export declare function additiveChannels(channels: readonly Channel[]): boolean;
|
|
|
91
91
|
*
|
|
92
92
|
* @returns Indices of the claims to compile additively, or `undefined` when the rescue does not
|
|
93
93
|
* apply and the caller should refuse the list.
|
|
94
|
-
* @complexity O(n * c) time in claims and their channels; O(n + c) space.
|
|
94
|
+
* @complexity O(n^2 * c^2) time in claims and their channels; O(n + c) space.
|
|
95
95
|
* @overallScore 100
|
|
96
96
|
*/
|
|
97
97
|
export declare function additiveResolution(claims: ChannelClaim[], conflicts: Conflict[]): Set<number> | undefined;
|
|
@@ -39,6 +39,15 @@ export declare function cssEasingValue(easing: string): string;
|
|
|
39
39
|
* @overallScore 100
|
|
40
40
|
*/
|
|
41
41
|
export declare function waapiEasingValue(easing: string, el: Element, warn: (message: string) => void): string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Read `--kui-ease-<name>` as the cascade would see it on this element.
|
|
44
|
+
*
|
|
45
|
+
* @returns The literal value, or `''` when nothing defines the property — which is also what an
|
|
46
|
+
* element in a document with no view returns, and both mean the same thing to the caller.
|
|
47
|
+
* @complexity O(1) time and space, but forces a style recalculation.
|
|
48
|
+
* @overallScore 100
|
|
49
|
+
*/
|
|
50
|
+
export declare function customEasing(name: string, el: Element): string;
|
|
42
51
|
/**
|
|
43
52
|
* Everything wrong with a `spring(...)` token, named one problem at a time.
|
|
44
53
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Capabilities } from './capabilities.js';
|
|
2
2
|
import type { StyleLedger } from './owned-styles.js';
|
|
3
3
|
import type { ScrollRoot, ScrollScheduler } from './scroll-scheduler.js';
|
|
4
|
+
import type { Timeline } from './types.js';
|
|
4
5
|
/**
|
|
5
6
|
* What a JS-rendered primitive receives.
|
|
6
7
|
*
|
|
@@ -14,6 +15,8 @@ import type { ScrollRoot, ScrollScheduler } from './scroll-scheduler.js';
|
|
|
14
15
|
* string.
|
|
15
16
|
*/
|
|
16
17
|
export interface PrepareContext {
|
|
18
|
+
/** Resolved element-wide timeline; omitted by older embedding contexts means time. */
|
|
19
|
+
timeline?: Timeline;
|
|
17
20
|
doc: Document;
|
|
18
21
|
win: Window;
|
|
19
22
|
/** Shared frame source. One listener per scroll root, one rAF per dirtied frame. */
|
|
@@ -38,6 +41,8 @@ export interface PrepareContext {
|
|
|
38
41
|
reducedMotion: boolean;
|
|
39
42
|
/** Aborted on teardown, so a primitive can pass it straight to `addEventListener`. */
|
|
40
43
|
signal: AbortSignal;
|
|
44
|
+
/** Cancel this host through its animator, suppressing completion when geometry invalidates it. */
|
|
45
|
+
cancel?(): void;
|
|
41
46
|
/**
|
|
42
47
|
* Ledger for this element's inline style.
|
|
43
48
|
*
|
|
@@ -35,6 +35,18 @@ export interface FlipOptions {
|
|
|
35
35
|
easing?: string;
|
|
36
36
|
/** Animate width/height differences as a scale. Off for elements with visible borders. */
|
|
37
37
|
scale?: boolean;
|
|
38
|
+
/** Include the container and descendants, correcting inherited transforms. Opt-in only. */
|
|
39
|
+
nested?: boolean;
|
|
40
|
+
/** A state watcher needs to cache destination geometry before animation writes. */
|
|
41
|
+
attribute?: string;
|
|
42
|
+
/** Refresh the cached layout when it changes with no watched mutation. */
|
|
43
|
+
watchRest?: (refresh: () => void) => Cleanup;
|
|
44
|
+
/** Convert cached boxes and update the measurement batch when its scroll chain changes. */
|
|
45
|
+
rebase?: (before: FlipSnapshot) => FlipSnapshot;
|
|
46
|
+
/** Opt-in departure hooks; ordinary FLIP never reads animated styles. */
|
|
47
|
+
interrupt?: (before: FlipSnapshot) => FlipSnapshot;
|
|
48
|
+
prepareChange?: () => void;
|
|
49
|
+
exclude?: (el: Element) => boolean;
|
|
38
50
|
}
|
|
39
51
|
export interface FlipRun {
|
|
40
52
|
/** Elements that actually moved. Unmoved elements are skipped, not animated to identity. */
|
|
@@ -58,6 +70,17 @@ export interface FlipEngine {
|
|
|
58
70
|
* @overallScore 100
|
|
59
71
|
*/
|
|
60
72
|
export declare function domMeasure(el: Element): Box;
|
|
73
|
+
/**
|
|
74
|
+
* Measure inside a frame rather than the viewport.
|
|
75
|
+
*
|
|
76
|
+
* A mutation observer sees only the end state, so "first" is a box cached before the change, and it
|
|
77
|
+
* can be very old. Viewport boxes go stale on every scroll. Boxes in the frame's scrolled-content
|
|
78
|
+
* coordinates do not. `null` keeps viewport boxes, for a host that scrolling does not move.
|
|
79
|
+
*
|
|
80
|
+
* @complexity O(1) time per element; reads geometry and scroll offsets.
|
|
81
|
+
* @overallScore 100
|
|
82
|
+
*/
|
|
83
|
+
export declare function measureWithin(frame: Element | null): (el: Element) => Box;
|
|
61
84
|
/**
|
|
62
85
|
* Create a FLIP engine.
|
|
63
86
|
*
|
|
@@ -88,6 +111,7 @@ export declare function createFlipEngine(deps?: Partial<FlipDeps>): FlipEngine;
|
|
|
88
111
|
export declare function trackFlipRuns(): {
|
|
89
112
|
track(run: FlipRun): void;
|
|
90
113
|
cancelAll(): void;
|
|
114
|
+
active(): boolean;
|
|
91
115
|
};
|
|
92
116
|
/**
|
|
93
117
|
* Watch a container and FLIP its children whenever its child list changes.
|
|
@@ -110,4 +134,4 @@ export declare function observeLayout(container: Element, engine: FlipEngine, op
|
|
|
110
134
|
* @complexity O(1) to install; callback cost is the caller's.
|
|
111
135
|
* @overallScore 100
|
|
112
136
|
*/
|
|
113
|
-
export declare function mutationWatcher(container: Element): (callback: () => void) => Cleanup;
|
|
137
|
+
export declare function mutationWatcher(container: Element, attribute?: string, extra?: string[]): (callback: () => void) => Cleanup;
|
|
@@ -25,6 +25,7 @@ export interface GestureVector {
|
|
|
25
25
|
export type Axis = 'x' | 'y' | 'both';
|
|
26
26
|
export type Direction = 'left' | 'right' | 'up' | 'down';
|
|
27
27
|
export interface GestureHandlers {
|
|
28
|
+
onPress?(held: boolean): void;
|
|
28
29
|
onStart?(sample: Sample): void;
|
|
29
30
|
onMove?(vector: GestureVector, sample: Sample): void;
|
|
30
31
|
onEnd?(vector: GestureVector, sample: Sample): void;
|
|
@@ -35,6 +36,10 @@ export interface GestureOptions {
|
|
|
35
36
|
/** Movement below this many pixels is a tap, not a drag. */
|
|
36
37
|
threshold?: number;
|
|
37
38
|
axis?: Axis;
|
|
39
|
+
/** Freeze the stronger axis at the first threshold-crossing move; ties choose x. */
|
|
40
|
+
lock?: 'dominant';
|
|
41
|
+
/** Opt-in: browser cancellation ends at rest instead of launching release inertia. */
|
|
42
|
+
cancelVelocity?: boolean;
|
|
38
43
|
/** Minimum speed, px/s, for a movement to count as a swipe. */
|
|
39
44
|
swipeVelocity?: number;
|
|
40
45
|
/** Hold duration in ms before `onLongPress`. Zero disables it. */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ImageFlightOptions {
|
|
2
|
+
image: HTMLImageElement;
|
|
3
|
+
parent: HTMLElement;
|
|
4
|
+
from: DOMRect;
|
|
5
|
+
to: DOMRect;
|
|
6
|
+
duration: number;
|
|
7
|
+
delay?: number;
|
|
8
|
+
easing: string;
|
|
9
|
+
frames?: Keyframe[];
|
|
10
|
+
lift?: number;
|
|
11
|
+
zIndex?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function scaledFrames(from: DOMRect, to: DOMRect): Keyframe[];
|
|
14
|
+
export interface ImageFlight {
|
|
15
|
+
finished: Promise<boolean>;
|
|
16
|
+
cancel(): void;
|
|
17
|
+
finish(): void;
|
|
18
|
+
reverse(): boolean;
|
|
19
|
+
}
|
|
20
|
+
/** Bound lazy-image readiness; abort and failed decodes are ordinary fallbacks. */
|
|
21
|
+
export declare function flightImageReady(image: HTMLImageElement, signal: AbortSignal): Promise<boolean>;
|
|
22
|
+
/** A fresh inert image, measured only at the two boundaries; never a subtree snapshot. */
|
|
23
|
+
export declare function flyImage(options: ImageFlightOptions): ImageFlight;
|
|
@@ -3,13 +3,15 @@ import type { CompiledPlan } from './compile.js';
|
|
|
3
3
|
import type { StyleLedger } from './owned-styles.js';
|
|
4
4
|
import type { Reporter } from './reporter.js';
|
|
5
5
|
import type { ScrollRoot, ScrollScheduler } from './scroll-scheduler.js';
|
|
6
|
-
import type { EffectInstance } from './types.js';
|
|
6
|
+
import type { EffectInstance, Timeline } from './types.js';
|
|
7
7
|
/** Everything `JsEffectPreparer.prepare` needs, grouped so the call site reads as one request. */
|
|
8
8
|
export interface PrepareJsEffectsRequest {
|
|
9
|
+
timeline?: Timeline;
|
|
9
10
|
el: Element;
|
|
10
11
|
plan: CompiledPlan;
|
|
11
12
|
signal: AbortSignal;
|
|
12
13
|
ledger: StyleLedger;
|
|
14
|
+
cancel?: () => void;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Wires up an element's JS-rendered effects and hands each one the context it needs to run.
|
|
@@ -38,11 +38,12 @@ export interface StyleLedger {
|
|
|
38
38
|
* Create a ledger over one element's inline style.
|
|
39
39
|
*
|
|
40
40
|
* @param el - Element whose inline style is managed.
|
|
41
|
+
* @param restoreProperty - Optional guard for properties another owner may have restored first.
|
|
41
42
|
* @returns A ledger that can restore the element to its pre-effect inline state.
|
|
42
43
|
* @complexity O(1) per write; O(n) space and O(n) time to restore, in properties written.
|
|
43
44
|
* @overallScore 100
|
|
44
45
|
*/
|
|
45
|
-
export declare function createStyleLedger(el: Element): StyleLedger;
|
|
46
|
+
export declare function createStyleLedger(el: Element, restoreProperty?: (property: string) => boolean): StyleLedger;
|
|
46
47
|
export interface AttributeLedger {
|
|
47
48
|
set(name: string, value: string): void;
|
|
48
49
|
restore(): void;
|
|
@@ -11,7 +11,7 @@ export interface ValidationResult {
|
|
|
11
11
|
* @param spec - The parameter's declared type, default, and target custom property.
|
|
12
12
|
* @returns The accepted value, or the declared default with a reason when rejected. Never throws
|
|
13
13
|
* and never returns an unvalidated string.
|
|
14
|
-
* @complexity O(n) time in value length; O(
|
|
14
|
+
* @complexity O(n) time in value length; O(d) stack space for numeric function nesting depth d.
|
|
15
15
|
* @overallScore 100
|
|
16
16
|
*/
|
|
17
17
|
export declare function validate(raw: string, spec: ParamSpec): ValidationResult;
|
|
@@ -6,7 +6,7 @@ export interface ResolvedEffect {
|
|
|
6
6
|
/**
|
|
7
7
|
* Name → primitive alias table.
|
|
8
8
|
*
|
|
9
|
-
* The catalog's
|
|
9
|
+
* The catalog's 305 names come from 160 primitives; 145 of the names are aliases — the
|
|
10
10
|
* same primitive with different parameter defaults. Presets are therefore data rows, not
|
|
11
11
|
* code, and adding a name in a later release costs a table entry. See docs/catalog.md.
|
|
12
12
|
*
|
|
@@ -332,6 +332,10 @@ export type Cleanup = () => void;
|
|
|
332
332
|
* cancellation — is enforced here rather than re-implemented per renderer.
|
|
333
333
|
*/
|
|
334
334
|
export interface EffectInstance {
|
|
335
|
+
/** Prepares a CSS effect's geometry or parts without adding a separate playhead. */
|
|
336
|
+
readonly setupOnly?: true;
|
|
337
|
+
/** Opt-in finite decoration: a new activation cancels and replaces the current run. */
|
|
338
|
+
readonly replaceOnActivate?: boolean;
|
|
335
339
|
/** Start. Called by the animator once its gate opens, never by `prepare`. */
|
|
336
340
|
activate(): void;
|
|
337
341
|
/**
|
|
@@ -490,9 +494,13 @@ export interface EffectParams {
|
|
|
490
494
|
* exists to prevent. So the primitive is asked, once per spec, instead.
|
|
491
495
|
*
|
|
492
496
|
* Every field is optional, and an absent field means "use the primitive's own declaration". A
|
|
493
|
-
* primitive with no `variantFor` at all
|
|
497
|
+
* primitive with no `variantFor` at all is unaffected.
|
|
494
498
|
*/
|
|
495
499
|
export interface EffectVariant {
|
|
500
|
+
/** Reduced-motion behavior for this explicitly selected variant. */
|
|
501
|
+
reducedMotion?: ReducedMotionPolicy;
|
|
502
|
+
/** Setup needed only by this opt-in variant. */
|
|
503
|
+
prepare?: Primitive['prepare'];
|
|
496
504
|
/**
|
|
497
505
|
* Channels this spec writes, unioned with the primitive's own declared list.
|
|
498
506
|
*
|
|
@@ -501,6 +509,8 @@ export interface EffectVariant {
|
|
|
501
509
|
* conflict detection, which is exactly backwards.
|
|
502
510
|
*/
|
|
503
511
|
channels?: Channel[];
|
|
512
|
+
/** Extra transition properties for the channels this spec adds. */
|
|
513
|
+
transitions?: TransitionSegment[];
|
|
504
514
|
/**
|
|
505
515
|
* Keyframe blocks to compile, one animation track each, replacing the preset's single
|
|
506
516
|
* `keyframes` name. Empty means this spec animates nothing and emits no `animation` declaration.
|