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