Platform
Solutions
Resources
Pricing
Sign in
Sign up
Nick Otts
Workspace
Fork
Public
By
Nick Otts
Edited
Feb 8, 2023
Fork of
Overlay images
3
Insert cell
md
`# Overlay images`
Insert cell
md
`Opacity layer 1`
Insert cell
viewof
opacity1
=
html
`<input type="range" min="0" max="100" value="100"></input>`
Insert cell
viewof
opacity2
=
html
`<input type="range" min="0" max="100" value="50"></input>`
Insert cell
viewof
opacity3
=
html
`<input type="range" min="0" max="100" value="50"></input>`
Insert cell
viewof
blendmode
=
html
`<select>
<option value=normal>Normal
<option value=darken>Darken
<option value=lighten>Lighten
<option value=multiply>Multiply
<option value=screen>Screen
<option value=overlay>Overlay
</select>`
Insert cell
md
`
<div style="position: relative;">
<img src="${
await
FileAttachment
(
"Laag 1-rescaled.png"
)
.
url
(
)
}" style="position: absolute; top: 0px; opacity: ${
opacity1
/
100
}; mix-blend-mode: ${
blendmode
};">
<img src="${
await
FileAttachment
(
"Laag 2-rescaled.png"
)
.
url
(
)
}" style="position: absolute; top: 0px; opacity: ${
opacity2
/
100
}; mix-blend-mode: ${
blendmode
}">
<img src="${
await
FileAttachment
(
"Laag 3-rescaled.png"
)
.
url
(
)
}" style="opacity: ${
opacity3
/
100
}; mix-blend-mode: ${
blendmode
}">
</div>`
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Compare fork
Fork
View
Export
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
opacity1
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
opacity2
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
opacity3
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
blendmode
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML