# Giant wordmark under a curtain footer

> At the end of the content the card lifts like a curtain and reveals the brand name across the full width, letter by letter.

- Category: [Text & scroll](https://library.aimran.es/components/text-scroll)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-tx-footer-curtain
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Many studio sites end with a huge wordmark hidden under the page, and this block builds that reveal with a sticky footer behind the content card. As the card scrolls away, each letter rises from below in sequence, and the name is sized to fill the width whatever its length. It fits agency sites, portfolios, restaurants and brand landing pages.

Write the brand name in the text field and edit the footer links. The main color is the footer background and the secondary one the wordmark. Screen readers get the name once as text, while the large letters stay decorative.

## Code

### HTML

```html
<div class="uvq14-cur"><div class="sc" tabindex="0" aria-label="Aurora"><article class="cd"><p class="kc">Design studio</p><h3>We make brands people remember</h3><p>Identity, web and packaging for people who make things with care. We work from Valencia with clients from anywhere.</p><p>Scroll to the end and you'll know our name.</p></article><footer class="ft"><nav><a href="#">Instagram</a><a href="#">Mail</a><a href="#">Map</a></nav><p class="sr">Aurora</p><p class="wm" aria-hidden="true" translate="no">Aurora</p></footer></div><span class="hn" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14M6 13l6 6 6-6"/></svg>Scroll</span></div>
```

### CSS

```css
.uvq14-cur {
  --c1: #14532d;
  --c2: #d9f99d;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq14-cur {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  height: 17em;
  border-radius: 1.3em;
  overflow: hidden;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent);
  background: var(--c1);
}

.uvq14-cur .sc {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  outline: 0;
  scrollbar-width: none;
}

.uvq14-cur .cd {
  position: relative;
  z-index: 1;
  min-height: 19em;
  padding: 1.4em 1.4em 2em;
  border-radius: 0 0 1.3em 1.3em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 1em 1.6em -.6em rgba(0,0,0,.45);
}

.uvq14-cur .kc {
  margin: 0;
  font-size: .68em;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq14-cur h3 {
  margin: .4em 0 .6em;
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.uvq14-cur .cd p:not(.kc) {
  margin: 0 0 .8em;
  font-size: .88em;
  line-height: 1.6;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq14-cur .ft {
  position: sticky;
  bottom: 0;
  z-index: 0;
  height: 9em;
  box-sizing: border-box;
  padding: 1em 1.2em 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--c2);
  background: var(--c1);
  overflow: hidden;
}

.uvq14-cur nav {
  display: flex;
  gap: 1em;
  font-size: .78em;
  font-weight: 600;
}

.uvq14-cur nav a {
  color: inherit;
  text-decoration: none;
  opacity: .8;
  border-radius: .2em;
  transition: opacity calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq14-cur nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.uvq14-cur nav a:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
  opacity: 1;
}

.uvq14-cur .wm {
  display: flex;
  justify-content: space-between;
  margin: 0 -.04em -.17em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.uvq14-cur .wm b {
  display: block;
  font-weight: inherit;
  transform: translateY(calc((1 - clamp(0,var(--r,0) * 1.6 - var(--i) * .09,1)) * 105%));
}

.uvq14-cur .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.uvq14-cur .hn {
  position: absolute;
  left: 50%;
  bottom: .8em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .35em .7em;
  border-radius: 2em;
  font-size: .7em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  translate: -50% 0;
  pointer-events: none;
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
  animation: uvq14-cur-h calc(1.6s / var(--k)) ease-in-out infinite;
}

.uvq14-cur .hn svg {
  width: 1.1em;
  height: 1.1em;
}

.uvq14-cur.moved .hn {
  opacity: 0;
}

.uvq14-cur .sc:focus-visible {
  box-shadow: inset 0 0 0 2px var(--c1);
  border-radius: 1.3em;
}

@keyframes uvq14-cur-h {
  50% {
    transform: translateY(.25em);
  }
}

.uvq14-cur .hn {
  color: var(--c1);
  background: var(--c2);
}
```

### JavaScript

```js
document.querySelectorAll(".uvq14-cur").forEach(el => {
  const cd=el.querySelector(".cd"),ft=el.querySelector(".ft"),wm=el.querySelector(".wm"),sr=el.querySelector(".ft .sr");
const build=()=>{const s=sr.textContent.trim();wm.textContent="";[...s].forEach((c,i)=>{const b=document.createElement("b");b.textContent=c===" "?"\u00a0":c;b.style.setProperty("--i",i);wm.appendChild(b)});wm.style.fontSize=Math.min((ft.clientWidth-8)/(Math.max(3,s.length)*.84),ft.clientHeight*.62)+"px"};build();const sc=el.querySelector(".sc");const u=()=>{const m=sc.scrollHeight-sc.clientHeight;const p=m>0?sc.scrollTop/m:0;el.style.setProperty("--p",p.toFixed(4));el.classList.toggle("moved",sc.scrollTop>8);const a=cd.getBoundingClientRect(),b=sc.getBoundingClientRect();el.style.setProperty("--r",Math.max(0,Math.min(1,(b.bottom-a.bottom)/(ft.getBoundingClientRect().height||1))).toFixed(3))};sc.addEventListener("scroll",u,{passive:true});const ro=new ResizeObserver(u);ro.observe(sc);u();const mo=new MutationObserver(build);el.querySelectorAll(".ft .sr").forEach(n=>mo.observe(n,{childList:true,characterData:true,subtree:true}));const r2=new ResizeObserver(build);r2.observe(ft);return()=>{ro.disconnect();r2.disconnect();mo.disconnect()}
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq14-cur {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  height: 17em;
  border-radius: 1.3em;
  overflow: hidden;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent);
  background: var(--c1);
}

.uvq14-cur .sc {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  outline: 0;
  scrollbar-width: none;
}

.uvq14-cur .cd {
  position: relative;
  z-index: 1;
  min-height: 19em;
  padding: 1.4em 1.4em 2em;
  border-radius: 0 0 1.3em 1.3em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 1em 1.6em -.6em rgba(0,0,0,.45);
}

.uvq14-cur .kc {
  margin: 0;
  font-size: .68em;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq14-cur h3 {
  margin: .4em 0 .6em;
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.uvq14-cur .cd p:not(.kc) {
  margin: 0 0 .8em;
  font-size: .88em;
  line-height: 1.6;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq14-cur .ft {
  position: sticky;
  bottom: 0;
  z-index: 0;
  height: 9em;
  box-sizing: border-box;
  padding: 1em 1.2em 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--c2);
  background: var(--c1);
  overflow: hidden;
}

.uvq14-cur nav {
  display: flex;
  gap: 1em;
  font-size: .78em;
  font-weight: 600;
}

.uvq14-cur nav a {
  color: inherit;
  text-decoration: none;
  opacity: .8;
  border-radius: .2em;
  transition: opacity calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq14-cur nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.uvq14-cur nav a:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
  opacity: 1;
}

.uvq14-cur .wm {
  display: flex;
  justify-content: space-between;
  margin: 0 -.04em -.17em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.uvq14-cur .wm b {
  display: block;
  font-weight: inherit;
  transform: translateY(calc((1 - clamp(0,var(--r,0) * 1.6 - var(--i) * .09,1)) * 105%));
}

.uvq14-cur .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.uvq14-cur .hn {
  position: absolute;
  left: 50%;
  bottom: .8em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .35em .7em;
  border-radius: 2em;
  font-size: .7em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  translate: -50% 0;
  pointer-events: none;
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
  animation: uvq14-cur-h calc(1.6s / var(--k)) ease-in-out infinite;
}

.uvq14-cur .hn svg {
  width: 1.1em;
  height: 1.1em;
}

.uvq14-cur.moved .hn {
  opacity: 0;
}

.uvq14-cur .sc:focus-visible {
  box-shadow: inset 0 0 0 2px var(--c1);
  border-radius: 1.3em;
}

@keyframes uvq14-cur-h {
  50% {
    transform: translateY(.25em);
  }
}

.uvq14-cur .hn {
  color: var(--c1);
  background: var(--c2);
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const cd=el.querySelector(".cd"),ft=el.querySelector(".ft"),wm=el.querySelector(".wm"),sr=el.querySelector(".ft .sr");
const build=()=>{const s=sr.textContent.trim();wm.textContent="";[...s].forEach((c,i)=>{const b=document.createElement("b");b.textContent=c===" "?"\u00a0":c;b.style.setProperty("--i",i);wm.appendChild(b)});wm.style.fontSize=Math.min((ft.clientWidth-8)/(Math.max(3,s.length)*.84),ft.clientHeight*.62)+"px"};build();const sc=el.querySelector(".sc");const u=()=>{const m=sc.scrollHeight-sc.clientHeight;const p=m>0?sc.scrollTop/m:0;el.style.setProperty("--p",p.toFixed(4));el.classList.toggle("moved",sc.scrollTop>8);const a=cd.getBoundingClientRect(),b=sc.getBoundingClientRect();el.style.setProperty("--r",Math.max(0,Math.min(1,(b.bottom-a.bottom)/(ft.getBoundingClientRect().height||1))).toFixed(3))};sc.addEventListener("scroll",u,{passive:true});const ro=new ResizeObserver(u);ro.observe(sc);u();const mo=new MutationObserver(build);el.querySelectorAll(".ft .sr").forEach(n=>mo.observe(n,{childList:true,characterData:true,subtree:true}));const r2=new ResizeObserver(build);r2.observe(ft);return()=>{ro.disconnect();r2.disconnect();mo.disconnect()}
}

export default function TxFooterCurtain() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#14532d",
          "--c2": "#d9f99d",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq14-cur"><div className="sc" tabIndex={0} aria-label="Aurora"><article className="cd"><p className="kc">Design studio</p><h3>We make brands people remember</h3><p>Identity, web and packaging for people who make things with care. We work from Valencia with clients from anywhere.</p><p>Scroll to the end and you'll know our name.</p></article><footer className="ft"><nav><a href="#">Instagram</a><a href="#">Mail</a><a href="#">Map</a></nav><p className="sr">Aurora</p><p className="wm" aria-hidden="true" translate="no">Aurora</p></footer></div><span className="hn" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M12 5v14M6 13l6 6 6-6" /></svg>Scroll</span></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Giant wordmark under a curtain footer” block (Text & scroll) from AIMRAN Library to my project.

## What it is
At the end of the content the card lifts like a curtain and reveals the brand name across the full width, letter by letter.

## Chosen settings
- Main color: #14532d
- Secondary color: #d9f99d
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Aurora"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq14-cur {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 22em;
  height: 17em;
  border-radius: 1.3em;
  overflow: hidden;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent);
  background: var(--c1);
}

.uvq14-cur .sc {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  outline: 0;
  scrollbar-width: none;
}

.uvq14-cur .cd {
  position: relative;
  z-index: 1;
  min-height: 19em;
  padding: 1.4em 1.4em 2em;
  border-radius: 0 0 1.3em 1.3em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 1em 1.6em -.6em rgba(0,0,0,.45);
}

.uvq14-cur .kc {
  margin: 0;
  font-size: .68em;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq14-cur h3 {
  margin: .4em 0 .6em;
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.uvq14-cur .cd p:not(.kc) {
  margin: 0 0 .8em;
  font-size: .88em;
  line-height: 1.6;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq14-cur .ft {
  position: sticky;
  bottom: 0;
  z-index: 0;
  height: 9em;
  box-sizing: border-box;
  padding: 1em 1.2em 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--c2);
  background: var(--c1);
  overflow: hidden;
}

.uvq14-cur nav {
  display: flex;
  gap: 1em;
  font-size: .78em;
  font-weight: 600;
}

.uvq14-cur nav a {
  color: inherit;
  text-decoration: none;
  opacity: .8;
  border-radius: .2em;
  transition: opacity calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq14-cur nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.uvq14-cur nav a:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
  opacity: 1;
}

.uvq14-cur .wm {
  display: flex;
  justify-content: space-between;
  margin: 0 -.04em -.17em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.uvq14-cur .wm b {
  display: block;
  font-weight: inherit;
  transform: translateY(calc((1 - clamp(0,var(--r,0) * 1.6 - var(--i) * .09,1)) * 105%));
}

.uvq14-cur .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.uvq14-cur .hn {
  position: absolute;
  left: 50%;
  bottom: .8em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: .3em;
  padding: .35em .7em;
  border-radius: 2em;
  font-size: .7em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  translate: -50% 0;
  pointer-events: none;
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
  animation: uvq14-cur-h calc(1.6s / var(--k)) ease-in-out infinite;
}

.uvq14-cur .hn svg {
  width: 1.1em;
  height: 1.1em;
}

.uvq14-cur.moved .hn {
  opacity: 0;
}

.uvq14-cur .sc:focus-visible {
  box-shadow: inset 0 0 0 2px var(--c1);
  border-radius: 1.3em;
}

@keyframes uvq14-cur-h {
  50% {
    transform: translateY(.25em);
  }
}

.uvq14-cur .hn {
  color: var(--c1);
  background: var(--c2);
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const cd=el.querySelector(".cd"),ft=el.querySelector(".ft"),wm=el.querySelector(".wm"),sr=el.querySelector(".ft .sr");
const build=()=>{const s=sr.textContent.trim();wm.textContent="";[...s].forEach((c,i)=>{const b=document.createElement("b");b.textContent=c===" "?"\u00a0":c;b.style.setProperty("--i",i);wm.appendChild(b)});wm.style.fontSize=Math.min((ft.clientWidth-8)/(Math.max(3,s.length)*.84),ft.clientHeight*.62)+"px"};build();const sc=el.querySelector(".sc");const u=()=>{const m=sc.scrollHeight-sc.clientHeight;const p=m>0?sc.scrollTop/m:0;el.style.setProperty("--p",p.toFixed(4));el.classList.toggle("moved",sc.scrollTop>8);const a=cd.getBoundingClientRect(),b=sc.getBoundingClientRect();el.style.setProperty("--r",Math.max(0,Math.min(1,(b.bottom-a.bottom)/(ft.getBoundingClientRect().height||1))).toFixed(3))};sc.addEventListener("scroll",u,{passive:true});const ro=new ResizeObserver(u);ro.observe(sc);u();const mo=new MutationObserver(build);el.querySelectorAll(".ft .sr").forEach(n=>mo.observe(n,{childList:true,characterData:true,subtree:true}));const r2=new ResizeObserver(build);r2.observe(ft);return()=>{ro.disconnect();r2.disconnect();mo.disconnect()}
}

export default function TxFooterCurtain() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#14532d",
          "--c2": "#d9f99d",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq14-cur"><div className="sc" tabIndex={0} aria-label="Aurora"><article className="cd"><p className="kc">Design studio</p><h3>We make brands people remember</h3><p>Identity, web and packaging for people who make things with care. We work from Valencia with clients from anywhere.</p><p>Scroll to the end and you'll know our name.</p></article><footer className="ft"><nav><a href="#">Instagram</a><a href="#">Mail</a><a href="#">Map</a></nav><p className="sr">Aurora</p><p className="wm" aria-hidden="true" translate="no">Aurora</p></footer></div><span className="hn" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><path d="M12 5v14M6 13l6 6 6-6" /></svg>Scroll</span></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
