@@ -167,28 +167,116 @@ li {
167167 /* Firefox */
168168}
169169
170- /*-------- WhatsApp------------------------------------------------*/
171- .whatsapp-container {
170+
171+ /* floating button */
172+ @-webkit-keyframes come-in {
173+ 0% {
174+ -webkit-transform : translatey (100px );
175+ transform : translatey (100px );
176+ opacity : 0 ;
177+ }
178+ 30% {
179+ -webkit-transform : translateX (-50px ) scale (0.4 );
180+ transform : translateX (-50px ) scale (0.4 );
181+ }
182+ 70% {
183+ -webkit-transform : translateX (0px ) scale (1.2 );
184+ transform : translateX (0px ) scale (1.2 );
185+ }
186+ 100% {
187+ -webkit-transform : translatey (0px ) scale (1 );
188+ transform : translatey (0px ) scale (1 );
189+ opacity : 1 ;
190+ }
191+ }
192+ @keyframes come-in {
193+ 0% {
194+ -webkit-transform : translatey (100px );
195+ transform : translatey (100px );
196+ opacity : 0 ;
197+ }
198+ 30% {
199+ -webkit-transform : translateX (-50px ) scale (0.4 );
200+ transform : translateX (-50px ) scale (0.4 );
201+ }
202+ 70% {
203+ -webkit-transform : translateX (0px ) scale (1.2 );
204+ transform : translateX (0px ) scale (1.2 );
205+ }
206+ 100% {
207+ -webkit-transform : translatey (0px ) scale (1 );
208+ transform : translatey (0px ) scale (1 );
209+ opacity : 1 ;
210+ }
211+ }
212+
213+ .floating-container {
172214 position : fixed;
173- width : 60px ;
174- height : 60px ;
175- bottom : 30px ;
176- right : 30px ;
177- background-color : # 25d366 ;
178- box-shadow : rgba (0 , 0 , 0 , 0.25 ) 0px 54px 55px , rgba (0 , 0 , 0 , 0.12 ) 0px -12px 30px , rgba (0 , 0 , 0 , 0.12 ) 0px 4px 6px , rgba (0 , 0 , 0 , 0.17 ) 0px 12px 13px , rgba (0 , 0 , 0 , 0.09 ) 0px -3px 5px ;
179- color : # FFF ;
215+ z-index : 9999 ;
216+ width : 150px ;
217+ height : 100px ;
218+ bottom : 0 ;
219+ right : 0 ;
220+ margin : 35px 25px ;
221+ }
222+ .floating-container : hover {
223+ height : 300px ;
224+ }
225+ .floating-container : hover .floating-button {
226+ box-shadow : 0 10px 25px rgba (29 , 26 , 26 , 0.6 );
227+ -webkit-transform : translatey (5px );
228+ transform : translatey (5px );
229+ -webkit-transition : all 0.3s ;
230+ transition : all 0.3s ;
231+ }
232+ .floating-container : hover .element-container .float-element : nth-child (1 ) {
233+ -webkit-animation : come-in 0.4s forwards 0.2s ;
234+ animation : come-in 0.4s forwards 0.2s ;
235+ }
236+ .floating-container : hover .element-container .float-element : nth-child (2 ) {
237+ -webkit-animation : come-in 0.4s forwards 0.4s ;
238+ animation : come-in 0.4s forwards 0.4s ;
239+ }
240+ .floating-container : hover .element-container .float-element : nth-child (3 ) {
241+ -webkit-animation : come-in 0.4s forwards 0.6s ;
242+ animation : come-in 0.4s forwards 0.6s ;
243+ }
244+ .floating-container : hover .element-container .float-element : nth-child (4 ) {
245+ -webkit-animation : come-in 0.4s forwards 0.8s ;
246+ animation : come-in 0.4s forwards 0.8s ;
247+ }
248+ .floating-container .floating-button {
249+ position : absolute;
250+ width : 65px ;
251+ height : 65px ;
252+ background : # E8EAEA ;
253+ bottom : 0 ;
180254 border-radius : 50% ;
255+ left : 0 ;
256+ right : 0 ;
257+ margin : auto;
258+ margin-right : 0px ;
259+ color : white;
260+ line-height : 65px ;
181261 text-align : center;
182- display : flex;
183- align-items : center;
184- justify-content : center;
185- z-index : 99999 ;
262+ font-size : 23px ;
263+ z-index : 9999 ;
264+ box-shadow : 0 10px 25px -5px rgba (232 , 234 , 234 , 0.6 );
265+ cursor : pointer;
266+ -webkit-transition : all 0.3s ;
267+ transition : all 0.3s ;
186268}
187-
188- .whatsapp-icon {
189- width : 35px ;
190- height : 35px ;
269+ .floating-container .float-element {
270+ position : relative;
271+ display : block;
272+ z-index : 0 ;
273+ opacity : 0 ;
274+ float : right;
275+ margin : 10px auto;
276+ -webkit-transform : translateY (100px );
277+ transform : translateY (100px );
191278}
279+ /* end */
192280
193281/* tree representation classes */
194282.tree {
@@ -357,17 +445,13 @@ li {
357445 font-size : 0.75rem !important ;
358446 }
359447
360- .whatsapp-container {
361-
362- width : 40px ;
363- height : 40px ;
364- bottom : 16px ;
365- right : 12px ;
448+ .floating-container {
449+ width : 150px ;
450+ height : 70px ;
451+ margin : 16px !important ;
366452 }
367-
368- .whatsapp-icon {
369- width : 25px ;
370- height : 25px ;
453+ .floating-container .floating-button {
454+ margin-right : 0px !important ;
371455 }
372456 .data-section {
373457 height : 50px ;
0 commit comments