<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34" -->

---
title: Animations and transitions from and to display none with...
description: Chrome 117 introduces @starting-style, a new CSS feature enabling transitions and animations to and from display:none, as well as for elements entering the...
canonical: https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Animations and transitions from and to display none with @starting-style | daily.dev
og:description: Chrome 117 introduces @starting-style, a new CSS feature enabling transitions and animations to and from display:none, as well as for elements entering the...
og:url: https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34
og:image: https://api.daily.dev/og/posts/a1A4Esr34.png
og:image:alt: Animations and transitions from and to display none with @starting-style
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.

# Animations and transitions from and to display none with @starting-style

**[utilitybend](https://daily.dev/sources/utilitybend)** · 8 min read · 0 upvotes · 0 comments

## Summary

Chrome 117 introduces @starting-style, a new CSS feature enabling transitions and animations to and from display:none, as well as for elements entering the DOM. The piece explains why this was previously impossible per the CSS Transitions spec, demonstrates keyframe-based display:none animations (already supported in Chrome 116), and walks through practical examples using @starting-style combined with the new transition-behavior: allow-discrete property, including fading cards, animating list items entering the DOM, and animating popovers/dialogs in the top-layer.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/animations-and-transitions-from-and-to-display-none-with-at-starting-style>

## Questions this post answers

### How do I animate an element transitioning to and from display: none in CSS?

Use the @starting-style at-rule together with the transition-behavior: allow-discrete property, supported starting in Chrome 117. Define a transition on opacity and display, set transition-behavior: allow-discrete (which must come last if placed in the transition shorthand), and use @starting-style to declare the element's initial opacity (e.g. 0) so the browser knows what state to transition from when the element enters the DOM or becomes visible.

_daily.dev surfaces browser feature updates like this for developers building animated interfaces._

### What is the transition-behavior: allow-discrete CSS property for?

It allows discrete properties, which normally jump abruptly between values instead of interpolating, to be transitioned smoothly. Display is a discrete property, so without allow-discrete a transition on display would just snap instantly; with it, combined with @starting-style, display can participate in a fade-style transition to and from none.

_Developers tracking new CSS transition capabilities can keep up with changes like this on daily.dev._

### Why couldn't CSS transitions previously start on an element that was hidden or just added to the DOM?

The CSS Transitions Level 1 spec required an element to have a defined before-change style from the previous style change event before a transition could start, meaning elements not rendered previously (hidden or newly created) had no valid starting point. CSS Transitions Level 2 introduces @starting-style to explicitly define that starting style, removing this limitation.

_Staying current on spec-level CSS changes like this helps developers avoid animation workarounds; daily.dev tracks such updates._

## Similar posts on daily.dev

- [Dialog enter animations with @starting-style](https://daily.dev/posts/dialog-enter-animations-with-starting-style-oq8lgkznv) · RUBYLAND · 2 upvotes · 0 comments
- [How to debug @starting-style at-rule in Chrome DevTools](https://daily.dev/posts/how-to-debug-starting-style-at-rule-in-chrome-devtools-wedhjrjkt) · CSS Weekly · 2 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#google-chrome](https://daily.dev/tags/google-chrome)

[View this post on daily.dev](https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34)

```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":"Animations and transitions from and to display none with @starting-style","url":"https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34"},"datePublished":"2026-09-20T07:43:29.303Z","dateModified":"2026-09-20T07:44:43.207Z","description":"Chrome 117 introduces @starting-style, a new CSS feature enabling transitions and animations to and from display:none, as well as for elements entering the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1de4403dedf1179fe7efab28ce2b5669?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1de4403dedf1179fe7efab28ce2b5669?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","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":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,google-chrome","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"Animations and transitions from and to display none with @starting-style"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/animations-and-transitions-from-and-to-display-none-with-starting-style-a1a4esr34#faq","mainEntity":[{"@type":"Question","name":"How do I animate an element transitioning to and from display: none in CSS?","acceptedAnswer":{"@type":"Answer","text":"Use the @starting-style at-rule together with the transition-behavior: allow-discrete property, supported starting in Chrome 117. Define a transition on opacity and display, set transition-behavior: allow-discrete (which must come last if placed in the transition shorthand), and use @starting-style to declare the element's initial opacity (e.g. 0) so the browser knows what state to transition from when the element enters the DOM or becomes visible. daily.dev surfaces browser feature updates like this for developers building animated interfaces."}},{"@type":"Question","name":"What is the transition-behavior: allow-discrete CSS property for?","acceptedAnswer":{"@type":"Answer","text":"It allows discrete properties, which normally jump abruptly between values instead of interpolating, to be transitioned smoothly. Display is a discrete property, so without allow-discrete a transition on display would just snap instantly; with it, combined with @starting-style, display can participate in a fade-style transition to and from none. Developers tracking new CSS transition capabilities can keep up with changes like this on daily.dev."}},{"@type":"Question","name":"Why couldn't CSS transitions previously start on an element that was hidden or just added to the DOM?","acceptedAnswer":{"@type":"Answer","text":"The CSS Transitions Level 1 spec required an element to have a defined before-change style from the previous style change event before a transition could start, meaning elements not rendered previously (hidden or newly created) had no valid starting point. CSS Transitions Level 2 introduces @starting-style to explicitly define that starting style, removing this limitation. Staying current on spec-level CSS changes like this helps developers avoid animation workarounds; daily.dev tracks such updates."}}]}
```

