File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,18 +87,18 @@ class Robot extends Component {
8787 } }
8888 children = { value => < div >
8989 < div
90- className = { classNames ( 'robot-container' , this . props . levelWon ? 'b3-container-animation' : '' ) }
90+ className = { classNames ( 'robot-container' , { 'b3-container-animation' : this . props . levelWon } ) }
9191 style = { {
9292 height : value . scale ,
9393 width : value . scale ,
9494 top : value . y - 12 ,
9595 left : value . x ,
9696 transform : `translate(-50%, -50%)` ,
9797 } } >
98- < img src = "/resources/images/shadow.svg" className = { classNames ( 'shadow' , { 'shadow-animation' : this . props . levelWon } ) } />
98+ < img src = "/resources/images/shadow.svg" className = { classNames ( 'b3- shadow' , { 'b3- shadow-animation' : this . props . levelWon } ) } />
9999 </ div >
100100 < div
101- className = { classNames ( 'robot-container' , this . props . levelWon ? 'b3-container-animation' : '' ) }
101+ className = { classNames ( 'robot-container' , 'up-down-animation' , { 'b3-container-animation' : this . props . levelWon } ) }
102102 style = { {
103103 height : value . scale ,
104104 width : value . scale ,
Original file line number Diff line number Diff line change 99 overflow : visible ;
1010}
1111
12+ .up-down-animation {
13+ animation : upDown 400ms ease-in-out infinite alternate ;
14+
15+ @keyframes upDown {
16+ 0% {
17+ translate : 0 min (-0.22vw , -0.22vh );
18+ }
19+ 100% {
20+ translate : 0 max (0.22vw , 0.22vh );
21+ }
22+ }
23+ }
24+
1225.b3-container-animation {
1326 position : absolute ;
1427 width : 100% ;
1528 height : 100% ;
16- z-index : 100 ;
17- overflow : visible ;
1829 animation : fadeOut 1.8s ease-in normal forwards ;
1930
2031 @keyframes fadeOut {
2132 from {
2233 opacity : 1 ;
2334 }
24-
2535 to {
2636 opacity : 0.4 ;
2737 top : -30% ;
2838 }
2939 }
3040}
3141
32- @keyframes leftright {
33- 0% {
34- transform : translateX (-0.2vw );
35- }
36- 100% {
37- transform : translateX (0.2vw );
38- }
39- }
40-
4142.b3-robot {
4243 width : 100% ;
4344 height : 100% ;
4445 z-index : 100 ;
4546 overflow : visible ;
4647
47- animation : leftright 400ms ease-in-out infinite alternate ;
4848
4949 @media screen and (max-width : 850px ) {
5050 width : 40% ;
5151 height : 40% ;
5252 }
5353}
5454
55- .shadow {
55+ .b3- shadow {
5656 width : 90% ;
5757 height : 90% ;
5858 border-radius : 50% ;
5959 z-index : 5 ;
6060 translate : 0% 25% ;
6161 overflow : visible ;
6262
63- animation : leftright 400ms ease-in-out infinite alternate ;
64-
6563 & -animation {
6664 animation : fadeOutShadow 3s ;
6765
You can’t perform that action at this time.
0 commit comments