<!--
{
  "documentType" : "article",
  "framework" : "AppleNews",
  "identifier" : "/documentation/AppleNews/adding-a-scene",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Adding a Scene"
}
-->

# Adding a Scene

Control how the article’s opening section comes into view.

## Discussion

The fading sticky header scene causes the header to briefly “stick” to the top of the screen and then fade to a defined color.

**On this page, you’ll learn how to add a scene to your article.**

![Side-by-side screenshots of an Apple News article on iPhone showing the effect of scrolling with a fading sticky header scene.](images/com.apple.applenews/media-3624925@2x.png)

To implement a scene, you add a `scene` property to a `section` or `chapter` component.

### Apply a Scene

1. In your working `article.json` file, delete the parallax behavior from the first section. The code you are deleting begins with `"behavior": {` and ends with a closing brace and a comma (`},`).
2. Copy the example code <doc://com.apple.applenews/documentation/AppleNews/adding-a-scene#Scene-Copy-This-Code>.
3. Paste the code inside the first section, replacing the behavior that you deleted in step 1.

Your code should look like the example code <doc://com.apple.applenews/documentation/AppleNews/adding-a-scene#Scene-Result>.

After you make this change in your code, you can preview your working `article.json` file in News Preview to see the fading sticky header scene.

#### Scene: Copy This Code

```json
      "scene": {
        "type": "fading_sticky_header",
        "fadeColor": "#000"
      },
```

#### Scene: Result

Ellipses (`...`) indicate lines of code that have been omitted from this example.

```json
{
  ...
  "components": [
    {
      "role": "section",
      "layout": "fullBleedLayout",
      "scene": {
        "type": "fading_sticky_header",
        "fadeColor": "#000"
      },
      "components": [
        {
          "role": "header",
          "layout": "headerImageLayout",
          "style": {
            "fill": {
              "type": "image",
              "URL": "bundle://header.jpg",
              "fillMode": "cover",
              "verticalAlignment": "top",
              "horizontalAlignment": "center"
            }
          },
          "components": [
            ...
          ]
        }
      ]
    },
    ...
  ],
  ...
}
```

### Previous

<doc://com.apple.applenews/documentation/AppleNews/adding-animations>

### Next

<doc://com.apple.applenews/documentation/AppleNews/viewing-the-finished-article-for-advanced-design-tutorial-2>

## See Also

  <doc://com.apple.applenews/documentation/AppleNews/adding-a-scene-to-a-chapter-or-a-section-header>

[`object FadingStickyHeader`](/documentation/AppleNewsFormat/FadingStickyHeader)

The scene that briefly keeps a header at the top of the screen as the person scrolls through the article.

[`object Section`](/documentation/AppleNewsFormat/Section)

The component for organizing an article into sections.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)