Cómo crear animación de bola en movimiento en CSS

Aprende a crear una animación de bola en movimiento en CSS paso a paso y descubre variantes para personalizarla. Encuentra ejemplos de código y consejos para mejorar la accesibilidad. Además, conoce más sobre los servicios de Q2BSTUDIO en desarrollo de software a medida, inteligencia artificial y ci

16 ago 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Cómo crear una animación de bola en movimiento en CSS explicado paso a paso y traducido al español

Crear una animación de bola que se mueva es sencillo con CSS moderno. La idea básica es dibujar un elemento circular con border-radius 50 por ciento, posicionarlo y animar su transform y top/left o translate para generar movimiento suave. También se puede jugar con sombras, degradados y filtros para dar sensación de profundidad.

Biblioteca y clases disponibles en butterfly css

En mi librería butterfly css puedes usar varias animaciones ya preparadas para bolas en movimiento, por ejemplo ball-move-1 hasta ball-move-5. Un ejemplo rápido de uso es este marcado:

<div ball-move-1 h-500 w-full gradient-1></div>

Ejemplo mínimo de CSS para una bola en movimiento

.ball{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#ff7a18,#af002d);position:absolute;left:0;top:50%;transform:translateY(-50%);} @keyframes ballMove1{0%{transform:translate(0, -50%);}50%{transform:translate(80%, -50%);}100%{transform:translate(0, -50%);} } .ball.animate{animation:ballMove1 4s ease-in-out infinite;}

Variantes y consejos

Puedes crear varias variantes cambiando la trayectoria en keyframes, la duración, la función de tiempo y aplicando transform: translate3d para activar la aceleración por GPU. Para movimientos más complejos combina varias animaciones, por ejemplo una animación para la posición horizontal y otra para el rebote vertical con timing diferente.

Ejemplo de keyframes para rebote y desplazamiento diagonal

@keyframes ballDiagonal{0%{transform:translate(0,0) scale(1);}25%{transform:translate(30%, -40%) scale(0.95);}50%{transform:translate(60%,0) scale(1.05);}75%{transform:translate(30%,40%) scale(0.95);}100%{transform:translate(0,0) scale(1);} }

Uso práctico y accesibilidad

Asegura contraste suficiente con el fondo y añade prefer-reduced-motion para respetar usuarios con movilidad reducida. Ejemplo: @media (prefers-reduced-motion: reduce){.ball.animate{animation:none;}}

Recursos y enlaces

cdn https://cdn.jsdelivr.net/gh/AMR2010M/butterfly-css@main/attributes.css

docs https://butterfly-css.netlify.app/docs#ball-animations

Sobre Q2BSTUDIO y servicios relacionados

Q2BSTUDIO es una empresa de desarrollo de software y aplicaciones a medida especializada en soluciones a medida para empresas. Ofrecemos servicios de software a medida, aplicaciones a medida, integración de inteligencia artificial y soluciones de ciberseguridad. Nuestro equipo desarrolla agentes IA, soluciones de ia para empresas y proyectos de inteligencia artificial a la medida de cada cliente.

Además brindamos servicios cloud aws y azure, servicios inteligencia de negocio y análisis con herramientas como power bi para obtener dashboards y reporting robusto. Si necesita software a medida o desarrollar una app con IA, agentes IA o reforzar la ciberseguridad de sus sistemas Q2BSTUDIO puede ayudar con consultoría, diseño, desarrollo e implementación.

Posicionamiento y palabras clave

En Q2BSTUDIO trabajamos con términos clave como aplicaciones a medida, software a medida, inteligencia artificial, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio, ia para empresas, agentes IA y power bi para mejorar su presencia online y atraer clientes interesados en transformación digital.

Contacto y siguiente paso

Si quieres integrar animaciones como bolas en movimiento en tus interfaces o necesitas desarrollar una aplicación a medida con componentes visuales y comportamiento avanzado impulsado por inteligencia artificial contacta con Q2BSTUDIO para una propuesta personalizada.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.