<div>
<img src="https://picsum.photos/500/500?image=503" alt="" />
<img src="https://picsum.photos/500/500?image=503" alt="" />
<p>សណ្តែកត្រជាក់</p>
</div>
<svg>
<filter id="transmissionerror">
<feColorMatrix type="saturate" values="0" in="SourceGraphic" result="colormatrix1" />
<feColorMatrix type="matrix" values="0.95 0 0 0 0 0 0 0 0 0 0 0 0.4 0 0 0 0 0 1 0" in="colormatrix1" result="colormatrix2" />
<feTurbulence type="turbulence" baseFrequency="0.002 0.008" numOctaves="2" seed="5" stitchTiles="noStitch" result="turbulence">
<animate attributeName="baseFrequency" from="0.002 0.008" to="0.002 0.01" dur="3500ms" repeatCount="indefinite" />
<animate attributeName="numOctaves" from="1" to="10" dur="750ms" repeatCount="indefinite" />
<animate attributeName="seed" from="1" to="100" dur="10s" repeatCount="indefinite" />
</feTurbulence>
<feColorMatrix type="saturate" values="30" in="turbulence" result="colormatrix3" />
<feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -15" in="colormatrix3" result="colormatrix4" />
<feDisplacementMap in="colormatrix2" in2="colomatrix4" scale="15" xChannelSelector="R" yChannelSelector="A" result="displacementMap" />
</filter>
</svg>
body {
background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 33%, rgba(255,255,255,0.05) 33%, rgba(255,255,255,0.0) 66%, rgba(255,255,255,0) 66%, rgba(255,255,255,0) 100%), black;
min-height: 100vh;
}
div {
// width: calc(100% - 2rem);
// max-width: 500px;
width: 500px;
max-width: 90vmin;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1rem solid white;
overflow: hidden;
}
div:before {
content: '';
display: block;
width: 100%;
padding-top: 100%;
}
p {
position: absolute;
left: 0;
bottom: 1rem;
width: 100%;
margin: 0;
line-height: 1;
text-align: center;
font: 4.5rem 'Bayon',sans-serif;
color: white;
text-shadow: 0.1em 0.1em 0.5em black;
@media (max-width: 490px) {
font-size: 4rem;
}
@media (max-height: 490px) {
font-size: 4rem;
}
@media (max-width: 450px) {
font-size: 3rem;
}
@media (max-height: 450px) {
font-size: 3rem;
}
@media (max-width: 350px) {
font-size: 2.75rem;
}
@media (max-height: 350px) {
font-size: 2.75rem;
}
}
img {
position: absolute;
left: -1rem;
top: -1rem;
width: calc(100% + 2rem);
}
img:nth-child(1) {
filter: url(#transmissionerror);
}
img:nth-child(2) {
filter: grayscale(100%) contrast(1000%);
mix-blend-mode: multiply;
// display: none;
}
svg {
position: absolute;
}
View Compiled
This Pen doesn't use any external JavaScript resources.