분류 css

CSS : 칠판 이미지 효과

컨텐츠 정보

  • 조회 483 (작성일 )

본문

CSS : 


.chalkboard-effect { background-image: url(photo.jpg); background-size: cover; background-position: center; } @supports (filter: grayscale(1)) and (background-blend-mode: difference) { .chalkboard-effect { background-image: url(photo.jpg), url(photo.jpg); background-blend-mode: difference; background-position: calc(50% - 1px) calc(50% - 1px), calc(50% + 1px) calc(50% + 1px); filter: brightness(1.5) grayscale(1); } } 


css