Skip to content

Mix

The mix layout allows you to overlay one piece of content on top of another. “A” is in the background and “B” is in the foreground. You can specify opacity and mix mode for each layer to create interesting effects.

mix:
a:
opacity: 0.6
image: placeholders/example-program.webp
b:
mixMode: difference
generator: test-pattern

Type: content engine

The content to display in the left section of the screen. This can be any engine, including another layout.


Type: content engine

The content to display in the right section of the screen. This can be any engine, including another layout.

Type: normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity | plus-darker | plus-lighter

The blend mode to use with each layer. Accepts any valid CSS mix-blend-mode value.


Type: number

The opacity of the layer, ranging from 0.0 (fully transparent) to 1.0 (fully opaque). The default value is 1.0.