We only see what we know.
우리는 우리가 아는 것만을 볼 수 있다.
We only see what we know.
우리는 우리가 아는 것만을 볼 수 있다.
마우스 이펙트 - 이미지 효과
<main>
<section id="mouseType04">
<div class="cursor"></div>
<div class="mouse__wrap">
<div class="mouse__img">
<figure>
<img src="img/img2.jpg" alt="이미지">
</figure>
<figcaption>
<p>We only see what we know.</p>
<p>우리는 우리가 아는 것만을 볼 수 있다.</p>
</figcaption>
</div>
</div>
</section>
</main>
body::before {
background: rgba(6, 49, 2, 0.842);
}
.mouse__wrap {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: #fff;
width: 100%;
height: 100vh;
overflow: hidden;
/* cursor: none; */
}
.mouse__img {
padding: relative;
}
.mouse__img figure {
position: relative;
width: 53vw;
height: 50vh;
/* overflow: hidden;
background-color: #ccc;*/
border: 3px solid #fff;
transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.84);
}
.mouse__img figure:hover {
transform: scale(1.025);
}
.mouse__img figure img {
position: absolute;
left: -5%;
top: -5%;
width: 110%;
height: 110%;
opacity: 0.7;
/* background-size: cover; */
object-fit: cover;
}
.mouse__img figcaption {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
font-size: 1.3vw;
line-height: 1.6;
white-space: nowrap;
}
.cursor {
position: absolute;
left: 0;
top: 0;
width: 20px;
height: 20px;
border-radius: 50%;
background: #fff;
z-index: 1000;
user-select: none;
pointer-events: none;
}