SVG Paper Plane Trail
An SVG paper plane follows a curved flight path toward a contact action.
An SVG paper plane follows a curved flight path toward a contact action.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<a class="tbx-1143" href="#message"><span class="tbx-1143__canvas" aria-hidden="true"><svg viewBox="0 0 146 66" width="146" height="66" role="img"><path class="tbx-1143__trace" d="M12 52 Q 58 8 131 22" fill="none" stroke="#a8cfd5" stroke-width="2" stroke-dasharray="5 7"/><path class="tbx-1143__plane" d="M0 0 L25 -7 L15 13 L10 5 L0 0 Z M10 5 L25 -7" fill="#f1b677" stroke="#a56542" stroke-width="1.3" stroke-linejoin="round"/></svg></span><span class="tbx-1143__label"><small>SEND A MESSAGE</small><strong>Contact us ↗</strong></span></a>
.tbx-1143{box-sizing:border-box;display:block;width:min(306px,100%);height:196px;position:relative;overflow:hidden;background:#1e4b61;color:#fff;border-radius:11px;font-family:system-ui,sans-serif;text-decoration:none}
.tbx-1143__canvas{display:grid;place-items:center;height:124px}.tbx-1143__canvas svg{overflow:visible;max-width:100%}.tbx-1143__plane{transform:translate(5px,47px) rotate(-25deg);transform-box:fill-box;transform-origin:center;transition:transform .72s cubic-bezier(.22,.7,.15,1)}
.tbx-1143__trace{stroke-dasharray:0 300;transition:stroke-dasharray .72s}
.tbx-1143__label{position:absolute;left:18px;right:18px;bottom:15px;display:grid;gap:7px;padding-top:10px;border-top:1px solid #82aabb}.tbx-1143 small{font-size:9px;color:#a8cfd5;font-weight:800;letter-spacing:.13em}.tbx-1143 strong{font-size:16px}
.tbx-1143:is(:hover,:focus-visible) .tbx-1143__plane{transform:translate(125px,12px) rotate(22deg)}.tbx-1143:is(:hover,:focus-visible) .tbx-1143__trace{stroke-dasharray:5 7}
.tbx-1143:focus-visible{outline:3px solid #f1b677;outline-offset:4px}
@media (prefers-reduced-motion: reduce) { .tbx-1143, .tbx-1143 *, .tbx-1143::before, .tbx-1143::after, .tbx-1143 *::before, .tbx-1143 *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
How to Use
Insert the HTML and add the CSS to your stylesheet. Adjust colors and sizes and avoid class conflicts.
Use Case
Useful for contact sections and calls to action.
Technical Notes
Keep controls usable on touch devices. Test keyboard focus and reduced-motion preferences.
Mobile: Ensure the interactive content remains accessible without hover on touch devices.
Browser: Uses modern CSS. Check behavior in the browsers you support.
Reduced Motion: Check that prefers-reduced-motion is respected.