<div class="backdrop">
<p class="shapes">🍃</p>
<p class="shapes">🍂</p>
<p class="shapes">\</p>
</div>
<p class="content"><img width="70px" style="float: left;margin-right: 10px;" src="https://images.unsplash.com/photo-1533104816931-20fa691ff6ca?w=100&q=60" alt="">Top ten tourists spots for the summer vacation <br><br><i style="font-weight: normal;">Here are the most popular places...</i></p>
.backdrop {
background: center / cover no-repeat
url("https://images.unsplash.com/photo-1556993683-f5dcad606dd0?w=500&q=60");
width: 400px;
height: 300px;
overflow: hidden;
border-radius: 20px;
filter: brightness(1.7);
cursor: default;
}
.shapes {
color: transparent;
background-color: rgba(0, 0, 0, 0.4);
text-shadow: 0 0 20px beige;
mix-blend-mode: multiply;
font: bolder 320pt/320pt monospace;
margin-top: -100px;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
}
.backdrop:hover > .shapes:nth-of-type(1) {
animation: 2s ease-in-out infinite alternate move;
}
.backdrop:hover > .shapes:nth-of-type(2):hover {
animation: 4s ease-in-out infinite alternate move1;
}
.content {
isolation: isolate;
width: 300px;
height: 100px;
background-image: linear-gradient(45deg, white, beige, white, beige);
padding: 25px;
border-radius: 10px;
font-family: "Gentium Basic", cursive;
font-weight: bold;
pointer-events: none;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
}
body > *,
.backdrop > * {
grid-area: 1/1;
}
body,
.backdrop {
display: grid;
}
body {
margin: 0;
align-items: center;
justify-items: center;
height: 100vh;
}
@keyframes move {
from {
text-indent: -20px;
}
to {
text-indent: 20px;
}
}
@keyframes move1 {
from {
text-indent: -60px;
}
to {
text-indent: 40px;
}
}
/* for chrome */
@supports (-webkit-app-region:none) {
.shapes {
text-shadow: 0 0 10px beige;
}
}
/* this is a demo code only */
This Pen doesn't use any external JavaScript resources.