DEV Community

Denis
Denis

Posted on

How Our AI Agents Built an Accessible Text-to-Motion Animator in Record Time

Devlog: Accessible Text-to-Motion Animator

In a world where visual content reigns supreme, it's crucial to create animations that are not only engaging but also accessible. At Pixel Office, we constantly strive to push the boundaries of what's possible with AI, and our latest project, the Accessible Text-to-Motion Animator, is a shining example.

The Technical Challenge: Animations for Everyone

Traditional animation creation can be time-consuming and often overlooks accessibility principles. The goal was to build a tool that automates the process of turning text into animated content while integrating key accessibility features from the outset – such as contrasting colors, controllable animation speeds, and auto-generated alternative text (alt-text).

Our AI Agents in Action

Our team of AI agents, Jan (the Coder) and Klára (the Designer), embraced this challenge with enthusiasm. Their collaboration was instrumental in the rapid development of this complex tool.

Klára: The Visionary of Design and Accessibility

Klára focused on the user interface and experience. Her task was to design an intuitive and flexible interface that would allow users to easily input text, select animation styles, and customize visual elements like fonts, colors, and background. Crucially, Klára carefully designed the implementation of accessibility features – ensuring sufficient color contrast, adjustable animation speeds, and visual indicators for alt-text generation. Her design ensured that accessibility isn't an afterthought but a foundational pillar of the tool.

Jan: The Architect of Code and Functionality

Jan took Klára's designs and transformed them into robust, functional code. He built the core animation engine that efficiently converts text into dynamic movements. He integrated customization options and ensured the smooth generation of GIFs and WebM videos. Jan also implemented the business logic for the free and premium versions of the tool, including the integration of payments via Stripe.

Our biggest technical hurdle was ensuring a seamless experience from free trials to paid unlocks. The generationCount in localStorage tracks free usage, and Firebase authentication securely manages access to premium features. The WIDGET_SLUG is crucial for isolating each widget's data, giving us flexibility.

        const WIDGET_SLUG = "accessible-text-motion-animator";
        const PIXELOFFICE_WHATSAPP_NUMBER = "420607450436";
        const API_BASE = "https://api.pixeloffice.eu/api/pay";
        const AUTH_DOMAIN = "pixeloffice-hub.firebaseapp.com";
        const PROJECT_ID = "pixeloffice-hub";

        // Initialize Firebase
        const firebaseConfig = {
            apiKey: "AIzaSyFakeKeyForShowcaseHubAuthTestingOnly",
            authDomain: AUTH_DOMAIN,
            projectId: PROJECT_ID,
            storageBucket: "pixeloffice-hub.appspot.com",
            messagingSenderId: "1234567890",
            appId: "1:1234567890:web:abcdef123456"
        };
        if (!firebase.apps.length) {
            firebase.initializeApp(firebaseConfig);
        }
        const auth = firebase.auth();
        let currentUser = null; // Store current user state

        let isUnlocked = false;
        let generationCount = parseInt(localStorage.getItem(`pv_actions_${WIDGET_SLUG}`) || '0');

// ... a další multijazyčné překlady
Enter fullscreen mode Exit fullscreen mode

Martin: Ensuring Quality and Accessibility

Martin, our AI QA agent, played an indispensable role in testing the tool. He thoroughly verified functionality, responsiveness, and animation quality across various devices and browsers. However, his primary task was to ensure that all promised accessibility features truly worked and met standards, including contrast checking and verification of generated alt-text.

Tomáš: Seamless Deployment

After intensive development and testing, Tomáš ensured the smooth deployment of the Accessible Text-to-Motion Animator. His work guaranteed that the tool is stable, scalable, and secure, ready for use by the global community of content creators.

Key Features for Developers and Creators

  • Rapid Creation: Convert text to animations in seconds.
  • Customization: Extensive options for adjusting fonts, colors, backgrounds, and animation styles.
  • Integrated Accessibility: Contrast checking, controlled animation speed, and alt-text suggestions.
  • Free & Pro Versions: A free version for basic animations with a watermark (3 generations). A premium version for $1.99 unlocks unlimited, watermark-free generations, advanced presets, high-resolution exports, and comprehensive accessibility reports.
  • Robust Backend: Leveraging Firebase for authentication and Stripe for payments.

Try It Out Yourself!

We are thrilled to introduce this tool. We believe it will help content creators produce more engaging and inclusive visual materials. Try out the Accessible Text-to-Motion Animator on our live demo: https://pixeloffice.eu/showcase/accessible-text-motion-animator/

Let us know how you'll use it in your projects! Your feedback is invaluable to us.

Top comments (0)