Tuner
import { useId, useRef, useState } from 'react';
const TABS = [
{ label: 'Jazz', mhz: 89.1, now: 'Alice Coltrane, Journey in Satchidananda' },
{ label: 'News', mhz: 94.7, now: 'The evening bulletin, live from the newsroom' },
{ label: 'Lo-fi', mhz: 100.3, now: 'Tape hiss and rain: beats to read to' },
{ label: 'Talk', mhz: 105.9, now: 'Late call-in: what are you building this week?' },
];
const W = 272;
const PAD = 14;
const LO = 87.5;
const HI = 108;
const x = (mhz: number) => PAD + ((mhz - LO) / (HI - LO)) * (W - 2 * PAD);
const SWEEP = '0.95s cubic-bezier(0.5, 0, 0.15, 1.08)';
const css = `
.tabs-tuner { width: ${W}px; }
.tabs-tuner__dial {
position: relative;
height: 62px;
border-radius: 10px;
background: light-dark(#f3f4f7, #1a1c1f);
box-shadow: inset 0 1px 3px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)), inset 0 0 0 1px light-dark(#ebedf0, #232529);
}
.tabs-tuner__scale { position: absolute; left: 0; top: 0; width: ${W}px; height: 34px; }
.tabs-tuner__tick { stroke: light-dark(#cbced3, #393c41); stroke-width: 1; }
.tabs-tuner__tick--major { stroke: light-dark(#6d7179, #7d8087); }
.tabs-tuner__mhz { fill: light-dark(#6d7179, #7d8087); font-size: 8px; font-variant-numeric: tabular-nums; text-anchor: middle; }
.tabs-tuner__tab { position: absolute; top: 36px; translate: -50% 0; border: 0; padding: 3px 4px; background: none; font: inherit; font-size: 12px; font-weight: 500; color: light-dark(#5f626a, #a7abb2); cursor: pointer; transition: color 0.3s; }
.tabs-tuner__tab:hover, .tabs-tuner__tab[aria-selected='true'] { color: light-dark(#373a40, #f1f2f3); }
.tabs-tuner__tab:focus-visible { outline: 2px solid light-dark(#5f626a, #a7abb2); outline-offset: 0; border-radius: 4px; }
.tabs-tuner__needle {
position: absolute;
top: 6px;
height: 30px;
width: 2px;
margin-left: -1px;
border-radius: 1px;
background: light-dark(#373a40, #f1f2f3);
box-shadow: 0 0 6px color-mix(in oklab, light-dark(#373a40, #f1f2f3) 50%, transparent);
transition: left ${SWEEP};
pointer-events: none;
}
.tabs-tuner__panel { position: relative; padding: 14px 2px 0; min-height: calc(3.1em + 14px); overflow: hidden; }
.tabs-tuner__on { font-size: 11px; color: light-dark(#5f626a, #a7abb2); }
.tabs-tuner__song { margin-top: 2px; color: light-dark(#42454c, #e5e6e9); font-size: 13px; line-height: 1.5; }
/* Off station the words are smeared and jumpy; they lock in as the needle arrives. */
.tabs-tuner__tuned { animation: tabs-tuner-in 1s both; }
@keyframes tabs-tuner-in {
0% { filter: blur(4px); opacity: 0.35; transform: translateX(-2px); }
20% { filter: blur(3px); opacity: 0.5; transform: translateX(2px); }
40% { filter: blur(3px); opacity: 0.45; transform: translateX(-1px); }
60% { filter: blur(2px); opacity: 0.6; transform: translateX(1px); }
80% { filter: blur(0.5px); opacity: 0.9; transform: none; }
100% { filter: none; opacity: 1; transform: none; }
}
.tabs-tuner__static {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0;
mask-image: radial-gradient(closest-side, #000 55%, transparent);
animation: tabs-tuner-static 1s both;
}
@keyframes tabs-tuner-static {
0%, 50% { opacity: 0.2; }
100% { opacity: 0; }
}
.tabs-tuner__noise { animation: tabs-tuner-hiss 0.24s steps(4) infinite; }
@keyframes tabs-tuner-hiss {
to { transform: translate(-40px, 12px); }
}
@media (prefers-reduced-motion: reduce) {
.tabs-tuner__needle { transition: none; }
.tabs-tuner__tuned, .tabs-tuner__static, .tabs-tuner__noise { animation: none; }
}
`;
const TICKS = Array.from({ length: Math.round(HI - LO) * 2 + 1 }, (_, i) => LO + i / 2);
export function TunerTabs() {
const id = useId();
const noise = `${id.replace(/[^\w-]/g, '')}-noise`;
const [sel, setSel] = useState(1);
const [tuned, setTuned] = useState(false);
const tabs = useRef<(HTMLButtonElement | null)[]>([]);
const pick = (i: number) => {
if (i === sel) return;
setSel(i);
setTuned(true);
};
const n = TABS.length;
const onKeyDown = (e: React.KeyboardEvent) => {
const next = { ArrowRight: (sel + 1) % n, ArrowLeft: (sel + n - 1) % n, Home: 0, End: n - 1 }[e.key];
if (next === undefined) return;
e.preventDefault();
pick(next);
tabs.current[next]?.focus();
};
return (
<>
<style>
{css}
</style>
<div className="tabs-tuner">
<div className="tabs-tuner__dial" role="tablist" aria-label="Stations" onKeyDown={onKeyDown}>
<svg className="tabs-tuner__scale" aria-hidden="true">
{TICKS.map((f) => {
const major = f % 4 === 0;
return <line key={f} className={`tabs-tuner__tick${major ? ' tabs-tuner__tick--major' : ''}`} x1={x(f)} x2={x(f)} y1={major ? 16 : f % 1 ? 25 : 21} y2={30} />;
})}
{[88, 92, 96, 100, 104, 108].map((f) => (
<text key={f} className="tabs-tuner__mhz" x={x(f)} y={11}>
{f}
</text>
))}
</svg>
{TABS.map((t, i) => (
<button
key={t.label}
ref={(el) => {
tabs.current[i] = el;
}}
className="tabs-tuner__tab"
style={{ left: x(t.mhz) }}
type="button"
role="tab"
id={`${id}-tab-${i}`}
aria-selected={sel === i}
aria-controls={`${id}-panel-${i}`}
tabIndex={sel === i ? 0 : -1}
onClick={() => pick(i)}
>
{t.label}
</button>
))}
<span className="tabs-tuner__needle" style={{ left: x(TABS[sel].mhz) }} aria-hidden="true" />
</div>
{TABS.map((t, i) => (
<div key={t.label} className="tabs-tuner__panel" role="tabpanel" id={`${id}-panel-${i}`} aria-labelledby={`${id}-tab-${i}`} hidden={sel !== i}>
{/* Remounted on every switch, so the tuning-in plays again. */}
<div key={sel} className={tuned ? 'tabs-tuner__tuned' : undefined}>
<div className="tabs-tuner__on">Now playing on {t.mhz.toFixed(1)}</div>
<div className="tabs-tuner__song">{t.now}</div>
</div>
{tuned && sel === i && (
<svg key={`s${sel}`} className="tabs-tuner__static" aria-hidden="true">
<filter id={noise}>
<feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" seed="4" />
<feColorMatrix type="saturate" values="0" />
</filter>
<rect className="tabs-tuner__noise" x="-40" y="-20" width="400" height="120" filter={`url(#${noise})`} />
</svg>
)}
</div>
))}
</div>
</>
);
}Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initTabsTuner(el) on the mounted element instead.
<div class="tabs-tuner">
<div class="tabs-tuner__dial" role="tablist" aria-label="Stations">
<svg class="tabs-tuner__scale" aria-hidden="true">
<line class="tabs-tuner__tick" x1="14" x2="14" y1="25" y2="30"></line>
<line class="tabs-tuner__tick tabs-tuner__tick--major" x1="19.951" x2="19.951" y1="16" y2="30"></line>
<line class="tabs-tuner__tick" x1="25.902" x2="25.902" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="31.854" x2="31.854" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="37.805" x2="37.805" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="43.756" x2="43.756" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="49.707" x2="49.707" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="55.659" x2="55.659" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="61.61" x2="61.61" y1="25" y2="30"></line>
<line class="tabs-tuner__tick tabs-tuner__tick--major" x1="67.561" x2="67.561" y1="16" y2="30"></line>
<line class="tabs-tuner__tick" x1="73.512" x2="73.512" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="79.463" x2="79.463" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="85.415" x2="85.415" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="91.366" x2="91.366" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="97.317" x2="97.317" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="103.268" x2="103.268" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="109.22" x2="109.22" y1="25" y2="30"></line>
<line class="tabs-tuner__tick tabs-tuner__tick--major" x1="115.171" x2="115.171" y1="16" y2="30"></line>
<line class="tabs-tuner__tick" x1="121.122" x2="121.122" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="127.073" x2="127.073" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="133.024" x2="133.024" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="138.976" x2="138.976" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="144.927" x2="144.927" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="150.878" x2="150.878" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="156.829" x2="156.829" y1="25" y2="30"></line>
<line class="tabs-tuner__tick tabs-tuner__tick--major" x1="162.78" x2="162.78" y1="16" y2="30"></line>
<line class="tabs-tuner__tick" x1="168.732" x2="168.732" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="174.683" x2="174.683" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="180.634" x2="180.634" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="186.585" x2="186.585" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="192.537" x2="192.537" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="198.488" x2="198.488" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="204.439" x2="204.439" y1="25" y2="30"></line>
<line class="tabs-tuner__tick tabs-tuner__tick--major" x1="210.39" x2="210.39" y1="16" y2="30"></line>
<line class="tabs-tuner__tick" x1="216.341" x2="216.341" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="222.293" x2="222.293" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="228.244" x2="228.244" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="234.195" x2="234.195" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="240.146" x2="240.146" y1="25" y2="30"></line>
<line class="tabs-tuner__tick" x1="246.098" x2="246.098" y1="21" y2="30"></line>
<line class="tabs-tuner__tick" x1="252.049" x2="252.049" y1="25" y2="30"></line>
<line class="tabs-tuner__tick tabs-tuner__tick--major" x1="258" x2="258" y1="16" y2="30"></line>
<line class="tabs-tuner__tick" x1="263.951" x2="263.951" y1="25" y2="30"></line>
<text class="tabs-tuner__mhz" x="19.951" y="11">88</text>
<text class="tabs-tuner__mhz" x="67.561" y="11">92</text>
<text class="tabs-tuner__mhz" x="115.171" y="11">96</text>
<text class="tabs-tuner__mhz" x="162.78" y="11">100</text>
<text class="tabs-tuner__mhz" x="210.39" y="11">104</text>
<text class="tabs-tuner__mhz" x="258" y="11">108</text>
</svg>
<button class="tabs-tuner__tab" style="left:33.044px" type="button" role="tab" id="tabs-tuner-tab-0" aria-selected="false" aria-controls="tabs-tuner-panel-0" tabindex="-1">Jazz</button>
<button class="tabs-tuner__tab" style="left:99.698px" type="button" role="tab" id="tabs-tuner-tab-1" aria-selected="true" aria-controls="tabs-tuner-panel-1" tabindex="0">News</button>
<button class="tabs-tuner__tab" style="left:166.351px" type="button" role="tab" id="tabs-tuner-tab-2" aria-selected="false" aria-controls="tabs-tuner-panel-2" tabindex="-1">Lo-fi</button>
<button class="tabs-tuner__tab" style="left:233.005px" type="button" role="tab" id="tabs-tuner-tab-3" aria-selected="false" aria-controls="tabs-tuner-panel-3" tabindex="-1">Talk</button>
<span class="tabs-tuner__needle" style="left:99.698px" aria-hidden="true"></span>
</div>
<div class="tabs-tuner__panel" role="tabpanel" id="tabs-tuner-panel-0" aria-labelledby="tabs-tuner-tab-0" hidden="">
<div>
<div class="tabs-tuner__on">Now playing on 89.1</div>
<div class="tabs-tuner__song">Alice Coltrane, Journey in Satchidananda</div>
</div>
</div>
<div class="tabs-tuner__panel" role="tabpanel" id="tabs-tuner-panel-1" aria-labelledby="tabs-tuner-tab-1">
<div>
<div class="tabs-tuner__on">Now playing on 94.7</div>
<div class="tabs-tuner__song">The evening bulletin, live from the newsroom</div>
</div>
</div>
<div class="tabs-tuner__panel" role="tabpanel" id="tabs-tuner-panel-2" aria-labelledby="tabs-tuner-tab-2" hidden="">
<div>
<div class="tabs-tuner__on">Now playing on 100.3</div>
<div class="tabs-tuner__song">Tape hiss and rain: beats to read to</div>
</div>
</div>
<div class="tabs-tuner__panel" role="tabpanel" id="tabs-tuner-panel-3" aria-labelledby="tabs-tuner-tab-3" hidden="">
<div>
<div class="tabs-tuner__on">Now playing on 105.9</div>
<div class="tabs-tuner__song">Late call-in: what are you building this week?</div>
</div>
</div>
</div>.tabs-tuner { width: 272px; }
.tabs-tuner__dial {
position: relative;
height: 62px;
border-radius: 10px;
background: light-dark(#f3f4f7, #1a1c1f);
box-shadow: inset 0 1px 3px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)), inset 0 0 0 1px light-dark(#ebedf0, #232529);
}
.tabs-tuner__scale { position: absolute; left: 0; top: 0; width: 272px; height: 34px; }
.tabs-tuner__tick { stroke: light-dark(#cbced3, #393c41); stroke-width: 1; }
.tabs-tuner__tick--major { stroke: light-dark(#6d7179, #7d8087); }
.tabs-tuner__mhz { fill: light-dark(#6d7179, #7d8087); font-size: 8px; font-variant-numeric: tabular-nums; text-anchor: middle; }
.tabs-tuner__tab { position: absolute; top: 36px; translate: -50% 0; border: 0; padding: 3px 4px; background: none; font: inherit; font-size: 12px; font-weight: 500; color: light-dark(#5f626a, #a7abb2); cursor: pointer; transition: color 0.3s; }
.tabs-tuner__tab:hover, .tabs-tuner__tab[aria-selected='true'] { color: light-dark(#373a40, #f1f2f3); }
.tabs-tuner__tab:focus-visible { outline: 2px solid light-dark(#5f626a, #a7abb2); outline-offset: 0; border-radius: 4px; }
.tabs-tuner__needle {
position: absolute;
top: 6px;
height: 30px;
width: 2px;
margin-left: -1px;
border-radius: 1px;
background: light-dark(#373a40, #f1f2f3);
box-shadow: 0 0 6px color-mix(in oklab, light-dark(#373a40, #f1f2f3) 50%, transparent);
transition: left 0.95s cubic-bezier(0.5, 0, 0.15, 1.08);
pointer-events: none;
}
.tabs-tuner__panel { position: relative; padding: 14px 2px 0; min-height: calc(3.1em + 14px); overflow: hidden; }
.tabs-tuner__on { font-size: 11px; color: light-dark(#5f626a, #a7abb2); }
.tabs-tuner__song { margin-top: 2px; color: light-dark(#42454c, #e5e6e9); font-size: 13px; line-height: 1.5; }
/* Off station the words are smeared and jumpy; they lock in as the needle arrives. */
.tabs-tuner__tuned { animation: tabs-tuner-in 1s both; }
@keyframes tabs-tuner-in {
0% { filter: blur(4px); opacity: 0.35; transform: translateX(-2px); }
20% { filter: blur(3px); opacity: 0.5; transform: translateX(2px); }
40% { filter: blur(3px); opacity: 0.45; transform: translateX(-1px); }
60% { filter: blur(2px); opacity: 0.6; transform: translateX(1px); }
80% { filter: blur(0.5px); opacity: 0.9; transform: none; }
100% { filter: none; opacity: 1; transform: none; }
}
.tabs-tuner__static {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0;
mask-image: radial-gradient(closest-side, #000 55%, transparent);
animation: tabs-tuner-static 1s both;
}
@keyframes tabs-tuner-static {
0%, 50% { opacity: 0.2; }
100% { opacity: 0; }
}
.tabs-tuner__noise { animation: tabs-tuner-hiss 0.24s steps(4) infinite; }
@keyframes tabs-tuner-hiss {
to { transform: translate(-40px, 12px); }
}
@media (prefers-reduced-motion: reduce) {
.tabs-tuner__needle { transition: none; }
.tabs-tuner__tuned, .tabs-tuner__static, .tabs-tuner__noise { animation: none; }
}function initTabsTuner(root) {
var list = root.querySelector('[role="tablist"]');
var tabs = Array.prototype.slice.call(list.querySelectorAll('[role="tab"]'));
var panels = root.querySelectorAll('[role="tabpanel"]');
var needle = root.querySelector('.tabs-tuner__needle');
var sel = tabs.findIndex(function (tab) { return tab.getAttribute('aria-selected') === 'true'; });
// A wash of grey static over the panel while it tunes in.
var STATIC =
'<svg class="tabs-tuner__static" aria-hidden="true">' +
'<filter id="tabs-tuner-noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" seed="4"></feTurbulence>' +
'<feColorMatrix type="saturate" values="0"></feColorMatrix></filter>' +
'<rect class="tabs-tuner__noise" x="-40" y="-20" width="400" height="120" filter="url(#tabs-tuner-noise)"></rect></svg>';
function select(i) {
if (i === sel) return;
sel = i;
tabs.forEach(function (tab, k) {
tab.setAttribute('aria-selected', String(k === i));
tab.tabIndex = k === i ? 0 : -1;
});
panels.forEach(function (panel, k) { panel.hidden = k !== i; });
// The needle sweeps to the station (a CSS transition on left).
needle.style.left = tabs[i].style.left;
// Replay the tuning-in on the new panel: off station the words are smeared and jumpy.
var panel = panels[i];
var words = panel.firstElementChild;
words.classList.remove('tabs-tuner__tuned');
void words.offsetWidth;
words.classList.add('tabs-tuner__tuned');
root.querySelectorAll('.tabs-tuner__static').forEach(function (s) { s.remove(); });
panel.insertAdjacentHTML('beforeend', STATIC);
}
function onClick(e) {
var tab = e.target.closest('[role="tab"]');
if (tab) select(tabs.indexOf(tab));
}
function onKeyDown(e) {
var n = tabs.length;
var next = { ArrowRight: (sel + 1) % n, ArrowLeft: (sel + n - 1) % n, Home: 0, End: n - 1 }[e.key];
if (next === undefined) return;
e.preventDefault();
select(next);
tabs[next].focus();
}
list.addEventListener('click', onClick);
list.addEventListener('keydown', onKeyDown);
return function () {
list.removeEventListener('click', onClick);
list.removeEventListener('keydown', onKeyDown);
};
}
document.querySelectorAll('.tabs-tuner').forEach(initTabsTuner);Goal: Create a "Tuner" tab set.
Visual behavior: Radio station tabs on a tuning dial: the needle sweeps across the frequency scale to the one you pick, and the panel tunes in from static as it arrives.
Technique:
- The ARIA tabs pattern: a role="tablist" with an aria-label, buttons with role="tab", aria-selected and aria-controls, and role="tabpanel" panels labelled by their tab. Only the selected tab is in the Tab order (roving tabindex); the arrow keys, Home and End move between tabs and select as they go.
- The stations sit along an SVG scale at their frequencies, and the needle is positioned by a left transition with a slow start and a small overshoot.
- On each switch the panel replays a keyframe animation in which its words go from blurred and jittering to sharp, while a greyscale feTurbulence noise layer over it fades out, jumping in steps so it reads as live static.
Accessibility: Real ARIA tabs: arrow keys, Home and End move between tabs, only the selected tab is in the Tab order, and each panel is labelled by its tab. Decoration is aria-hidden. Under prefers-reduced-motion the needle jumps and the panel changes without static.
My stack: {{USER_STACK}}
My styling: {{USER_STYLING}}
My constraints: {{USER_CONSTRAINTS}}
My colors: neutral only. Black, white and grays, no hues. Use the color values above as written, or my project's closest neutral tokens.
Return a single self-contained component. No dependencies.Goal: Create a "Tuner" tab set.
Visual behavior: Radio station tabs on a tuning dial: the needle sweeps across the frequency scale to the one you pick, and the panel tunes in from static as it arrives.
Technique:
- The ARIA tabs pattern: a role="tablist" with an aria-label, buttons with role="tab", aria-selected and aria-controls, and role="tabpanel" panels labelled by their tab. Only the selected tab is in the Tab order (roving tabindex); the arrow keys, Home and End move between tabs and select as they go.
- The stations sit along an SVG scale at their frequencies, and the needle is positioned by a left transition with a slow start and a small overshoot.
- On each switch the panel replays a keyframe animation in which its words go from blurred and jittering to sharp, while a greyscale feTurbulence noise layer over it fades out, jumping in steps so it reads as live static.
Accessibility: Real ARIA tabs: arrow keys, Home and End move between tabs, only the selected tab is in the Tab order, and each panel is labelled by its tab. Decoration is aria-hidden. Under prefers-reduced-motion the needle jumps and the panel changes without static.
My stack: {{USER_STACK}}
My styling: {{USER_STYLING}}
My constraints: {{USER_CONSTRAINTS}}
My colors: use my project's existing color tokens. The color values above are grayscale placeholders. Map each one by its role (surface, text, border, accent, glow) to my theme, and keep their relative lightness so contrast and the effect still read.
Return a single self-contained component. No dependencies.Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Free to use in any project, commercial included. MIT-0, no attribution required. Licence
About this component
Radio station tabs on a tuning dial: the needle sweeps across the frequency scale to the one you pick, and the panel tunes in from static as it arrives.
- Dependencies
- None
- Difficulty
- Intermediate
- Triggers
- click, state change, keyframe
- Techniques
- css transition, keyframes, svg filter
- Reduced motion
- Respected
- Theme
- Light and dark (follows your page's color-scheme)
Real ARIA tabs: arrow keys, Home and End move between tabs, only the selected tab is in the Tab order, and each panel is labelled by its tab. Decoration is aria-hidden. Under prefers-reduced-motion the needle jumps and the panel changes without static.