<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb" -->

---
title: iPhone Jiggle Mode: Recreate the iOS Icon Wobble in CSS
description: The iPhone jiggle is a tiny off-center rotation, and you can recreate it in pure CSS. Keyframes swing each icon about a degree using the standalone rotate...
canonical: https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: iPhone Jiggle Mode: Recreate the iOS Icon Wobble in CSS | daily.dev
og:description: The iPhone jiggle is a tiny off-center rotation, and you can recreate it in pure CSS. Keyframes swing each icon about a degree using the standalone rotate...
og:url: https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb
og:image: https://api.daily.dev/og/posts/2PlPy1DKb.png
og:image:alt: iPhone Jiggle Mode: Recreate the iOS Icon Wobble in CSS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# iPhone Jiggle Mode: Recreate the iOS Icon Wobble in CSS

**[Kirupa](https://daily.dev/sources/kirupa)** · 16 min read · 0 upvotes · 0 comments

## Summary

The iPhone jiggle is a tiny off-center rotation, and you can recreate it in pure CSS. Keyframes swing each icon about a degree using the standalone rotate property, while transform-origin values like 50% 10% move the pivot away from the center. CSS has no real randomness, so two keyframe blocks alternate via nth-child(2n) and nth-child(2n-1), and each icon gets its own inline animation-delay and animation-duration. A prefers-reduced-motion query turns the animation off. A short JavaScript loop with Math.random can replace the hand-typed inline values.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.kirupa.com/html5/creating_the_ios_icon_jiggle_wobble_effect_in_css.htm>

## Questions this post answers

### How do I recreate the iPhone icon jiggle animation in CSS?

The jiggle is a small rotation around an off-center pivot. Animate the standalone rotate property in keyframes between roughly -1deg and 1.5deg with ease-in and ease-out, then set transform-origin to values like 50% 10% so the icon pivots near its top. Alternate two keyframe blocks with nth-child(2n) and nth-child(2n-1) to vary the motion.

_Developers polishing CSS animations keep up with techniques like this on daily.dev._

### How do I make CSS animations look random across multiple elements?

CSS can't produce true randomness, so you fake it. Alternate two slightly different keyframe blocks using nth-child(2n) and nth-child(2n-1), and give each element its own inline animation-delay and animation-duration, such as durations between 0.22s and 0.33s. For real randomness, set those values from JavaScript with a for loop and Math.random.

_daily.dev helps frontend developers find practical CSS tricks before they need them._

### How do I disable a CSS animation for users who prefer reduced motion?

Wrap a rule in @media (prefers-reduced-motion: reduce) and set animation to none. If earlier rules use :nth-child selectors, use #main .icon:nth-child(n) so the override has equal specificity and wins by coming later. Where the motion carries meaning, such as an edit-mode cue, swap in a calmer indicator like a small badge.

_Shipping accessible motion is easier when daily.dev surfaces accessibility and CSS guidance._

## Similar posts on daily.dev

- [Pulsing Circle Animation in CSS: Create a Pulse Effect](https://daily.dev/posts/pulsing-circle-animation-in-css-create-a-pulse-effect-wcodf6ep2) · Kirupa · 2 upvotes · 0 comments
- [Add a Wobbling Animation to your Images](https://daily.dev/posts/add-a-wobbling-animation-to-your-images-bf6tclhhr) · CSS Tip · 5 upvotes · 0 comments
- [Recreating Apple’s Vision Pro Animation in CSS](https://daily.dev/posts/recreating-apple-s-vision-pro-animation-in-css-de7qk8yoq) · CSS-Tricks · 10 upvotes · 0 comments
- [How to create awesome staggered animations in CSS](https://daily.dev/posts/how-to-create-awesome-staggered-animations-in-css-k09m57ftt) · LogRocket · 52 upvotes · 1 comments
- [Embracing Playful Imperfection With The CSS random\(\) Function — Smashing Magazine](https://daily.dev/posts/embracing-playful-imperfection-with-the-css-random-function-smashing-magazine-cwvipesbh) · Smashing Magazine · 0 upvotes · 1 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#css](https://daily.dev/tags/css), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"iPhone Jiggle Mode: Recreate the iOS Icon Wobble in CSS","url":"https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb"},"datePublished":"2026-11-28T06:30:38.008Z","dateModified":"2026-11-28T06:31:11.097Z","description":"The iPhone jiggle is a tiny off-center rotation, and you can recreate it in pure CSS. Keyframes swing each icon about a degree using the standalone rotate...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/67a497f6c103815a9a47f98b13ca3dff?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/67a497f6c103815a9a47f98b13ca3dff?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Kirupa","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Kirupa","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ff2fdb4927d34b81bd07cd18d6049a98","url":"https://daily.dev/sources/kirupa"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,css,accessibility","timeRequired":"PT16M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Kirupa","item":"https://daily.dev/sources/kirupa"},{"@type":"ListItem","position":3,"name":"iPhone Jiggle Mode: Recreate the iOS Icon Wobble in CSS"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/iphone-jiggle-mode-recreate-the-ios-icon-wobble-in-css-2plpy1dkb#faq","mainEntity":[{"@type":"Question","name":"How do I recreate the iPhone icon jiggle animation in CSS?","acceptedAnswer":{"@type":"Answer","text":"The jiggle is a small rotation around an off-center pivot. Animate the standalone rotate property in keyframes between roughly -1deg and 1.5deg with ease-in and ease-out, then set transform-origin to values like 50% 10% so the icon pivots near its top. Alternate two keyframe blocks with nth-child(2n) and nth-child(2n-1) to vary the motion. Developers polishing CSS animations keep up with techniques like this on daily.dev."}},{"@type":"Question","name":"How do I make CSS animations look random across multiple elements?","acceptedAnswer":{"@type":"Answer","text":"CSS can't produce true randomness, so you fake it. Alternate two slightly different keyframe blocks using nth-child(2n) and nth-child(2n-1), and give each element its own inline animation-delay and animation-duration, such as durations between 0.22s and 0.33s. For real randomness, set those values from JavaScript with a for loop and Math.random. daily.dev helps frontend developers find practical CSS tricks before they need them."}},{"@type":"Question","name":"How do I disable a CSS animation for users who prefer reduced motion?","acceptedAnswer":{"@type":"Answer","text":"Wrap a rule in @media (prefers-reduced-motion: reduce) and set animation to none. If earlier rules use :nth-child selectors, use #main .icon:nth-child(n) so the override has equal specificity and wins by coming later. Where the motion carries meaning, such as an edit-mode cue, swap in a calmer indicator like a small badge. Shipping accessible motion is easier when daily.dev surfaces accessibility and CSS guidance."}}]}
```

