1
나는이 로고 애니메이션 작업을하고있다. 창 너비를 작게하면 로고가 반응합니다. 그러나 애니메이션 사탕 배경 이미지가 아래에 표시됩니다. 창 크기를 조정할 때 맨 위에있는 객체 뒤에 숨기는 데 어려움을 겪고 있습니다. 그래서 나는 그것을 숨기거나이 문제오브젝트의 나머지 부분과 함께 애니메이션 배경 이미지 스케일을 만드시겠습니까?
어떤 생각을 피하기 위해/응답 확장하기 위해 노력하고 있어요? JS FIDDLE
@keyframes animatedBackground2 {
0% {
background-position: 0px;
}
100% {
background-position: 0px 956px;
}
/* set this to the height of the image */
}
@-webkit-keyframes animatedBackground2 {
0% {
background-position: 0px;
}
100% {
background-position: 0px 956px;
}
/* set this to the height of the image */
}
@-ms-keyframes animatedBackground2 {
0% {
background-position: 0px;
}
100% {
background-position: 0px 956px;
}
/* set this to the height of the image */
}
@-moz-keyframes animatedBackground2 {
0% {
background-position: 0px;
}
100% {
background-position: 0px 956px;
}
/* set this to the height of the image */
}
@-webkit-keyframes Wobble {
from {
-webkit-transform: rotate(6deg);
}
to {
-webkit-transform-origin: center center;
-webkit-transform: rotate(-6deg);
}
}
.candyWobble {
-webkit-animation: Wobble ease-in-out 0.7s infinite alternate;
}
.candy-animate-wrap {
width: 255px;
position: absolute;
height: 200px;
overflow: hidden;
border-radius: 100%;
top: 30px;
}
#animate-area2 {
width: 213px;
height: 956px;
display: flex;
position: absolute;
background-image: url(https://vapesocietysupplies.com/wp-content/uploads/2017/05/scbg-2.jpg);
background-position: 0 0;
background-repeat: repeat-y;
max-width: 277px;
animation: animatedBackground2 8s infinite linear;
-ms-animation: animatedBackground2 8s infinite linear;
-moz-animation: animatedBackground2 8s infinite linear;
-webkit-animation: animatedBackground2 8s infinite linear;
}
<div class="candyCo-VSSlogo">
<img class="candyWobble" src="https://vapesocietysupplies.com/wp-content/uploads/2017/05/CanyCo-textlogo-1.png" style="width:100%;max-width:277px; position:absolute;z-index:2;">
<img class="cover" src="https://vapesocietysupplies.com/wp-content/uploads/2017/05/CanyCo-VSS-Cover-bg.png" style="width:100%;max-width:277px;position:absolute;z-index:1;">
<div class="candy-animate-wrap">
<div id="animate-area2"></div>
</div>
</div>
감사 :
여기 내 코드입니다!
방법 candyWobble 뒤에 세 번째 이미지에 대한 숨겨진 오버 플로우 등의 사업부 커버? – Syfer
나는 무엇을 의미하는지 모르겠다. jsfiddle를 통해 나에게 모범을 보여줄 수 있습니까? 감사합니다. – Patrick