Arrow Bend
A copy-paste morphing shapes component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Morphing ShapesHTMLCSSany framework
Copy into your project
HTML
<!-- Arrow Bend -->
<div class="nuda-ms2-arrow-bend" role="img" aria-label="Arrow rotating through the four cardinal directions">
<span class="nuda-ms2-arrow-bend__shape" aria-hidden="true"></span>
</div>CSS
.nuda-ms2-arrow-bend {
display: flex;
align-items: center;
justify-content: center;
width: 100px;
height: 100px;
}
.nuda-ms2-arrow-bend__shape {
width: 64px;
height: 64px;
background: linear-gradient(135deg,#e4ff54,#a3b830);
clip-path: polygon(50% 0%,100% 50%,68% 50%,68% 100%,32% 100%,32% 50%,0% 50%);
animation: _nuda-ms2ArrowBend 4s ease-in-out infinite;
will-change: transform;
}
@keyframes _nuda-ms2ArrowBend {
0% {
transform: rotate(0deg) scale(1);
}
20% {
transform: rotate(0deg) scale(1.08);
}
25% {
transform: rotate(90deg) scale(1);
}
45% {
transform: rotate(90deg) scale(1.08);
}
50% {
transform: rotate(180deg) scale(1);
}
70% {
transform: rotate(180deg) scale(1.08);
}
75% {
transform: rotate(270deg) scale(1);
}
95% {
transform: rotate(270deg) scale(1.08);
}
100% {
transform: rotate(360deg) scale(1);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ms2-arrow-bend__shape {
animation: none;
transform: rotate(0deg) scale(1);
}
}
How to use Arrow Bend
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.