분류 css

CSS : 환각 이미지 효과

컨텐츠 정보

  • 조회 434 (작성일 )

본문

CSS : 


.hallucination-effect { background-image: url(photo.jpg); background-size: cover; background-position: center; } @supports (mix-blend-mode: multiply) { .hallucination-effect { position: relative; overflow: hidden; background-color: magenta; background-blend-mode: screen; } .hallucination-effect:before, .hallucination-effect:after { display: block; content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: inherit; mix-blend-mode: multiply; transform: scale(1.05); } .hallucination-effect:before { background-color: yellow; background-blend-mode: screen; transform-origin: top left; } .hallucination-effect:after { background-color: cyan; background-blend-mode: screen; transform-origin: bottom right; } } 


css