2026-10-28 18:54:20 +00:00
|
|
|
<script setup lang="ts">
|
2026-10-28 21:14:56 +00:00
|
|
|
import type { BuildingType, VillageState } from '~/types/game'
|
2026-10-29 10:15:26 +00:00
|
|
|
import { buildScene, type SceneBuilding, type SceneInset, type ScenePlot } from '~/diorama/scene'
|
2026-10-28 18:54:20 +00:00
|
|
|
|
2026-10-28 20:03:51 +00:00
|
|
|
const props = defineProps<{
|
|
|
|
|
village: VillageState
|
|
|
|
|
/** Whole seconds until a server timestamp, on the server's clock. */
|
|
|
|
|
secondsUntil: (iso: string) => number
|
2026-10-29 09:56:52 +00:00
|
|
|
/** Fill the whole stage at any shape, without the sideways scroll of narrow frames. */
|
|
|
|
|
fill?: boolean
|
2026-10-29 10:15:26 +00:00
|
|
|
/** With `fill`: pixels at the edges that windows cover; the whole village fits into the rest. */
|
|
|
|
|
inset?: SceneInset
|
2026-10-28 20:03:51 +00:00
|
|
|
}>()
|
2026-10-28 18:54:20 +00:00
|
|
|
/** Id of the building whose details are open. */
|
|
|
|
|
const selected = defineModel<number | null>('selected', { default: null })
|
2026-10-28 21:14:56 +00:00
|
|
|
/** Type whose empty plot was picked, to build it. */
|
|
|
|
|
const plot = defineModel<BuildingType | null>('plot', { default: null })
|
2026-10-28 18:54:20 +00:00
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
2026-10-28 19:33:14 +00:00
|
|
|
// The scene is cut to the stage's shape, so the land always fills it edge to edge.
|
|
|
|
|
// On narrow screens the stage keeps a minimum width and scrolls sideways instead.
|
|
|
|
|
const scroller = ref<HTMLElement | null>(null)
|
|
|
|
|
const stage = ref<HTMLElement | null>(null)
|
|
|
|
|
const size = ref({ w: 1200, h: 520 })
|
|
|
|
|
const aspect = computed(() => Math.round((size.value.w / Math.max(1, size.value.h)) * 10) / 10)
|
2026-10-29 10:15:26 +00:00
|
|
|
const scene = computed(() =>
|
|
|
|
|
props.fill ? buildScene(props.village, { width: size.value.w, height: size.value.h, inset: props.inset }) : buildScene(props.village, aspect.value),
|
|
|
|
|
)
|
2026-10-28 18:54:20 +00:00
|
|
|
|
|
|
|
|
function measure() {
|
2026-10-28 19:33:14 +00:00
|
|
|
const el = stage.value
|
|
|
|
|
if (el && el.clientWidth && el.clientHeight) size.value = { w: el.clientWidth, h: el.clientHeight }
|
2026-10-28 18:54:20 +00:00
|
|
|
}
|
|
|
|
|
let observer: ResizeObserver | undefined
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
measure()
|
|
|
|
|
observer = new ResizeObserver(measure)
|
2026-10-28 19:33:14 +00:00
|
|
|
if (stage.value) observer.observe(stage.value)
|
|
|
|
|
// Start a scrolled phone view on the village centre.
|
|
|
|
|
const sc = scroller.value
|
|
|
|
|
if (sc) sc.scrollLeft = (sc.scrollWidth - sc.clientWidth) / 2
|
2026-10-28 18:54:20 +00:00
|
|
|
})
|
|
|
|
|
onBeforeUnmount(() => observer?.disconnect())
|
|
|
|
|
|
feat: building portraits, screen headers and a livelier village: shadows, smoke, walkers, a pond
Each building screen opens with the building drawn as it stands, its level and what it
does; the HQ list and the building cards show the same portraits. In the village,
buildings and trees cast flat shadows, chimneys, forges and kilns smoke, villagers walk
the roads to the zones they work in (more where more work), and a pond lies in the
meadow. Motion stops for players who prefer reduced motion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:46:15 +00:00
|
|
|
// Walkers and smoke only move for players who don't ask for reduced motion.
|
|
|
|
|
const motion = ref(false)
|
|
|
|
|
onMounted(() => (motion.value = !window.matchMedia('(prefers-reduced-motion: reduce)').matches))
|
|
|
|
|
const SHIRTS = ['#6b4f3a', '#7b1e16', '#3d5a26', '#57391f', '#5a5f63']
|
|
|
|
|
|
2026-10-28 19:33:14 +00:00
|
|
|
const name = (b: SceneBuilding) => t(`buildings.${b.type}`)
|
|
|
|
|
const label = (b: SceneBuilding) => t('village.diorama.label', { name: name(b), level: b.level })
|
2026-10-28 21:14:56 +00:00
|
|
|
const plotLabel = (p: ScenePlot) => t(p.another ? 'village.diorama.plot_another' : 'village.diorama.plot', { name: t(`buildings.${p.type}`) })
|
2026-10-28 18:54:20 +00:00
|
|
|
|
2026-10-28 21:14:56 +00:00
|
|
|
// Buildings stand still: hovering changes nothing but the cursor and the tooltip.
|
|
|
|
|
// A click opens the details and marks the ground under it.
|
2026-10-28 19:33:14 +00:00
|
|
|
function toggle(id: number) {
|
2026-10-28 21:14:56 +00:00
|
|
|
plot.value = null
|
2026-10-28 19:33:14 +00:00
|
|
|
selected.value = selected.value === id ? null : id
|
|
|
|
|
}
|
2026-10-28 21:14:56 +00:00
|
|
|
function pick(type: BuildingType) {
|
|
|
|
|
selected.value = null
|
|
|
|
|
plot.value = plot.value === type ? null : type
|
|
|
|
|
}
|
|
|
|
|
function clear() {
|
|
|
|
|
selected.value = null
|
|
|
|
|
plot.value = null
|
|
|
|
|
}
|
2026-10-28 18:54:20 +00:00
|
|
|
|
2026-10-28 19:33:14 +00:00
|
|
|
/** viewBox units per screen pixel: badges keep the same size however the scene is scaled. */
|
|
|
|
|
const k = computed(() => (scene.value.width / Math.max(1, size.value.w)) * (size.value.w < 900 ? 0.85 : 1))
|
2026-10-28 18:54:20 +00:00
|
|
|
|
2026-10-28 19:33:14 +00:00
|
|
|
// Badges that would overlap move up above the one in front, nearest buildings first.
|
|
|
|
|
const badges = computed(() => {
|
|
|
|
|
const list = scene.value.objects.flatMap((o) => (o.building?.focusable ? [o.building] : []))
|
2026-10-29 13:09:03 +00:00
|
|
|
const r = 13 * k.value
|
2026-10-28 19:33:14 +00:00
|
|
|
const placed: { b: SceneBuilding; x: number; y: number }[] = []
|
|
|
|
|
for (const b of [...list].sort((p, q) => q.label[1] - p.label[1])) {
|
|
|
|
|
const [x] = b.label
|
|
|
|
|
let y = b.label[1]
|
|
|
|
|
for (let n = 0; n < 6 && placed.some((p) => Math.abs(p.x - x) < r * 2.1 && Math.abs(p.y - y) < r * 2.1); n++) y -= r * 2.2
|
|
|
|
|
placed.push({ b, x, y })
|
|
|
|
|
}
|
|
|
|
|
return placed
|
|
|
|
|
})
|
2026-10-28 20:03:51 +00:00
|
|
|
|
2026-10-28 21:14:56 +00:00
|
|
|
// Countdowns sit right above what is being built: over the level badge, or over the
|
|
|
|
|
// scaffold of a new building.
|
2026-10-28 20:03:51 +00:00
|
|
|
// A timer that would cover another timer or a level badge moves up until it is clear.
|
|
|
|
|
const timers = computed(() => {
|
|
|
|
|
const K = k.value
|
2026-10-29 13:09:03 +00:00
|
|
|
const half = { w: 41 * K, h: 12.5 * K }
|
2026-10-28 20:03:51 +00:00
|
|
|
const placed: { x: number; y: number }[] = []
|
|
|
|
|
const hits = (x: number, y: number) =>
|
|
|
|
|
placed.some((p) => Math.abs(p.x - x) < half.w * 2 && Math.abs(p.y - y) < half.h * 2) ||
|
2026-10-29 13:09:03 +00:00
|
|
|
badges.value.some((p) => Math.abs(p.x - x) < half.w + 13 * K && Math.abs(p.y - y) < half.h + 13 * K)
|
2026-10-28 20:03:51 +00:00
|
|
|
return scene.value.timers
|
|
|
|
|
.map((tm) => {
|
|
|
|
|
const badge = tm.buildingId !== null ? badges.value.find((p) => p.b.id === tm.buildingId) : undefined
|
2026-10-29 13:09:03 +00:00
|
|
|
const lift = badge ? 29 : 2
|
2026-10-28 20:03:51 +00:00
|
|
|
return { ...tm, x: badge?.x ?? tm.at[0], y: (badge?.y ?? tm.at[1]) - lift * K }
|
|
|
|
|
})
|
|
|
|
|
.sort((a, b) => b.y - a.y)
|
|
|
|
|
.map((tm) => {
|
|
|
|
|
let y = tm.y
|
|
|
|
|
for (let n = 0; n < 8 && hits(tm.x, y); n++) y -= half.h * 2.1
|
|
|
|
|
placed.push({ x: tm.x, y })
|
|
|
|
|
return { ...tm, y }
|
|
|
|
|
})
|
|
|
|
|
})
|
2026-10-28 19:33:14 +00:00
|
|
|
</script>
|
2026-10-28 18:54:20 +00:00
|
|
|
|
2026-10-28 19:33:14 +00:00
|
|
|
<template>
|
2026-10-29 09:56:52 +00:00
|
|
|
<div ref="scroller" class="h-full w-full overflow-y-hidden bg-[#74864a]" :class="fill ? 'overflow-x-hidden' : 'overflow-x-auto'">
|
|
|
|
|
<div ref="stage" class="h-full" :class="fill ? '' : 'min-w-[640px]'">
|
2026-10-28 19:33:14 +00:00
|
|
|
<svg
|
|
|
|
|
class="block h-full w-full select-none"
|
|
|
|
|
:viewBox="scene.viewBox"
|
|
|
|
|
preserveAspectRatio="xMidYMid slice"
|
|
|
|
|
role="group"
|
|
|
|
|
:aria-label="$t('village.diorama.title')"
|
2026-10-28 21:14:56 +00:00
|
|
|
@click="clear"
|
2026-10-28 19:33:14 +00:00
|
|
|
>
|
|
|
|
|
<g stroke-width="0.6" stroke-linejoin="round">
|
|
|
|
|
<polygon v-for="(p, i) in scene.terrain" :key="`t${i}`" :points="p.points" :fill="p.fill" :stroke="p.stroke" />
|
|
|
|
|
<polygon v-for="(p, i) in scene.decals" :key="`d${i}`" :points="p.points" :fill="p.fill" :stroke="p.stroke" />
|
2026-10-28 18:54:20 +00:00
|
|
|
</g>
|
|
|
|
|
|
feat: building portraits, screen headers and a livelier village: shadows, smoke, walkers, a pond
Each building screen opens with the building drawn as it stands, its level and what it
does; the HQ list and the building cards show the same portraits. In the village,
buildings and trees cast flat shadows, chimneys, forges and kilns smoke, villagers walk
the roads to the zones they work in (more where more work), and a pond lies in the
meadow. Motion stops for players who prefer reduced motion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:46:15 +00:00
|
|
|
<!-- Villagers on their way to work and back, under the buildings they walk into. -->
|
|
|
|
|
<g v-if="motion" class="pointer-events-none" stroke="#2f2013" stroke-width="0.5">
|
|
|
|
|
<template v-for="(w, i) in scene.walks" :key="`walk-${i}-${w.d.length}`">
|
|
|
|
|
<g v-for="n in w.count" :key="n">
|
|
|
|
|
<g transform="scale(1.35)">
|
|
|
|
|
<rect x="-1.7" y="-7" width="3.4" height="5.4" rx="0.6" :fill="SHIRTS[(i * 3 + n) % SHIRTS.length]" />
|
|
|
|
|
<circle cy="-8.8" r="1.7" fill="#d8a982" />
|
|
|
|
|
<path d="M-1 -1.6v1.8M1 -1.6v1.8" fill="none" stroke-width="0.9" />
|
|
|
|
|
</g>
|
|
|
|
|
<animateMotion
|
|
|
|
|
:dur="`${w.seconds}s`"
|
|
|
|
|
:begin="`${-((n - 1) * w.seconds) / w.count - i * 3}s`"
|
|
|
|
|
repeatCount="indefinite"
|
|
|
|
|
keyPoints="0;1;0"
|
|
|
|
|
keyTimes="0;0.5;1"
|
|
|
|
|
calcMode="linear"
|
|
|
|
|
:path="w.d"
|
|
|
|
|
/>
|
|
|
|
|
</g>
|
|
|
|
|
</template>
|
|
|
|
|
</g>
|
|
|
|
|
|
2026-10-28 21:14:56 +00:00
|
|
|
<!-- Empty plots: nothing to see, but each opens its building type's build card. -->
|
|
|
|
|
<ellipse
|
|
|
|
|
v-for="p in scene.plots"
|
|
|
|
|
:key="p.key"
|
|
|
|
|
class="plot"
|
|
|
|
|
:class="{ 'is-selected': plot === p.type }"
|
|
|
|
|
v-bind="p.ring"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
:aria-label="plotLabel(p)"
|
|
|
|
|
:aria-pressed="plot === p.type"
|
|
|
|
|
@click.stop="pick(p.type)"
|
|
|
|
|
@keydown.enter.prevent="pick(p.type)"
|
|
|
|
|
@keydown.space.prevent="pick(p.type)"
|
|
|
|
|
>
|
|
|
|
|
<title>{{ plotLabel(p) }}</title>
|
|
|
|
|
</ellipse>
|
|
|
|
|
|
2026-10-29 13:09:03 +00:00
|
|
|
<!-- The wall is thin: a wide band along its ring opens it too. -->
|
|
|
|
|
<ellipse
|
|
|
|
|
v-if="scene.wallBand"
|
|
|
|
|
class="band"
|
|
|
|
|
v-bind="scene.wallBand.ring"
|
|
|
|
|
:stroke-width="scene.wallBand.width"
|
|
|
|
|
aria-hidden="true"
|
|
|
|
|
@click.stop="toggle(scene.wallBand.id)"
|
|
|
|
|
/>
|
|
|
|
|
|
2026-10-28 19:33:14 +00:00
|
|
|
<template v-for="obj in scene.objects" :key="obj.key">
|
|
|
|
|
<g
|
|
|
|
|
v-if="obj.building"
|
2026-10-28 21:14:56 +00:00
|
|
|
v-memo="[obj, selected === obj.building.id]"
|
2026-10-28 19:33:14 +00:00
|
|
|
class="bld"
|
2026-10-28 21:14:56 +00:00
|
|
|
:class="{ 'is-selected': selected === obj.building.id }"
|
2026-10-28 19:33:14 +00:00
|
|
|
:role="obj.building.focusable ? 'button' : undefined"
|
|
|
|
|
:tabindex="obj.building.focusable ? 0 : -1"
|
|
|
|
|
:aria-hidden="obj.building.focusable ? undefined : 'true'"
|
|
|
|
|
:aria-label="obj.building.focusable ? label(obj.building) : undefined"
|
|
|
|
|
:aria-pressed="obj.building.focusable ? selected === obj.building.id : undefined"
|
|
|
|
|
stroke-width="0.6"
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
@click.stop="toggle(obj.building.id)"
|
|
|
|
|
@keydown.enter.prevent="toggle(obj.building.id)"
|
|
|
|
|
@keydown.space.prevent="toggle(obj.building.id)"
|
|
|
|
|
>
|
2026-10-29 13:09:03 +00:00
|
|
|
<polygon v-if="obj.building.hit" class="hit" :points="obj.building.hit" />
|
2026-10-28 19:33:14 +00:00
|
|
|
<ellipse v-if="obj.building.ring.rx" class="ring" v-bind="obj.building.ring" />
|
|
|
|
|
<polygon v-for="(p, i) in obj.polys" :key="i" :points="p.points" :fill="p.fill" :stroke="p.stroke" />
|
|
|
|
|
<title>{{ label(obj.building) }}</title>
|
|
|
|
|
</g>
|
|
|
|
|
<g v-else v-memo="[obj]" stroke-width="0.6" stroke-linejoin="round">
|
|
|
|
|
<polygon v-for="(p, i) in obj.polys" :key="i" :points="p.points" :fill="p.fill" :stroke="p.stroke" />
|
|
|
|
|
<title v-if="obj.planned">{{ $t('village.diorama.planned') }}</title>
|
|
|
|
|
</g>
|
|
|
|
|
</template>
|
|
|
|
|
|
feat: building portraits, screen headers and a livelier village: shadows, smoke, walkers, a pond
Each building screen opens with the building drawn as it stands, its level and what it
does; the HQ list and the building cards show the same portraits. In the village,
buildings and trees cast flat shadows, chimneys, forges and kilns smoke, villagers walk
the roads to the zones they work in (more where more work), and a pond lies in the
meadow. Motion stops for players who prefer reduced motion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:46:15 +00:00
|
|
|
<!-- Smoke from chimneys, forges and kilns: flat puffs that rise, drift and shrink away. -->
|
|
|
|
|
<g v-if="motion" class="pointer-events-none" fill="#d6cfbf" stroke="#b3ab98" stroke-width="0.5">
|
|
|
|
|
<g v-for="(p, i) in scene.smoke" :key="`smoke-${i}`" :transform="`translate(${p[0]} ${p[1]})`">
|
|
|
|
|
<circle v-for="n in 3" :key="n" class="puff" r="5.5" :style="{ animationDelay: `${-(n * 1.3 + i * 0.9)}s` }" />
|
|
|
|
|
</g>
|
|
|
|
|
</g>
|
|
|
|
|
|
2026-10-28 21:14:56 +00:00
|
|
|
<!-- Level badges and countdowns. Flat colours only. -->
|
2026-10-28 19:33:14 +00:00
|
|
|
<g class="pointer-events-none" font-family="ui-sans-serif, system-ui, sans-serif" text-anchor="middle">
|
2026-10-29 13:09:03 +00:00
|
|
|
<g
|
|
|
|
|
v-for="{ b, x, y } in badges"
|
|
|
|
|
:key="`badge-${b.id}`"
|
|
|
|
|
class="pointer-events-auto cursor-pointer"
|
|
|
|
|
:transform="`translate(${x} ${y})`"
|
|
|
|
|
@click.stop="toggle(b.id)"
|
|
|
|
|
>
|
2026-10-28 19:33:14 +00:00
|
|
|
<circle
|
2026-10-29 13:09:03 +00:00
|
|
|
:r="12 * k"
|
2026-10-28 19:33:14 +00:00
|
|
|
:fill="b.upgrading ? '#c49a2c' : '#f3e7c9'"
|
2026-10-28 21:14:56 +00:00
|
|
|
:stroke="selected === b.id ? '#7b1e16' : '#57391f'"
|
2026-10-28 19:33:14 +00:00
|
|
|
:stroke-width="1.6 * k"
|
2026-10-28 18:54:20 +00:00
|
|
|
/>
|
2026-10-29 13:09:03 +00:00
|
|
|
<text :y="4.6 * k" :font-size="13 * k" font-weight="700" :fill="b.upgrading ? '#1f150c' : '#2f2013'">{{ b.level }}</text>
|
2026-10-28 18:54:20 +00:00
|
|
|
</g>
|
2026-10-28 20:03:51 +00:00
|
|
|
|
2026-10-29 13:09:03 +00:00
|
|
|
<g
|
|
|
|
|
v-for="tm in timers"
|
|
|
|
|
:key="`timer-${tm.orderId}`"
|
|
|
|
|
:class="tm.buildingId ? 'pointer-events-auto cursor-pointer' : ''"
|
|
|
|
|
:transform="`translate(${tm.x} ${tm.y})`"
|
|
|
|
|
@click.stop="tm.buildingId && toggle(tm.buildingId)"
|
|
|
|
|
>
|
|
|
|
|
<rect :x="-39 * k" :y="-11.5 * k" :width="78 * k" :height="22 * k" :rx="2 * k" fill="#2f2013" stroke="#c49a2c" :stroke-width="1.2 * k" />
|
|
|
|
|
<g :transform="`translate(${-27.5 * k} ${-0.5 * k}) scale(${1.15 * k})`" fill="none" stroke="#d9b44a" stroke-width="1.4" stroke-linecap="round">
|
2026-10-28 20:03:51 +00:00
|
|
|
<circle r="5" />
|
|
|
|
|
<path d="M0 -3v3l2 1.5" />
|
|
|
|
|
</g>
|
2026-10-29 13:09:03 +00:00
|
|
|
<text :x="7 * k" :y="4.6 * k" :font-size="13 * k" font-weight="700" fill="#f3e7c9" class="tabular-nums">
|
2026-10-28 20:03:51 +00:00
|
|
|
{{ formatDuration(secondsUntil(tm.finishesAt)) }}
|
|
|
|
|
</text>
|
|
|
|
|
</g>
|
2026-10-28 18:54:20 +00:00
|
|
|
</g>
|
2026-10-28 19:33:14 +00:00
|
|
|
</svg>
|
|
|
|
|
</div>
|
2026-10-28 18:54:20 +00:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2026-10-28 21:14:56 +00:00
|
|
|
/* Buildings are massive and stay put: no lift, no glow, nothing on hover. Only a click
|
|
|
|
|
(or keyboard focus) outlines the ground they stand on. */
|
|
|
|
|
.bld,
|
|
|
|
|
.plot {
|
2026-10-28 18:54:20 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
2026-10-28 21:14:56 +00:00
|
|
|
.ring,
|
2026-10-29 13:09:03 +00:00
|
|
|
.plot,
|
|
|
|
|
.hit {
|
2026-10-28 18:54:20 +00:00
|
|
|
fill: transparent;
|
|
|
|
|
stroke: transparent;
|
|
|
|
|
}
|
2026-10-29 13:09:03 +00:00
|
|
|
.band {
|
|
|
|
|
fill: none;
|
|
|
|
|
stroke: transparent;
|
|
|
|
|
pointer-events: stroke;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2026-10-28 21:14:56 +00:00
|
|
|
.bld.is-selected .ring,
|
|
|
|
|
.plot.is-selected {
|
2026-10-28 19:33:14 +00:00
|
|
|
stroke: #7b1e16;
|
2026-10-28 18:54:20 +00:00
|
|
|
stroke-width: 2;
|
|
|
|
|
}
|
2026-10-28 21:14:56 +00:00
|
|
|
.bld:focus-visible .ring,
|
|
|
|
|
.plot:focus-visible {
|
2026-10-28 19:33:14 +00:00
|
|
|
stroke: #7b1e16;
|
2026-10-28 18:54:20 +00:00
|
|
|
stroke-width: 2;
|
|
|
|
|
stroke-dasharray: 4 3;
|
|
|
|
|
}
|
feat: building portraits, screen headers and a livelier village: shadows, smoke, walkers, a pond
Each building screen opens with the building drawn as it stands, its level and what it
does; the HQ list and the building cards show the same portraits. In the village,
buildings and trees cast flat shadows, chimneys, forges and kilns smoke, villagers walk
the roads to the zones they work in (more where more work), and a pond lies in the
meadow. Motion stops for players who prefer reduced motion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 23:46:15 +00:00
|
|
|
|
|
|
|
|
/* A puff starts small at the chimney, grows as it rises and drifts, then shrinks to nothing. */
|
|
|
|
|
.puff {
|
|
|
|
|
transform-box: fill-box;
|
|
|
|
|
transform-origin: center;
|
|
|
|
|
animation: puff 3.9s linear infinite;
|
|
|
|
|
}
|
|
|
|
|
@keyframes puff {
|
|
|
|
|
0% {
|
|
|
|
|
transform: translate(0, 0) scale(0.25);
|
|
|
|
|
}
|
|
|
|
|
55% {
|
|
|
|
|
transform: translate(-6px, -15px) scale(1);
|
|
|
|
|
}
|
|
|
|
|
100% {
|
|
|
|
|
transform: translate(-13px, -27px) scale(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-10-28 18:54:20 +00:00
|
|
|
</style>
|