File: /var/www/html/ossfs/winghung.com/FlipBook/wh/chuapromote1/mobile/style/spirit.css
.lyric{
width:190px;
height:70px;
position:absolute;
right:55px;
bottom:280px;
background:rgba(0,0,0,0.6);
border-radius:10px;
color:#ffffff;
padding:10px;
font-size:15px;
text-align:center;
display:none;
}
.lyric .lyrics{
width:100%;
left:0;
top:0;
position:relative;
-webkit-animation: 0.1s ease-in-out;
animation: 0.1s ease-in-out;
}
.lyric .on{
font-weight: bold;
color: #36a3e1;
}
.lyric li{
list-style:none;
line-height:20px;
}
.lyric .arrow{
border-width:6px 8px 6px 8px;
border-style:solid;
border-color:rgba(0,0,0,0.6) transparent transparent transparent;
position:absolute;
left:99px;
top:100%;
}
.spirit{
transition: bottom 0.3s linear;
width:140px;
height:220px;
position:absolute;
right:90px;
bottom:40px;
z-index:1000;
}
.spirit .person{
width:140px;
height:220px;
position:absolute;
left:0;
top:0;
}
.spirit .shadow{
position:absolute;
z-index:-1;
left:0;
right:0;
bottom:0;
margin:auto;
}
.Peter .shadow{
position:absolute;
z-index:-1;
left:-10px;
right:0;
bottom:-6px;
margin:auto;
width:90px;
}
.talk{
background-position:0 0;
animation:talkmove 3s infinite steps(1, end) both;
-webkit-animation:talkmove 3s infinite steps(1, end) both;
}
.stand{
background-position:280px 660px;
animation:standmove 16s infinite steps(1, end) both;
-webkit-animation:standmove 16s infinite steps(1, end) both;
}
.Alice{background:url("icon/Alice.png") no-repeat;}
.Peter{background:url("icon/Peter.png") no-repeat;}
@keyframes talkmove{
0% {
background-position:0 0;
}
4% {
background-position:-140px 0;
}
8% {
background-position:-280px 0;
}
16% {
background-position:-420px 0;
}
20% {
background-position:-560px 0;
}
24% {
background-position:-700px 0;
}
28% {
background-position:-840px 0;
}
32% {
background-position:-980px 0;
}
36% {
background-position:0 -220px;
}
40% {
background-position:-140px -220px;
}
44% {
background-position:-280px -220px;
}
48% {
background-position:-420px -220px;
}
52% {
background-position:-560px -220px;
}
56% {
background-position:-700px -220px;
}
60% {
background-position:-840px -220px;
}
64% {
background-position:-980px -220px;
}
68% {
background-position:0 -440px;
}
72% {
background-position:-140px -440px;
}
76% {
background-position:-280px -440px;
}
80% {
background-position:-420px -440px;
}
84% {
background-position:-560px -440px;
}
88% {
background-position:-700px -440px;
}
92% {
background-position:-840px -440px;
}
96% {
background-position:-980px -440px;
}
100% {
background-position:0 -660px;
}
}
@keyframes standmove{
0% {
background-position:-280px -660px;
}
12.5% {
background-position:-420px -660px;
}
25% {
background-position:-560px -660px;
}
37.5% {
background-position:-700px -660px;
}
50% {
background-position:-840px -660px;
}
62.5% {
background-position:-980px -660px;
}
75% {
background-position:0 -880px;
}
87.5% {
background-position:-140px -880px;
}
100% {
background-position:-280px -880px;
}
}
.assist-control{
position: absolute;
bottom: 40px;
left: 23px;
width: 94px;
height: 94px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
}
.assist-btn{
cursor: pointer;
width:40px;
height:40px;
background-color:rgba(11,11,11,0.35);
float:left;
margin:3px;
text-align: center;
line-height: 40px;
}
.assist-btn .assist-icon{
-webkit-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
background-position: center center;
background-repeat: no-repeat;
width:40px;
height:40px;
float:left;
}
.assist-play .assist-icon{
background-image:url("icon/player-play.png");
}
.assist-pause .assist-icon{
background-image:url("icon/player-pause.png");
}
.assist-next .assist-icon{
background-image:url("icon/NE.png");
}
.assist-prev .assist-icon{
background-image:url("icon/PR.png");
}
.assist-sound .assist-icon{
background-image:url("icon/player-volume-full.png");
}
.assist-muted .assist-icon{
background-image:url("icon/player-volume.png");
}
.assist-btn:hover{
opacity: 0.8;
}
.assist-close{
position:absolute;
right:0;
top:0;
width:20px;
height:20px;
opacity: 0.5;
background-color:rgba(11,11,11,0.35);
}
.assist-close .assist-icon{
width:20px;
height:20px;
background-image:url("icon/close.png");
-webkit-transform: rotate(0);
-o-transform: rotate(0);
-moz-transform: rotate(0);
-ms-transform: rotate(0);
}
.assistantButton{
z-index: 111;
transition: all 0.3s;
position: absolute;
right:0;
bottom:0;
width:42px;
height:32px;
cursor:pointer;
opacity: 0.5;
background:url(./icon/assistant.png) center center no-repeat;
background-size: contain;
}
.assistantButton:hover{
opacity: 1;
}