php에 css효과 연결 채택완료
휴휴
3년 전
조회 2,486
고수님들의 답변을 구합니다...ㅠㅠ
홈페이지에 https://jsfiddle.net/a7mdypo6 효과를 넣으려고 합니다
scss를 css로 변환도 잘 해주었고
head.php에도 로 연결을 해주었는데요
홈페이지에선 아무런 효과도 보이지 않습니다
ㅠㅠ
추가로 작성해주어야 하는 코드가 있을까요?
혹시 몰라 star.css 코드를 첨부합니다.
#early2021 {
position: relative;
overflow: hidden;
width: 100%;
min-width: 1200px
}</p>
<p>#early2021 .inner {
position: relative;
width: 1200px;
margin: 0 auto;
}</p>
<p>#early2021 .top {
position: relative;
width: 100%;
background: url('<a href="http://img247.etoos.com/web/w247/images/cnt/recruit/early2021/main_bg.jpg')" target="_blank" rel="noopener noreferrer">http://img247.etoos.com/web/w247/images/cnt/recruit/early2021/main_bg.jpg')</a> 50% 0 #7f15d5;
}</p>
<p>#early2021 .top .inner {
height: 962px;
}</p>
<p>#early2021 .top .main_img {
position: absolute;
z-index: 5;
opacity: 0;
animation-duration: 1s;
animation-fill-mode: both;
}</p>
<p>#early2021 .top .pacles {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}</p>
<p>
#early2021 .top .c1_s img {
position: absolute;
animation: star 20s linear infinite;
margin-left: 0;
margin-top: 0;
opacity: 0;
}</p>
<p>#early2021 .top .c1_s img:nth-child(1) {
animation-delay: 0;
animation-duration: 1.6s
}</p>
<p>#early2021 .top .c1_s img:nth-child(2) {
animation-delay: -1.5s;
animation-duration: 1.4s
}</p>
<p>#early2021 .top .c1_s img:nth-child(3) {
animation-delay: -0.7s;
animation-duration: 1.2s
}</p>
<p>#early2021 .top .c1_s img:nth-child(4) {
animation-delay: -1s;
animation-duration: 1s
}</p>
<p>#early2021 .top .c1_s img:nth-child(5) {
animation-delay: 0.2s;
animation-duration: 2s
}</p>
<p>#early2021 .top .c1_s img:nth-child(6) {
animation-delay: -2s;
animation-duration: 1.8s
}</p>
<p>#early2021 .top .c1_s img:nth-child(7) {
animation-delay: -0.5s;
animation-duration: 1.2s
}</p>
<p>#early2021 .top .c1_s img:nth-child(8) {
animation-delay: -1.2s;
animation-duration: 2s
}</p>
<p>@keyframes star {
from {
opacity: 0;
margin-left: 0;
margin-top: 0
}</p>
<p> 35% {
opacity: 1;
margin-left: -5%;
margin-top: 5%
}</p>
<p> 70% {
opacity: 0;
margin-left: -10%;
margin-top: 10%
}</p>
<p> to {
opacity: 0;
margin-left: -10%;
margin-top: 10%
}
}
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인
실제 작업한 사이트 주소를 봐야 하지 않을까요?