Jump to main content

Nicolas Hoizey

  • articles
  • billets
  • links
  • notes
  • talks
  • archives
  • about

Jake Archibald avatar Jake Archibald

View transitions: Handling aspect ratio changes

  • Nicolas Hoizey
  • 26 March 2024
  • View Transitions, CSS, animation
  • 8 reactions
Screenshot of “View transitions: Handling aspect ratio changes”

https://jakearchibald.com/2024/view-transitions-handling-aspect-ratio-changes/

When folks ask me for help with view transition animations that "don't quite look right", it's usually because the content changes aspect ratio. Here's how to handle it.

8 reactions

8 likes

  1. Matthias Ott avatar
  2. Marius Gundersen avatar
  3. Xavier Zalawa avatar
  4. James Basoo avatar
  5. Tyler Sticka avatar
  6. lief avatar
  7. Xavier Zalawa avatar
  8. Tyler Sticka avatar
  • Older: The Business Case for Digital Accessibility
  • Newer: Identifying Font Subsetting Opportunities with Web Font Analyzer

Related contents with similar topics

  1. screenshot of Complex MPA View Transitions

    Tyler Gaw avatar Tyler Gaw

    Complex MPA View Transitions

    • Nicolas Hoizey
    • 18 November 2023
    • View Transitions, CSS, animation
    • 4 reactions

    Worth mentioning again that this is just CSS with a touch of HTML. Also worth pointing out that very little of this is specific to CSS view transitions.…

  2. screenshot of View transitions and stacking context: Why does my CSS View Transition ignore z-index?

    Nic Chan avatar Nic Chan

    View transitions and stacking context: Why does my CSS View Transition ignore z-index?

    • Nicolas Hoizey
    • 30 October 2023
    • View Transitions, CSS
    • 7 reactions

    Paint order, the order in which your elements are painted, cannot be easily calculated without applying a complex algorithm, especially since many…

  3. screenshot of Synchronize videos, 3D-models, etc. to Scroll-Driven Animations

    Bramus Van Damme avatar Bramus Van Damme

    Synchronize videos, 3D-models, etc. to Scroll-Driven Animations

    • Nicolas Hoizey
    • 24 June 2023
    • CSS, animation, scroll
    • 10 reactions

    With Scroll-Driven Animations it’s really easy to animate elements as they enter/exit/whatever. But what if you want to sync a video to that? Or maybe…

  4. HTML and CSS based View Transitions are coming

    • Nicolas Hoizey
    • 19 May 2023
    • CSS, View Transitions
    • 52 reactions

    While same-document View Transitions have now been available for a while in Chromium browsers for Single Page Applications (SPA), they were requiring the use of a JavaScript API. Chrome Canary now allows us to develop and test View Transitions with HTML and CSS only, obviously targeting Multiple Pages Applications (aka Web sites 🤷‍♂️).

  5. screenshot of Early Days Examples of View Transitions

    Chris Coyier avatar Chris Coyier

    Early Days Examples of View Transitions

    • Nicolas Hoizey
    • 19 May 2023
    • CSS, View Transitions
    • 3 reactions

    All of these are page transitions, like when you leave one page and go to another. As opposed to the document.startViewTransition kind, which are…

If you want to share an error or suggest an enhancement of this content, please edit the source on GitHub.

© Nicolas Hoizey

Built with Eleventy