CTA 22
Solid blue CTA card with two phone mockups; the primary button compresses with a tactile press animation.
Requirements
HTML, CSS
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About CTA 22
CTA 22 is a call-to-action section in the Call-to-Action Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 22, 2026.
- cta
- call to action
- phone mockup
- hover
- product mock
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: aria-label.
- HTML elements used: section, button.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px, 1024px.
React + TypeScript + Tailwind CSS
3 files: CTA22.jsx, CTA22.types.ts, CTA22.tailwind.css
- Typed data shapes: PhoneMockConfig.
- Renders without React state or effects.
- ARIA in the markup: aria-label.
- HTML elements used: section, button.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, lg.