How to Create Apple-Style Animations with AI

How to Create Apple-Style Animations with AI
Animations on Apple's websites are the standard everyone aspires to. The problem is that creating them requires months of learning After Effects, Lottie, and advanced JavaScript. Or at least it did - until now.
I'm not an animator either. I didn't spend years learning motion design. But thanks to AI tools, I can create scroll animations that look like they came straight from Apple's product pages.
I found the inspiration for this workflow in the AI Launchpad community - a group of over 12,000 people experimenting with AI in practice. That's where I saw how to combine Google Whisk, Flow, and Cursor into a cohesive production pipeline.
In this article, I'll walk you through the complete workflow - from research through image generation, animation creation, all the way to deploying a working site. As an example, I'll use a hero section for an AI services page - something I could actually use myself.
If you've ever wanted to create a product page with smooth animations but lacked the technical skills - this guide is for you.
Why Are Website Animations So Hard?
The traditional approach to creating scroll animations is a real marathon:
- After Effects to create the animation
- Export to Lottie format
- Integration with JavaScript code
- Performance optimization
- Synchronization with scroll position
Each of these steps has its own learning curve. And then there are additional problems:
- Scroll-triggered animations require precise timing
- Animations must be responsive across devices
- Frame-by-frame performance optimization
- Synchronization with scroll position without lag
The result? Most websites look generic. Because creating something truly wow requires combining the skills of a designer, animator, and developer.
AI changes this game completely.
Complete AI Workflow for Animations
Step 1: Research - Understand What Works
Before you start prompting AI, you need to know what you want. Research is the foundation.
Browse product pages of top brands. Pay attention to:
- Color palette and contrast
- Section structure and text positioning
- How animations respond to scrolling
- Timing and pacing of transitions
Save screenshots as references. AI produces generic results without specific inspiration. With references - it creates something unique.
Step 2: Image Generation (Google Whisk)
Now it's time to create static frames that you'll bring to life later. I use Google Whisk for this - a tool that lets you generate images with style references.
The prompt should be specific and descriptive. For a neural network visualization:
Abstract neural network visualization for AI consulting,
dark gradient #0a0e1a to #151b2b,
interconnected nodes in bright green #00ff9d,
synaptic connections in cyan #00b8ff,
floating hexagonal elements with glassmorphism,
futuristic professional aesthetic, no text
Key elements of a good prompt:
- Specify exact colors (hex codes)
- Describe the style (futuristic, professional, glassmorphism)
- Add negative instructions (no text, no letters)
- Indicate composition and mood
Option A: Two frames + Google Flow Generate two frames: a starting and ending frame. For example: a static neural network -> an active network with pulsing connections. Then use Google Flow (step 3) to create the transition.
Option B: Image -> video in Whisk (faster) Whisk also lets you generate video directly from an image. Create one image, then click the video icon and describe the motion. Whisk generates an animation from the static frame - skipping step 3 entirely.
When to choose which option?
- Choose Option A when you want greater control over the transition (e.g., a clear start and end state, specific "storytelling" between frames) and you want a more polished, cinematic animation.
- Choose Option B when you need a quick result from a single image, just want to "bring a static graphic to life," or quickly test a motion idea without preparing two frames.
Step 3: Creating the Animation (Google Flow) - Optional
Google Flow is a tool that creates smooth transitions between frames.
Upload two images (start + end) and describe the transition:
Neural network awakening, nodes lighting up sequentially,
data flowing through connections, synaptic pulses,
smooth cinematic transition, professional tech aesthetic
AI generates a video with a smooth transition between frames. The magic happens automatically - you don't have to animate each element individually.
Step 4: Converting Video to Image Sequence
Here's the crux of the entire workflow. Scroll animations don't work with video - they work with image sequences that display in response to scroll position.
Tool: Online Convert (free)
- Upload the video from Google Flow or Whisk
- Choose the number of frames (24-60 fps)
- Download the archive of JPEG frames
Result: a folder with dozens of images that create a smooth animation when displayed sequentially.
Cursor: AI IDE for Building Pages with Animations
Cursor is an AI-powered IDE that lets you build complete websites through conversation with AI. In Composer mode, you can describe what you need, and Cursor generates working code.
Project Configuration (.cursorrules)
Before you start building, create a .cursorrules file in the root folder of your project. These are the rules that AI will follow in every prompt:
1. Always use semantic HTML5 elements for accessibility and SEO
2. Maintain consistent spacing using 8px grid system
3. All animations should respect prefers-reduced-motion for accessibility
4. Use CSS variables for colors to enable easy theme switching
5. Use Framer Motion for scroll-triggered animations
6. Image sequence should be loaded progressively for performance
Why does this matter? One-time configuration, permanent benefits. Every component will be consistent without repeating these instructions.
Structural Prompt for the Site Foundation
In Composer mode (Cmd+I / Ctrl+I), describe the site structure:
Create an AI consulting landing page with React and Tailwind:
- Dark theme (#0a0e1a to #151b2b gradient)
- Hero section with neural network animation
- Services section highlighting AI automation
- Case studies carousel
- CTA for consultation booking
Style: futuristic, professional, tech-forward
Typography: Inter for body, bold geometric headlines
Color accents: #00ff9d (green), #00b8ff (cyan)
Cursor generates the complete site structure with React components. Hero, services, case studies, CTA - all ready for customization.
Integrating Animations with Scroll Trigger
Now the most important step. Add all frames to the public/frames/ folder and use this prompt in Cursor:
Create a scroll-triggered animation component using Framer Motion.
Load image sequence from /frames/ folder (frame-001.webp to frame-060.webp).
Animation should play forward as user scrolls down, reverse when scrolling up.
Use useScroll and useTransform hooks for smooth interpolation.
Full viewport height hero section with centered text overlay.
Cursor generates a component with Framer Motion that synchronizes frame display with scroll position - exactly like on Apple's websites.
Additional Enhancements
After the basic setup, you can refine details through follow-up prompts:
- Preloading: "Add progressive image preloading for smoother animation"
- Reduced motion: "Add support for prefers-reduced-motion media query"
- Typography: "Use variable font with responsive sizing"
Each prompt refines the page. Iteration is key - Cursor remembers the full project context.
Publishing the Site - Netlify in 5 Minutes
Got a finished site? Time to publish it.
Building the Project
In the Cursor terminal, run the build:
npm run build
Result: a dist folder with the production build, optimized images, and minified code.
Deploying to Netlify
Netlify offers the simplest deployment for static sites:
- Go to netlify.com
- Drag and drop the dist folder onto the page
- Done - the site is live
Alternatively, connect to a GitHub repo for automatic deployments on every push.
Custom domain? Netlify handles this natively - add DNS records and you have a professional address.
Cursor vs Manual Coding - When to Use Which?
| Criterion | Cursor + AI Images | Manual Coding |
|---|---|---|
| Technical Level | Beginner/Intermediate | Advanced |
| Control | High (the code is yours) | Full |
| Customization | Through prompts + editing | Through code |
| Time to Complete | 30-60 minutes | Several hours |
| Best For | Quick prototypes, landing pages | Complex apps |
On my portfolio site, I use hand-written Framer Motion because I need full control over every animation. But if I were building a landing page for a client? Cursor speeds things up significantly - I generate the skeleton, then refine the details.
If you want to learn more about the AI approach to creating UI, check out my article on Vibe Coding.
Key Takeaways
- Research before prompting - without references, AI gives generic results
- Image sequence > video - that's how scroll animations work in practice
- .cursorrules is a game changer - one-time setup, permanent benefits
- Accessibility matters - prefers-reduced-motion isn't optional, it's a standard
- Deployment is simple - Netlify manual upload is literally drag & drop
- Vibe coding isn't magic - it's methodical preparation + AI execution
Need a website with animations that impress?
I help companies create websites with smooth animations and professional design - from concept to deployment.
Book a free consultationUseful Resources
- AI Launchpad - community of 12k+ people experimenting with AI, the inspiration for this workflow
- Google Whisk - AI image generation with style references
- Google Flow - creating smooth transitions between frames
- Cursor - AI-powered IDE for building sites and applications
- Online Convert - converting video to image sequences
- Netlify - free hosting for static sites
- Framer Motion - animation library for React
FAQ
Is Cursor free and what are its limitations?
Cursor offers a free tier with limited AI queries (around 50 slower queries per month). The free version is enough for this workflow. The Pro plan ($20/month) gives unlimited access to fast AI models and priority responses. Check current pricing at cursor.sh - AI tool pricing models change frequently.
How many frames do I need for a smooth scroll animation on a website?
For a smooth animation, you need 24-60 frames per second of animation. In practice, that means 30-90 images for a 2-3 second sequence. More frames = smoother animation, but larger page size. A good compromise: 30-45 frames in WebP format gives a solid balance between smoothness and performance.
Can I use my own photos instead of AI-generated images?
Yes, the workflow works identically with your own photos. Prepare starting and ending photos, use Google Flow to generate the transition, convert to an image sequence. Your own photos give a more authentic look - especially for existing products or branding where AI can't reproduce the exact appearance.
How do I optimize scroll animations for mobile device performance?
Three key optimizations: convert all images to WebP format (70-80% smaller size), use lazy loading for frames outside the viewport, add the CSS media query prefers-reduced-motion: reduce for users with accessibility settings. When generating code through Cursor, add these requirements to your prompt or .cursorrules.
Do I need coding skills to create a website with animations using this workflow?
Basic skills are helpful - you need to run npm install and npm run build in the terminal. Cursor generates the code, but it's worth understanding what it does. Deploying to Netlify is drag & drop. For a simple page with scroll animations, the skills described in this guide are enough - Cursor will explain the code on request.