Skip to content

Commit

Permalink
some details on paint order
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed May 14, 2024
1 parent 6342c25 commit 0600efd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/starlight/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import MarkTitle from '../bot/MarkTitle.astro';
import SilentCatch from '../bot/SilentCatch.astro';
import SwapSound from '../bot/SwapSound.astro';
import PagefindToTextFragments from './PagefindToTextFragments.astro';
import 'astro-vtbot/components/ReplacementSwap.astro';
import 'astro-vtbot/components/starlight/StarlightConnector.astro';
import SidebarSelect from './SidebarSelect.astro';
import '../../styles/vt.css';
Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/jotter/api/details.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ This is a more elaborated description of what the `startViewTransitions()` funct
<Steps>

1. In the capture phase, the browser saves a bitmap of the current state for each HTML element that has a `view-transition-name` CSS property. This can later be addressed using the `::view-transition-old(<name>)` pseudo element. Together with the image data, further CSS properties are recorded[^1]. \
\
For the captures, elements are ordered from bottom to top starting at the lowest `z-index`. While capturing an image, other elements of "higher" images are not painted and thus the capture shows the element's background in these areas. \
\
All `view-transition-name` values used in the document must be unique. Otherwise the view transition is aborted (after calling the _update callback_, see next step).

Expand Down
1 change: 1 addition & 0 deletions src/content/docs/jotter/snippets/things-to-write-about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ title: Things to write about when I find the time to do so and there are no othe

* how to have the view transition move **behind** some elements in the front?

* how to set break points to investigate the pseudo elements

0 comments on commit 0600efd

Please sign in to comment.