A mobile-first, performance-optimized animated hero component featuring a smooth-spinning barber pole.
Clean, modern aesthetic inspired by classic barbershop tradition. Professional and timeless with subtle sophistication.
CSS-based animation runs smoothly at 60fps. Lightweight SVG implementation with no external dependencies.
Fully responsive design scales perfectly from phones to desktop. Touch-friendly and optimized for all screen sizes.
Respects prefers-reduced-motion. Semantic HTML and proper ARIA labels ensure inclusive experience.
Smooth 4-second rotation cycle using CSS transforms. No jitter, no heavy CPU usage. Battery-friendly implementation.
Drop-in HTML/CSS/SVG component. No JavaScript required. Copy-paste ready for any project.
/* Core Animation */
@keyframes rotatePole {
0% { transform: rotateZ(0deg); }
100% { transform: rotateZ(360deg); }
}
.pole-spin {
animation: rotatePole 4s linear infinite;
transform-origin: 50% 50%;
transform-box: fill-box;
}
/* Respects user motion preferences */
@media (prefers-reduced-motion: reduce) {
.pole-spin {
animation: none;
opacity: 0.8;
}
}