CTA 02
Bordered CTA card splitting headline/description from dual actions, with the headline sliding in from the left.
Requirements
HTML, CSS
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About CTA 02
CTA 02 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
- split layout
- bordered card
- dual actions
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.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px, 1024px.
React + TypeScript + Tailwind CSS
3 files: CTA02.jsx, CTA02.types.ts, CTA02.tailwind.css
- Typed data shapes: CtaAction.
- Renders without React state or effects.
- ARIA in the markup: aria-label.
- HTML elements used: section.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, lg.