---
title: "Heavy animation that holds up on any phone — Akshay Maurya"
url: "https://www.akshaymaurya.com/work/cred-motion"
description: "The CRED interactions I built in Flutter: what they had to survive on a 2GB Android phone, and the calls I made on top of the design."
---

# Heavy animation that holds up on any phone

The CRED interactions I built in Flutter: what they had to survive on a 2GB Android phone, and the calls I made on top of the design.

- **Context:** Mobile Engineering, CRED
- **My part:** Built every interaction on this page in Flutter, from designs by CRED’s Design Mafia team, with my own additions. Led the Gift Cards frontend.
- **Period:** 06.2024 — 03.2026
- **Stack:** Flutter, Rive, Lottie, CustomPainter, Shaders, Implicit and explicit animations

## Results

- **6 of 7** clips on this page are featured on 60fps.design ([source](https://60fps.design/apps/cred), as of 13 Nov 2026)

## Problem

A lot of CRED is how a moment feels: a voucher that pops when you claim it, a badge that lands with weight, a streak that celebrates. CRED’s Design Mafia team draws those moments beautifully. My job was to make them feel the same in your hand as they did in the design, on whatever phone you happen to own.

That is harder than it sounds. A heavy animation that looks right on a flagship can stutter on an older phone, and a stutter in a reward moment reads as a cheap reward. So the problem was never just “build the animation”. It was “build it so that nobody notices how much work it is”.

*Fig. 2. Voucher claimed: the tap that confirms a reward, built with Lottie and Rive together. Source: 60fps.design, “CRED Voucher Claimed Tap Interaction”.*

## Constraints

The range was the constraint. These animations had to run on everything from old, slow Android phones with 2GB of RAM to the newest flagship iPhones, and they had to look smooth, stay performant and stay beautiful on all of them at once.

The second constraint was weight. Every animation needs assets, and each one had to either ship inside the app or download from the internet. Bundling makes the app bigger. Fetching risks the animation arriving late, or not at all. The deciding question was nearly always *when* the user sees it. An animation needed right away can’t wait on the network; one that comes later has time to download.

Then there was the tooling. No single tool covers all of this work, so I picked per animation: Rive, Lottie, CustomPainter, shaders, and both implicit and explicit animations in Flutter. The complex ones combine several, such as Rive and Lottie inside a single animation.

*Fig. 3. Deal cards in a 3D carousel you swipe through, drawn with CustomPainter. Source: 60fps.design, “CRED Deal Cards 3D Carousel Swipe Interaction”.*


## My part

I built every interaction on this page in Flutter. The designs came from CRED’s Design Mafia team, and they were already beautiful. On top of them I added tweaks and improvements of my own, and the next section is about two of those.

The way we worked made that possible. The process was fast, and it felt natural. The design team trusted me, so after a handoff they rarely needed to ask me anything. When an implementation was done, I set up a UAT meeting and gave them a real device running the real build, so they could feel their design in the hand instead of in a prototype. We usually ran a second UAT the next day, once the fixes from the first were in. Then it merged and shipped.

*Fig. 4. A tooltip that shows you the swipe before you try it, built in Lottie. Source: 60fps.design, “CRED Swipe Left Tooltip”.*

## Decision

The milestone badges came to me with a static gradient behind them. I made it a shader instead. The background breathes, and its colours shift to match the milestone you have reached, so each badge gets a backdrop of its own rather than one shared gradient. Same screen, same information, and now it feels alive.

*Fig. 5. Milestone badges over a shader background that breathes and changes colour per milestone. Source: 60fps.design, “CRED Milestone Badges Interaction”.*

The gift card carousel was a similar call. As designed, it worked, but it looked basic. I gave it gestures, with scale and opacity animations, so it is both nicer to look at and more intuitive to use.

*Fig. 6. The gift card picker: gestures driving scale and opacity animations, then the amount input. Source: 60fps.design, “CRED Gift Card Carousel Picker Number Input Interaction”.*

## What I didn’t do

I didn’t pick a side. For the collected badges, design wanted them to arrive one at a time. I felt that each new badge pushing the previous one out of the way would look better. Rather than settle that by argument, I built a small framework that supports both.

It also handles the harder problem underneath. You might collect one badge or six, and a fixed animation that feels right for one feels slow for six. So the framework runs in either of two timing modes: a hard time budget, where all the collected badges fit inside a set number of seconds, or a fixed duration for each badge. Either way, from one badge to six, the animation never gets too slow or too fast and still feels natural, and the choice between the two styles became a setting instead of a disagreement.

*Fig. 7. Collected badges, timed by a framework that fits one to six badges in a time budget or gives each a fixed duration. Source: 60fps.design, “CRED Collected Badges Animation”.*

## Result

Six of the seven clips on this page are featured on 60fps.design, a public collection of app animation, on its CRED page. The same page lists me in its “Team behind CRED” credits. That credit is for the app, not for each clip. All seven shipped to production at CRED.

I also led the frontend for Gift Cards, the product behind the picker in Fig. 6. While I was there, Gift Cards ranked second in India by GMV. That is an internal figure, not public, so it isn’t in the results list at the top.

The questions from this work are the ones I bring to a motion or performance audit now. Where does the app stutter, and on which phones? What does each animation cost in app size, and should it ship in the app or come over the network? Which fixes matter most?

## What I’d change

The process worked, but every change design wanted still went through me. They asked for it, I implemented it, and they saw it on the device at the next UAT.

Now, in the era of agents, I would build a tweak menu: a panel where designers change the values themselves and see the result in real time. Seeing the change as it runs helps them make better choices. It also saves the back and forth, and the time spent implementing each change.

[Play with the techniques →](/lab)

## Work like this

This case study is evidence for motion and performance audits. Open to Flutter, iOS (SwiftUI), Android, and AI-mobile roles, plus contract builds, motion and performance audits, and advisory work (as of 11 Nov 2026).

- Email: akshaymaurya3006@gmail.com with the subject "Motion audit, like your CRED work: <your app>"
- Call: https://calendar.app.google/TFVnHmarrefPJv5V6
- Plans: https://www.hashstudios.in/#pricing
