# Letters that fall with gravity

> Press the button and the headline letters drop, bounce off the floor and lie scattered; another press puts them back.

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

## Where to use it

A tiny physics loop gives every letter its own weight, spin and bounce, so the word collapses onto a wooden shelf in a slightly different way each time. Pressing again springs every letter back to its place with a staggered transition. It is a good surprise for 404 pages, playful launches, kids' content or a portfolio that wants a smile.

Write a short word in the text field and choose the two clay colors with the main and secondary colors. The real heading stays intact for screen readers, and with reduced motion the letters land at once without bouncing.

## Code

### HTML

```html
<div class="uvq14-grv"><div class="bx"><h3 class="sr">Gravity</h3><div class="ws" aria-hidden="true" translate="no">Gravity</div><i class="fl" aria-hidden="true"></i></div><button type="button" class="tg" aria-pressed="false"><span class="a">Drop the letters</span><span class="b">Pick up</span></button></div>
```

### CSS

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

.uvq14-grv {
  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;
  width: 20em;
  display: grid;
  justify-items: center;
  gap: 1em;
}

.uvq14-grv .bx {
  position: relative;
  width: 20em;
  height: 11em;
  border-radius: 1.2em;
  overflow: hidden;
  background: linear-gradient(color-mix(in srgb,var(--fg) 10%,transparent) 1px,transparent 1px) 0 0/100% 1.4em,color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq14-grv .ws {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.3em;
  display: flex;
  justify-content: center;
  font-size: calc(var(--s) * 3.3);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.uvq14-grv .ws b {
  display: inline-block;
  font-weight: inherit;
  color: var(--c1);
  text-shadow: 0 .045em 0 color-mix(in srgb,var(--c1) 60%,#000),0 .1em .1em rgba(0,0,0,.25);
  will-change: transform;
}

.uvq14-grv .ws b:nth-child(3n+2) {
  color: var(--c2);
  text-shadow: 0 .045em 0 color-mix(in srgb,var(--c2) 55%,#000),0 .1em .1em rgba(0,0,0,.25);
}

.uvq14-grv .ws b:nth-child(3n) {
  color: color-mix(in srgb,var(--c1) 50%,var(--c2));
}

.uvq14-grv.back .ws b {
  transition: transform calc(0.7s / var(--k)) cubic-bezier(.34,1.56,.64,1);
  transition-delay: calc(var(--i) * 35ms);
}

.uvq14-grv .fl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1em;
  background: linear-gradient(#b7793f,#8a5528);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25);
}

.uvq14-grv .tg {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .55em 1.1em;
  border-radius: 2em;
  font-size: .78em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq14-grv .tg:hover {
  transform: translateY(-2px);
}

.uvq14-grv .tg:active {
  transform: scale(.95);
}

.uvq14-grv .tg:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq14-grv .tg[aria-pressed=true] .a,.uvq14-grv .tg[aria-pressed=false] .b {
  display: none;
}

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

@media (prefers-reduced-motion:reduce) {
  .uvq14-grv,.uvq14-grv *,.uvq14-grv *::before,.uvq14-grv *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq14-grv").forEach(el => {
  const sr=el.querySelector(".sr"),ws=el.querySelector(".ws"),bx=el.querySelector(".bx"),fl=el.querySelector(".fl"),tg=el.querySelector(".tg");const rm=matchMedia("(prefers-reduced-motion: reduce)").matches;let L=[],raf=0;
const build=()=>{cancelAnimationFrame(raf);raf=0;tg.setAttribute("aria-pressed","false");el.classList.remove("back");ws.textContent="";L=[...sr.textContent.trim()].map((c,i)=>{const b=document.createElement("b");b.textContent=c===" "?"\u00a0":c;b.style.setProperty("--i",i);ws.appendChild(b);return{b}})};
const put=o=>o.b.style.transform="translate("+o.x.toFixed(1)+"px,"+o.y.toFixed(1)+"px) rotate("+o.r.toFixed(1)+"deg)";
const drop=()=>{el.classList.remove("back");const W=bx.clientWidth,F=bx.clientHeight-fl.offsetHeight;L.forEach((o,i)=>{const b=o.b;Object.assign(o,{x:0,y:0,r:0,vx:(Math.random()-.5)*5,vy:-2-Math.random()*5,vr:(Math.random()-.5)*12,t:i*3,rest:false,max:F-(ws.offsetTop+b.offsetTop+b.offsetHeight*.98),minx:-(ws.offsetLeft+b.offsetLeft),maxx:W-(ws.offsetLeft+b.offsetLeft+b.offsetWidth)})});
if(rm){L.forEach(o=>{o.y=o.max;o.r=(Math.random()-.5)*24;put(o)});return}
const step=()=>{let live=false;L.forEach(o=>{if(o.t>0){o.t--;live=true;return}if(o.rest)return;live=true;o.vy+=.75;o.x+=o.vx;o.y+=o.vy;o.r+=o.vr;if(o.x<o.minx){o.x=o.minx;o.vx*=-.6}if(o.x>o.maxx){o.x=o.maxx;o.vx*=-.6}if(o.y>=o.max){o.y=o.max;o.vy*=-.45;o.vx*=.82;o.vr*=.6;if(Math.abs(o.vy)<1.4)o.vy=0}if(o.y>=o.max-.5&&o.vy===0){o.vx*=.85;o.vr*=.7;o.r+=(Math.max(-16,Math.min(16,o.r))-o.r)*.3;if(Math.abs(o.vx)<.1&&Math.abs(o.vr)<.1)o.rest=true}put(o)});raf=live?requestAnimationFrame(step):0};cancelAnimationFrame(raf);raf=requestAnimationFrame(step)};
const back=()=>{cancelAnimationFrame(raf);raf=0;el.classList.add("back");L.forEach(o=>o.b.style.transform="")};
tg.addEventListener("click",()=>{const on=tg.getAttribute("aria-pressed")!=="true";tg.setAttribute("aria-pressed",String(on));on?drop():back()});
build();const mo=new MutationObserver(build);el.querySelectorAll(".sr").forEach(n=>mo.observe(n,{childList:true,characterData:true,subtree:true}));return()=>{mo.disconnect();cancelAnimationFrame(raf)}
});
```

### 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-grv {
  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;
  width: 20em;
  display: grid;
  justify-items: center;
  gap: 1em;
}

.uvq14-grv .bx {
  position: relative;
  width: 20em;
  height: 11em;
  border-radius: 1.2em;
  overflow: hidden;
  background: linear-gradient(color-mix(in srgb,var(--fg) 10%,transparent) 1px,transparent 1px) 0 0/100% 1.4em,color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq14-grv .ws {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.3em;
  display: flex;
  justify-content: center;
  font-size: calc(var(--s) * 3.3);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.uvq14-grv .ws b {
  display: inline-block;
  font-weight: inherit;
  color: var(--c1);
  text-shadow: 0 .045em 0 color-mix(in srgb,var(--c1) 60%,#000),0 .1em .1em rgba(0,0,0,.25);
  will-change: transform;
}

.uvq14-grv .ws b:nth-child(3n+2) {
  color: var(--c2);
  text-shadow: 0 .045em 0 color-mix(in srgb,var(--c2) 55%,#000),0 .1em .1em rgba(0,0,0,.25);
}

.uvq14-grv .ws b:nth-child(3n) {
  color: color-mix(in srgb,var(--c1) 50%,var(--c2));
}

.uvq14-grv.back .ws b {
  transition: transform calc(0.7s / var(--k)) cubic-bezier(.34,1.56,.64,1);
  transition-delay: calc(var(--i) * 35ms);
}

.uvq14-grv .fl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1em;
  background: linear-gradient(#b7793f,#8a5528);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25);
}

.uvq14-grv .tg {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .55em 1.1em;
  border-radius: 2em;
  font-size: .78em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq14-grv .tg:hover {
  transform: translateY(-2px);
}

.uvq14-grv .tg:active {
  transform: scale(.95);
}

.uvq14-grv .tg:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq14-grv .tg[aria-pressed=true] .a,.uvq14-grv .tg[aria-pressed=false] .b {
  display: none;
}

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

@media (prefers-reduced-motion:reduce) {
  .uvq14-grv,.uvq14-grv *,.uvq14-grv *::before,.uvq14-grv *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// 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 sr=el.querySelector(".sr"),ws=el.querySelector(".ws"),bx=el.querySelector(".bx"),fl=el.querySelector(".fl"),tg=el.querySelector(".tg");const rm=matchMedia("(prefers-reduced-motion: reduce)").matches;let L=[],raf=0;
const build=()=>{cancelAnimationFrame(raf);raf=0;tg.setAttribute("aria-pressed","false");el.classList.remove("back");ws.textContent="";L=[...sr.textContent.trim()].map((c,i)=>{const b=document.createElement("b");b.textContent=c===" "?"\u00a0":c;b.style.setProperty("--i",i);ws.appendChild(b);return{b}})};
const put=o=>o.b.style.transform="translate("+o.x.toFixed(1)+"px,"+o.y.toFixed(1)+"px) rotate("+o.r.toFixed(1)+"deg)";
const drop=()=>{el.classList.remove("back");const W=bx.clientWidth,F=bx.clientHeight-fl.offsetHeight;L.forEach((o,i)=>{const b=o.b;Object.assign(o,{x:0,y:0,r:0,vx:(Math.random()-.5)*5,vy:-2-Math.random()*5,vr:(Math.random()-.5)*12,t:i*3,rest:false,max:F-(ws.offsetTop+b.offsetTop+b.offsetHeight*.98),minx:-(ws.offsetLeft+b.offsetLeft),maxx:W-(ws.offsetLeft+b.offsetLeft+b.offsetWidth)})});
if(rm){L.forEach(o=>{o.y=o.max;o.r=(Math.random()-.5)*24;put(o)});return}
const step=()=>{let live=false;L.forEach(o=>{if(o.t>0){o.t--;live=true;return}if(o.rest)return;live=true;o.vy+=.75;o.x+=o.vx;o.y+=o.vy;o.r+=o.vr;if(o.x<o.minx){o.x=o.minx;o.vx*=-.6}if(o.x>o.maxx){o.x=o.maxx;o.vx*=-.6}if(o.y>=o.max){o.y=o.max;o.vy*=-.45;o.vx*=.82;o.vr*=.6;if(Math.abs(o.vy)<1.4)o.vy=0}if(o.y>=o.max-.5&&o.vy===0){o.vx*=.85;o.vr*=.7;o.r+=(Math.max(-16,Math.min(16,o.r))-o.r)*.3;if(Math.abs(o.vx)<.1&&Math.abs(o.vr)<.1)o.rest=true}put(o)});raf=live?requestAnimationFrame(step):0};cancelAnimationFrame(raf);raf=requestAnimationFrame(step)};
const back=()=>{cancelAnimationFrame(raf);raf=0;el.classList.add("back");L.forEach(o=>o.b.style.transform="")};
tg.addEventListener("click",()=>{const on=tg.getAttribute("aria-pressed")!=="true";tg.setAttribute("aria-pressed",String(on));on?drop():back()});
build();const mo=new MutationObserver(build);el.querySelectorAll(".sr").forEach(n=>mo.observe(n,{childList:true,characterData:true,subtree:true}));return()=>{mo.disconnect();cancelAnimationFrame(raf)}
}

export default function TxGravityLetters() {
  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": "#f43f5e",
          "--c2": "#facc15",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq14-grv"><div className="bx"><h3 className="sr">Gravity</h3><div className="ws" aria-hidden="true" translate="no">Gravity</div><i className="fl" aria-hidden="true"></i></div><button type="button" className="tg" aria-pressed="false"><span className="a">Drop the letters</span><span className="b">Pick up</span></button></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 “Letters that fall with gravity” block (Text & scroll) from AIMRAN Library to my project.

## What it is
Press the button and the headline letters drop, bounce off the floor and lie scattered; another press puts them back.

## Chosen settings
- Main color: #f43f5e
- Secondary color: #facc15
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Gravedad"

## 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-grv {
  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;
  width: 20em;
  display: grid;
  justify-items: center;
  gap: 1em;
}

.uvq14-grv .bx {
  position: relative;
  width: 20em;
  height: 11em;
  border-radius: 1.2em;
  overflow: hidden;
  background: linear-gradient(color-mix(in srgb,var(--fg) 10%,transparent) 1px,transparent 1px) 0 0/100% 1.4em,color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq14-grv .ws {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.3em;
  display: flex;
  justify-content: center;
  font-size: calc(var(--s) * 3.3);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.uvq14-grv .ws b {
  display: inline-block;
  font-weight: inherit;
  color: var(--c1);
  text-shadow: 0 .045em 0 color-mix(in srgb,var(--c1) 60%,#000),0 .1em .1em rgba(0,0,0,.25);
  will-change: transform;
}

.uvq14-grv .ws b:nth-child(3n+2) {
  color: var(--c2);
  text-shadow: 0 .045em 0 color-mix(in srgb,var(--c2) 55%,#000),0 .1em .1em rgba(0,0,0,.25);
}

.uvq14-grv .ws b:nth-child(3n) {
  color: color-mix(in srgb,var(--c1) 50%,var(--c2));
}

.uvq14-grv.back .ws b {
  transition: transform calc(0.7s / var(--k)) cubic-bezier(.34,1.56,.64,1);
  transition-delay: calc(var(--i) * 35ms);
}

.uvq14-grv .fl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1em;
  background: linear-gradient(#b7793f,#8a5528);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25);
}

.uvq14-grv .tg {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .55em 1.1em;
  border-radius: 2em;
  font-size: .78em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  transition: transform calc(0.25s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq14-grv .tg:hover {
  transform: translateY(-2px);
}

.uvq14-grv .tg:active {
  transform: scale(.95);
}

.uvq14-grv .tg:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq14-grv .tg[aria-pressed=true] .a,.uvq14-grv .tg[aria-pressed=false] .b {
  display: none;
}

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

@media (prefers-reduced-motion:reduce) {
  .uvq14-grv,.uvq14-grv *,.uvq14-grv *::before,.uvq14-grv *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// 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 sr=el.querySelector(".sr"),ws=el.querySelector(".ws"),bx=el.querySelector(".bx"),fl=el.querySelector(".fl"),tg=el.querySelector(".tg");const rm=matchMedia("(prefers-reduced-motion: reduce)").matches;let L=[],raf=0;
const build=()=>{cancelAnimationFrame(raf);raf=0;tg.setAttribute("aria-pressed","false");el.classList.remove("back");ws.textContent="";L=[...sr.textContent.trim()].map((c,i)=>{const b=document.createElement("b");b.textContent=c===" "?"\u00a0":c;b.style.setProperty("--i",i);ws.appendChild(b);return{b}})};
const put=o=>o.b.style.transform="translate("+o.x.toFixed(1)+"px,"+o.y.toFixed(1)+"px) rotate("+o.r.toFixed(1)+"deg)";
const drop=()=>{el.classList.remove("back");const W=bx.clientWidth,F=bx.clientHeight-fl.offsetHeight;L.forEach((o,i)=>{const b=o.b;Object.assign(o,{x:0,y:0,r:0,vx:(Math.random()-.5)*5,vy:-2-Math.random()*5,vr:(Math.random()-.5)*12,t:i*3,rest:false,max:F-(ws.offsetTop+b.offsetTop+b.offsetHeight*.98),minx:-(ws.offsetLeft+b.offsetLeft),maxx:W-(ws.offsetLeft+b.offsetLeft+b.offsetWidth)})});
if(rm){L.forEach(o=>{o.y=o.max;o.r=(Math.random()-.5)*24;put(o)});return}
const step=()=>{let live=false;L.forEach(o=>{if(o.t>0){o.t--;live=true;return}if(o.rest)return;live=true;o.vy+=.75;o.x+=o.vx;o.y+=o.vy;o.r+=o.vr;if(o.x<o.minx){o.x=o.minx;o.vx*=-.6}if(o.x>o.maxx){o.x=o.maxx;o.vx*=-.6}if(o.y>=o.max){o.y=o.max;o.vy*=-.45;o.vx*=.82;o.vr*=.6;if(Math.abs(o.vy)<1.4)o.vy=0}if(o.y>=o.max-.5&&o.vy===0){o.vx*=.85;o.vr*=.7;o.r+=(Math.max(-16,Math.min(16,o.r))-o.r)*.3;if(Math.abs(o.vx)<.1&&Math.abs(o.vr)<.1)o.rest=true}put(o)});raf=live?requestAnimationFrame(step):0};cancelAnimationFrame(raf);raf=requestAnimationFrame(step)};
const back=()=>{cancelAnimationFrame(raf);raf=0;el.classList.add("back");L.forEach(o=>o.b.style.transform="")};
tg.addEventListener("click",()=>{const on=tg.getAttribute("aria-pressed")!=="true";tg.setAttribute("aria-pressed",String(on));on?drop():back()});
build();const mo=new MutationObserver(build);el.querySelectorAll(".sr").forEach(n=>mo.observe(n,{childList:true,characterData:true,subtree:true}));return()=>{mo.disconnect();cancelAnimationFrame(raf)}
}

export default function TxGravityLetters() {
  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": "#f43f5e",
          "--c2": "#facc15",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq14-grv"><div className="bx"><h3 className="sr">Gravity</h3><div className="ws" aria-hidden="true" translate="no">Gravity</div><i className="fl" aria-hidden="true"></i></div><button type="button" className="tg" aria-pressed="false"><span className="a">Drop the letters</span><span className="b">Pick up</span></button></div>
      </div>
    </>
  );
}
```

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