-3
나는 행동 유도 상자를 디자인했습니다. 호버에 둥근 모양을 추가하는 것이 아이디어입니다. 이 모양을 부드럽게 밀어 넣어야합니다. 이 프로그램을 만드는 방법에 대한 아이디어 나 예제가 있습니까? 지금은호버의 둥근 모양이있는 사각 버튼
Normal state on the left. On the right the hover state.
감사합니다.
Arjan
나는 행동 유도 상자를 디자인했습니다. 호버에 둥근 모양을 추가하는 것이 아이디어입니다. 이 모양을 부드럽게 밀어 넣어야합니다. 이 프로그램을 만드는 방법에 대한 아이디어 나 예제가 있습니까? 지금은호버의 둥근 모양이있는 사각 버튼
Normal state on the left. On the right the hover state.
감사합니다.
Arjan
.square{
background: #bc82ff;
width: 200px;
height: 200px;
padding: 20px;
color: white;
word-break: break-all;
position: relative;
overflow: hidden;
cursor: pointer;
}
.square > p{
color: white;
position: relative;
}
.circle{
position: absolute;
width: 300px;
height: 300px;
border-radius: 100%;
background: #a672e9;
bottom: 100%;
left: -30px;
transition: bottom 0.5s;
}
.square:hover > .circle{
bottom: 20px;
}
<div class="square">
<span class="circle"></span>
<p>12312312312312312321321312321</p>
</div>
당신은 당신의 노력을 보여주기 위해 시도해야합니다.
참조하십시오.
도움을 주셔서 감사합니다 :) –
StackOverflow에 오신 것을 환영합니다! 시도에 대한 [최소, 완전하며 검증 가능한 예] (http://stackoverflow.com/help/mcve)를 입력하십시오. [Stack Snippet] (https://blog.stackoverflow.com/2014/09/introducing-runnable-javascript-css-and-html-code-snippets/)이므로 문제를 해결하고 그 이유를 설명 할 수 있습니다. 당신 자신의 시도는 실패했습니다 - 당신이 당신의 미래 발전에 유용한 것을 배울 수있을뿐만 아니라이 한 가지 문제에 대한 답을 얻는 것. – andreas