Something went wrong. Try again.
doll.systems community website
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435---import type { Artwork } from '../lib/layouts';interface Props extends Artwork { class?: string;}const { src, still, exposure, focus, moonSway = false, class: className = '' } = Astro.props;---
<div class:list={['dither', className]} data-moon-sway={moonSway || undefined} data-exposure={exposure} data-focus={focus.join(',')} style={`--art-x:${focus[0] * 100}%;--art-y:${focus[1] * 100}%`}> <img class="dither-source" src={src} alt="" hidden decoding="async" loading="eager" /> <img class="dither-still" {...still} alt="" draggable="false" decoding="async" /> {moonSway && ( <svg class="dither-still-symbol" viewBox="0 0 1672 941" preserveAspectRatio="xMidYMid slice" aria-hidden="true" > <path d="M977.2 420L987.6 402H1008.4L1018.8 420L1008.4 438H987.6Z" fill="#080808" stroke="#d3d3d3" stroke-width="3" /> </svg> )} <canvas aria-hidden="true"></canvas></div>