@@ -86,7 +86,7 @@ export default {
8686<style lang="scss" scoped>
8787.is-open {
8888 .covid-map {
89- transform : translate3d (0 , 93.7 % , 0 );
89+ transform : translate3d (0 , 92 vh , 0 );
9090 }
9191}
9292
@@ -141,11 +141,11 @@ export default {
141141}
142142
143143.icon {
144- position : absolute ;
144+ position : relative ;
145145 left : 50% ;
146146 bottom : 0 ;
147147 z-index : 1 ;
148- transform : translate3d (0 , -16 px , 0 );
148+ transform : translate3d (-32 px , calc ( -10 vh - 32 px ) , 0 );
149149 display : flex ;
150150 justify-content : center ;
151151 align-items : center ;
@@ -154,7 +154,22 @@ export default {
154154 height : 64px ;
155155 cursor : pointer ;
156156 background-color : rgba (153 , 0 , 0 , 1 );
157- box-shadow : rgba (0 , 0 , 0 , 0.2 ) 0px 2px 4px -1px , rgba (0 , 0 , 0 , 0.14 ) 0px 4px 5px 0px , rgba (0 , 0 , 0 , 0.12 ) 0px 1px 10px 0px ;
158157 transition : .8s ease ;
158+ animation : float 4s ease-in-out infinite ;
159+ }
160+
161+ @keyframes float {
162+ 0% {
163+ box-shadow : 0 5px 15px 0px rgba (0 , 0 , 0 , 0.6 );
164+ transform : translate3d (-32px , calc (-10vh - 32px ), 0 );
165+ }
166+ 50% {
167+ box-shadow : 0 25px 15px 0px rgba (0 , 0 , 0 , 0.2 );
168+ transform : translate3d (-32px , calc (-10vh - 16px ), 0 );
169+ }
170+ 100% {
171+ box-shadow : 0 5px 15px 0px rgba (0 , 0 , 0 , 0.6 );
172+ transform : translate3d (-32px , calc (-10vh - 32px ), 0 );
173+ }
159174}
160175 </style >
0 commit comments