문제 설명
단색 배경의 SVG 투명도 (SVG transparency on a solid background)
유효한 배경에서 신체 배경을 보여주는 투명한 구멍/이미지를 추가해야 합니다.
이 웹사이트를 좋아합니다.
skrill.com skrillex.com 이미지로 추가할 수 있지만 해상도에 따라 크기를 조정해야 합니다. 또한 이 이미지 아래에 몇 가지 설명을 추가하겠습니다.
이 작업을 수행할 수 있는 방법이 있습니까?
참조 솔루션
방법 1:
There are three ways to achieve this effect:
Make the solid background a SVG or PNG, with holes cut through to show the underlying background.
Make the transparent images replicate the background.
Implement the background with
<canvas>
and use JS to achieve this effect by dynamically redrawing the background.
The sites you linked are using one of these approaches.
(by bugraarslan、apscience)