분류 css

CSS : 선별적인 색상 이미지 효과

컨텐츠 정보

  • 조회 449 (작성일 )

본문

CSS : 


.selective-color-effect { background-image: url(photo.jpg); background-size: cover; background-position: center; } @supports (filter: brightness(3)) and (mix-blend-mode: color) { .selective-color-effect { position: relative; } .selective-color-effect:before, .selective-color-effect:after { display: block; content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: inherit; background-color: red; background-blend-mode: screen; mix-blend-mode: color; filter: brightness(3); } } 

css