bar-preview.php
1 year ago
bar-settings.php
1 year ago
customize-bar.php
1 year ago
display-rules.php
1 year ago
email-signup.php
1 year ago
poptin-plugin.php
1 year ago
poptin-popup.php
1 year ago
stickymenu-dashboard.php
1 year ago
bar-preview.php
570 lines
| 1 | <?php |
| 2 | /** |
| 3 | * MSB BarPreview |
| 4 | * |
| 5 | * @author : Premio <contact@premio.io> |
| 6 | * @license : GPL2 |
| 7 | * */ |
| 8 | |
| 9 | if (defined('ABSPATH') === false) { |
| 10 | exit; |
| 11 | } |
| 12 | $button_postion_relative_text = (isset($welcomebar['mysticky_welcomebar_button_postion_relative_text']) ) ? esc_attr($welcomebar['mysticky_welcomebar_button_postion_relative_text']) : ''; |
| 13 | $button_text_postion = (isset($welcomebar['mysticky_welcomebar_button_text_postion']) ) ? esc_attr($welcomebar['mysticky_welcomebar_button_text_postion']) : 'center'; |
| 14 | $button_text_postion_clss = ''; |
| 15 | if ( $button_postion_relative_text == 1 ) { |
| 16 | $button_text_postion_clss = 'mysticky-welcomebar-position-' . $button_text_postion; |
| 17 | } |
| 18 | ?> |
| 19 | <div class="mysticky-welcomebar-preview-wrap"> |
| 20 | <div class="mysticky-welcomebar-setting-right mysticky-welcomebar-preview"> |
| 21 | <div class="mysticky-welcomebar-backword-page"> |
| 22 | <a href="<?php echo esc_url(admin_url("admin.php?page=my-stickymenu-welcomebar"));?>"><span class="dashicons dashicons-arrow-left-alt2 back-dashboard" style="color: unset;font-size: 17px;"></span> Back to Dashboard</a> |
| 23 | </div> |
| 24 | <div class="mysticky-welcomebar-header-title"> |
| 25 | <h3><?php esc_html_e('Preview', 'mystickyelements'); ?></h3> |
| 26 | </div> |
| 27 | <div class="mysticky-welcomebar-preview-screen"> |
| 28 | <?php if(isset($welcomebar['mysticky_welcomebar_font']) && $welcomebar['mysticky_welcomebar_font'] != '' ):?> |
| 29 | <link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr($welcomebar['mysticky_welcomebar_font']) ?>:400,600,700|Lato:400,500,600,700" rel="stylesheet" type="text/css" class="sfba-google-font"> |
| 30 | <?php endif; ?> |
| 31 | <div class="mysticky-welcomebar-fixed mysticky-welcomebar-display-desktop <?php echo esc_attr($display_main_class); ?>" > |
| 32 | <div class="mysticky-welcomebar-fixed-wrap <?php echo esc_attr($button_text_postion_clss);?>"> |
| 33 | <?php |
| 34 | $content_width = (isset($welcomebar['mysticky_welcomebar_enable_lead']) && $welcomebar['mysticky_welcomebar_enable_lead'] === '1') ? '90%' : '75%'; |
| 35 | ?> |
| 36 | <div class="mysticky-welcomebar-content" style="width:<?php echo esc_attr($content_width); ?>"> |
| 37 | <div class="mysticky-welcomebar-static_text" style="display:<?php echo (isset($welcomebar['mysticky_welcomebar_text_type']) && $welcomebar['mysticky_welcomebar_text_type'] == 'static_text') ? 'block' : 'none'; ?>"> |
| 38 | <?php echo isset($welcomebar['mysticky_welcomebar_bar_text'])? stripslashes($welcomebar['mysticky_welcomebar_bar_text']) :"Get 30% off your first purchase";?> |
| 39 | </div> |
| 40 | </div> |
| 41 | |
| 42 | <div class="mysticky-welcomebar-lead-content" <?php if((isset($welcomebar['mysticky_welcomebar_enable_lead']) && $welcomebar['mysticky_welcomebar_enable_lead'] != 1)) :?> style="display:none;" <?php endif; ?>> |
| 43 | |
| 44 | <input type="text" class="preview-lead-name" placeholder="<?php echo esc_attr($welcomebar['lead_name_placeholder']);?>"/> |
| 45 | <input type="text" class="preview-lead-email" placeholder="<?php echo esc_attr($welcomebar['lead_email_placeholder']);?>" style="display:<?php echo (isset($welcomebar['mysticky_welcomebar_lead_input']) && $welcomebar['mysticky_welcomebar_lead_input'] == 'email_address') ? 'flex' : 'none';?>"/> |
| 46 | <input type="text" class="preview-lead-phone" placeholder="<?php echo esc_attr($welcomebar['lead_phone_placeholder']);?>" style="display:<?php echo (isset($welcomebar['mysticky_welcomebar_lead_input']) && $welcomebar['mysticky_welcomebar_lead_input'] == 'phone') ? 'flex' : 'none';?>"/> |
| 47 | |
| 48 | </div> |
| 49 | |
| 50 | <div class="mysticky-welcomebar-btn mysticky-welcomebar-hover-effect-<?php if ($welcomebar['mysticky_welcomebar_hover_effect'] == 'fill_effect_button'){echo esc_attr($welcomebar['mysticky_welcomebar_hover_fill_effect']); }elseif($welcomebar['mysticky_welcomebar_hover_effect'] == 'border_effect_button'){echo esc_attr($welcomebar['mysticky_welcomebar_hover_border_effect']);}else{echo "none";}?>"> |
| 51 | <?php |
| 52 | $mysticky_welcomebar_btn_text = isset($welcomebar['mysticky_welcomebar_btn_text']) ? stripslashes($welcomebar['mysticky_welcomebar_btn_text']) : "Got it!"; |
| 53 | ?> |
| 54 | |
| 55 | <a href="javascript:void(0)"><?php echo stripslashes($mysticky_welcomebar_btn_text);?></a> |
| 56 | </div> |
| 57 | <?php |
| 58 | $x_color = (isset($welcomebar['mysticky_welcomebar_x_color'])) ? esc_attr($welcomebar['mysticky_welcomebar_x_color']) : '#000000'; |
| 59 | ?> |
| 60 | <span class="mysticky-welcomebar-close" style="color:<?php echo esc_attr($x_color);?>" tabindex="0" role="button" aria-label="close">X</span> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | <div class="timer-message" <?php if(isset($welcomebar['mysticky_welcomebar_enable_lead']) && $welcomebar['mysticky_welcomebar_enable_lead'] != 1):?> style="display:none;"<?php endif;?>> |
| 65 | <p><span class="dashicons dashicons-info"></span> The elements will be displayed in 1-line on your actual website. <a class="save_change" href="javascript:void(0);">Save changes</a> and <a href="<?php echo esc_url(site_url());?>" target="_blank" class="visit_site_link"><span class="dashicons dashicons-migrate" style="color: #2271b1 !important;"></span> visit your website</a> to check how it’d look like</p> |
| 66 | </div> |
| 67 | <div class="mysticky-welcomebar-full-screen"> |
| 68 | <button type="button" class="welcomebar-full-screen-btn"> |
| 69 | <?php esc_html_e( 'Show Fullscreen Preview', 'mystickymenu' );?> |
| 70 | <span class="dashicons dashicons-fullscreen-alt"></span> |
| 71 | </button> |
| 72 | |
| 73 | <button type="button" class="welcomebar-minimise-screen-btn" style="display:none;"> |
| 74 | <?php esc_html_e( 'Minimise Preview', 'mystickymenu' );?> |
| 75 | <span class="dashicons dashicons-fullscreen-exit-alt"></span> |
| 76 | </button> |
| 77 | </div> |
| 78 | </div> |
| 79 | <script> |
| 80 | jQuery(".mysticky-welcomebar-fixed").on( |
| 81 | "animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd", |
| 82 | function() { |
| 83 | jQuery(this).removeClass("animation-start"); |
| 84 | } |
| 85 | ); |
| 86 | jQuery(document).ready(function() { |
| 87 | var container = jQuery(".mysticky-welcomebar-fixed"); |
| 88 | var refreshId = setInterval(function() { |
| 89 | container.addClass("animation-start"); |
| 90 | }, 3500); |
| 91 | }); |
| 92 | </script> |
| 93 | <style id="button-hover-color"> |
| 94 | <?php if ( $welcomebar['mysticky_welcomebar_hover_effect'] != 'none' ) {?> |
| 95 | .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a:hover { |
| 96 | /*opacity: 0.7;*/ |
| 97 | <?php if ( $welcomebar['mysticky_welcomebar_hover_effect'] != 'none' ) : ?> color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovertxtcolor']); ?>; <?php endif;?> |
| 98 | <?php if ( $welcomebar['mysticky_welcomebar_hover_effect'] == 'border_effect_button' ) : ?> background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovercolor']); ?>; <?php endif;?> |
| 99 | |
| 100 | -moz-box-shadow: 1px 2px 4px rgba(0, 0, 0,0.5); |
| 101 | -webkit-box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5); |
| 102 | box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5); |
| 103 | } |
| 104 | <?php } ?> |
| 105 | <?php if ( $welcomebar['mysticky_welcomebar_hover_effect'] == 'border_effect_button' ) : ?> |
| 106 | .mysticky-welcomebar-btn:before, |
| 107 | .mysticky-welcomebar-btn:after { |
| 108 | background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhoverbordercolor']); ?>; |
| 109 | z-index: 0; |
| 110 | } |
| 111 | .mysticky-welcomebar-btn a:before, |
| 112 | .mysticky-welcomebar-btn a:after { |
| 113 | background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhoverbordercolor']); ?>; |
| 114 | z-index: 0; |
| 115 | } |
| 116 | <?php endif;?> |
| 117 | <?php if ( $welcomebar['mysticky_welcomebar_hover_effect'] == 'fill_effect_button' ) : ?> |
| 118 | .mysticky-welcomebar-btn a:after { |
| 119 | background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovercolor']); ?>; |
| 120 | z-index: -1; |
| 121 | border-radius: 4px; |
| 122 | } |
| 123 | .mysticky-welcomebar-btn a:before, |
| 124 | .mysticky-welcomebar-btn a:after { |
| 125 | background: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btnhovercolor']); ?>; |
| 126 | z-index: -1; |
| 127 | } |
| 128 | <?php endif;?> |
| 129 | </style> |
| 130 | <style> |
| 131 | .morphext > .morphext__animated { |
| 132 | display: inline-block; |
| 133 | } |
| 134 | .mysticky-welcomebar-fixed { |
| 135 | background-color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_bgcolor']); ?>; |
| 136 | font-family: <?php echo esc_attr($welcomebar['mysticky_welcomebar_font']); ?>; |
| 137 | position: absolute; |
| 138 | left: 0; |
| 139 | right: 0; |
| 140 | opacity: 0; |
| 141 | z-index: 9; |
| 142 | -webkit-transition: all 1s ease 0s; |
| 143 | -moz-transition: all 1s ease 0s; |
| 144 | transition: all 1s ease 0s; |
| 145 | } |
| 146 | .mysticky-welcomebar-fixed-wrap { |
| 147 | width: 98%; |
| 148 | min-height: 60px; |
| 149 | padding: 10px 29px 10px 20px; |
| 150 | display: flex; |
| 151 | align-items: center; |
| 152 | justify-content: center; |
| 153 | } |
| 154 | .mysticky-welcomebar-preview-mobile-screen .mysticky-welcomebar-fixed{ |
| 155 | padding: 0 25px; |
| 156 | } |
| 157 | .mysticky-welcomebar-position-top { |
| 158 | top:0; |
| 159 | } |
| 160 | .mysticky-welcomebar-position-bottom { |
| 161 | bottom:0; |
| 162 | } |
| 163 | .mysticky-welcomebar-position-top.mysticky-welcomebar-entry-effect-slide-in { |
| 164 | top: -80px; |
| 165 | } |
| 166 | .mysticky-welcomebar-position-bottom.mysticky-welcomebar-entry-effect-slide-in { |
| 167 | bottom: -80px; |
| 168 | } |
| 169 | .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-top.mysticky-welcomebar-entry-effect-slide-in.entry-effect { |
| 170 | top:0; |
| 171 | opacity: 1; |
| 172 | } |
| 173 | .mysticky-welcomebar-display-desktop.mysticky-welcomebar-position-bottom.mysticky-welcomebar-entry-effect-slide-in.entry-effect { |
| 174 | bottom:0; |
| 175 | opacity: 1; |
| 176 | } |
| 177 | .mysticky-welcomebar-entry-effect-fade { |
| 178 | opacity: 0; |
| 179 | } |
| 180 | .mysticky-welcomebar-display-desktop.mysticky-welcomebar-entry-effect-fade.entry-effect { |
| 181 | opacity: 1; |
| 182 | } |
| 183 | .mysticky-welcomebar-entry-effect-none { |
| 184 | display: none; |
| 185 | } |
| 186 | .mysticky-welcomebar-display-desktop.mysticky-welcomebar-entry-effect-none.entry-effect { |
| 187 | display: block; |
| 188 | opacity: 1; |
| 189 | } .mysticky-welcomebar-position-top.mysticky-welcomebar-entry-effect-slide-in.entry-effect.mysticky-welcomebar-fixed { |
| 190 | top: 0; |
| 191 | } |
| 192 | .mysticky-welcomebar-position-bottom.mysticky-welcomebar-entry-effect-slide-in.entry-effect.mysticky-welcomebar-fixed { |
| 193 | bottom: 0; |
| 194 | } |
| 195 | .mysticky-welcomebar-fixed .mysticky-welcomebar-content p a, |
| 196 | .mysticky-welcomebar-fixed .mysticky-welcomebar-content p { |
| 197 | color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_bgtxtcolor']); ?>; |
| 198 | font-size: <?php echo esc_attr($welcomebar['mysticky_welcomebar_fontsize']); ?>px; |
| 199 | font-family: inherit; |
| 200 | margin: 0; |
| 201 | padding: 0; |
| 202 | line-height: 1.2; |
| 203 | font-weight: 400; |
| 204 | } |
| 205 | .mysticky-welcomebar-fixed.mysticky-site-front.mysticky-welcomebar-btn-desktop .mysticky-welcomebar-btn { |
| 206 | display: block; |
| 207 | margin-left:5px; |
| 208 | } |
| 209 | .mysticky-welcomebar-fixed .mysticky-welcomebar-btn a { |
| 210 | background-color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btncolor']); ?>; |
| 211 | font-family: inherit; |
| 212 | color: <?php echo esc_attr($welcomebar['mysticky_welcomebar_btntxtcolor']); ?>; |
| 213 | border-radius: 4px; |
| 214 | text-decoration: none; |
| 215 | display: inline-block; |
| 216 | vertical-align: top; |
| 217 | line-height: 1.2; |
| 218 | font-size: <?php echo esc_attr($welcomebar['mysticky_welcomebar_fontsize']) ?>px; |
| 219 | font-weight: 400; |
| 220 | padding: 5px 15px; |
| 221 | white-space: nowrap; |
| 222 | text-align: center; |
| 223 | } |
| 224 | |
| 225 | |
| 226 | @media only screen and (max-width: 1024px) { |
| 227 | .mysticky-welcomebar-fixed { |
| 228 | padding: 0 10px 0 10px; |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | /* Animated Buttons */ |
| 233 | .mysticky-welcomebar-btn a { |
| 234 | -webkit-animation-duration: 1s; |
| 235 | animation-duration: 1s; |
| 236 | } |
| 237 | @-webkit-keyframes flash { |
| 238 | from, |
| 239 | 50%, |
| 240 | to { |
| 241 | opacity: 1; |
| 242 | } |
| 243 | |
| 244 | 25%, |
| 245 | 75% { |
| 246 | opacity: 0; |
| 247 | } |
| 248 | } |
| 249 | @keyframes flash { |
| 250 | from, |
| 251 | 50%, |
| 252 | to { |
| 253 | opacity: 1; |
| 254 | } |
| 255 | |
| 256 | 25%, |
| 257 | 75% { |
| 258 | opacity: 0; |
| 259 | } |
| 260 | } |
| 261 | .mysticky-welcomebar-attention-flash.animation-start .mysticky-welcomebar-btn a { |
| 262 | -webkit-animation-name: flash; |
| 263 | animation-name: flash; |
| 264 | } |
| 265 | |
| 266 | @keyframes shake { |
| 267 | from, |
| 268 | to { |
| 269 | -webkit-transform: translate3d(0, 0, 0); |
| 270 | transform: translate3d(0, 0, 0); |
| 271 | } |
| 272 | |
| 273 | 10%, |
| 274 | 30%, |
| 275 | 50%, |
| 276 | 70%, |
| 277 | 90% { |
| 278 | -webkit-transform: translate3d(-10px, 0, 0); |
| 279 | transform: translate3d(-10px, 0, 0); |
| 280 | } |
| 281 | |
| 282 | 20%, |
| 283 | 40%, |
| 284 | 60%, |
| 285 | 80% { |
| 286 | -webkit-transform: translate3d(10px, 0, 0); |
| 287 | transform: translate3d(10px, 0, 0); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | .mysticky-welcomebar-attention-shake.animation-start .mysticky-welcomebar-btn a { |
| 292 | -webkit-animation-name: shake; |
| 293 | animation-name: shake; |
| 294 | } |
| 295 | |
| 296 | @-webkit-keyframes swing { |
| 297 | 20% { |
| 298 | -webkit-transform: rotate3d(0, 0, 1, 15deg); |
| 299 | transform: rotate3d(0, 0, 1, 15deg); |
| 300 | } |
| 301 | |
| 302 | 40% { |
| 303 | -webkit-transform: rotate3d(0, 0, 1, -10deg); |
| 304 | transform: rotate3d(0, 0, 1, -10deg); |
| 305 | } |
| 306 | |
| 307 | 60% { |
| 308 | -webkit-transform: rotate3d(0, 0, 1, 5deg); |
| 309 | transform: rotate3d(0, 0, 1, 5deg); |
| 310 | } |
| 311 | |
| 312 | 80% { |
| 313 | -webkit-transform: rotate3d(0, 0, 1, -5deg); |
| 314 | transform: rotate3d(0, 0, 1, -5deg); |
| 315 | } |
| 316 | |
| 317 | to { |
| 318 | -webkit-transform: rotate3d(0, 0, 1, 0deg); |
| 319 | transform: rotate3d(0, 0, 1, 0deg); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | @keyframes swing { |
| 324 | 20% { |
| 325 | -webkit-transform: rotate3d(0, 0, 1, 15deg); |
| 326 | transform: rotate3d(0, 0, 1, 15deg); |
| 327 | } |
| 328 | |
| 329 | 40% { |
| 330 | -webkit-transform: rotate3d(0, 0, 1, -10deg); |
| 331 | transform: rotate3d(0, 0, 1, -10deg); |
| 332 | } |
| 333 | |
| 334 | 60% { |
| 335 | -webkit-transform: rotate3d(0, 0, 1, 5deg); |
| 336 | transform: rotate3d(0, 0, 1, 5deg); |
| 337 | } |
| 338 | |
| 339 | 80% { |
| 340 | -webkit-transform: rotate3d(0, 0, 1, -5deg); |
| 341 | transform: rotate3d(0, 0, 1, -5deg); |
| 342 | } |
| 343 | |
| 344 | to { |
| 345 | -webkit-transform: rotate3d(0, 0, 1, 0deg); |
| 346 | transform: rotate3d(0, 0, 1, 0deg); |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | .mysticky-welcomebar-attention-swing.animation-start .mysticky-welcomebar-btn a { |
| 351 | -webkit-transform-origin: top center; |
| 352 | transform-origin: top center; |
| 353 | -webkit-animation-name: swing; |
| 354 | animation-name: swing; |
| 355 | } |
| 356 | |
| 357 | @-webkit-keyframes tada { |
| 358 | from { |
| 359 | -webkit-transform: scale3d(1, 1, 1); |
| 360 | transform: scale3d(1, 1, 1); |
| 361 | } |
| 362 | |
| 363 | 10%, |
| 364 | 20% { |
| 365 | -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); |
| 366 | transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); |
| 367 | } |
| 368 | |
| 369 | 30%, |
| 370 | 50%, |
| 371 | 70%, |
| 372 | 90% { |
| 373 | -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); |
| 374 | transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); |
| 375 | } |
| 376 | |
| 377 | 40%, |
| 378 | 60%, |
| 379 | 80% { |
| 380 | -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); |
| 381 | transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); |
| 382 | } |
| 383 | |
| 384 | to { |
| 385 | -webkit-transform: scale3d(1, 1, 1); |
| 386 | transform: scale3d(1, 1, 1); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | @keyframes tada { |
| 391 | from { |
| 392 | -webkit-transform: scale3d(1, 1, 1); |
| 393 | transform: scale3d(1, 1, 1); |
| 394 | } |
| 395 | |
| 396 | 10%, |
| 397 | 20% { |
| 398 | -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); |
| 399 | transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg); |
| 400 | } |
| 401 | |
| 402 | 30%, |
| 403 | 50%, |
| 404 | 70%, |
| 405 | 90% { |
| 406 | -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); |
| 407 | transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); |
| 408 | } |
| 409 | |
| 410 | 40%, |
| 411 | 60%, |
| 412 | 80% { |
| 413 | -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); |
| 414 | transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); |
| 415 | } |
| 416 | |
| 417 | to { |
| 418 | -webkit-transform: scale3d(1, 1, 1); |
| 419 | transform: scale3d(1, 1, 1); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | .mysticky-welcomebar-attention-tada.animation-start .mysticky-welcomebar-btn a { |
| 424 | -webkit-animation-name: tada; |
| 425 | animation-name: tada; |
| 426 | } |
| 427 | |
| 428 | @-webkit-keyframes heartBeat { |
| 429 | 0% { |
| 430 | -webkit-transform: scale(1); |
| 431 | transform: scale(1); |
| 432 | } |
| 433 | |
| 434 | 14% { |
| 435 | -webkit-transform: scale(1.3); |
| 436 | transform: scale(1.3); |
| 437 | } |
| 438 | |
| 439 | 28% { |
| 440 | -webkit-transform: scale(1); |
| 441 | transform: scale(1); |
| 442 | } |
| 443 | |
| 444 | 42% { |
| 445 | -webkit-transform: scale(1.3); |
| 446 | transform: scale(1.3); |
| 447 | } |
| 448 | |
| 449 | 70% { |
| 450 | -webkit-transform: scale(1); |
| 451 | transform: scale(1); |
| 452 | } |
| 453 | } |
| 454 | |
| 455 | @keyframes heartBeat { |
| 456 | 0% { |
| 457 | -webkit-transform: scale(1); |
| 458 | transform: scale(1); |
| 459 | } |
| 460 | |
| 461 | 14% { |
| 462 | -webkit-transform: scale(1.3); |
| 463 | transform: scale(1.3); |
| 464 | } |
| 465 | |
| 466 | 28% { |
| 467 | -webkit-transform: scale(1); |
| 468 | transform: scale(1); |
| 469 | } |
| 470 | |
| 471 | 42% { |
| 472 | -webkit-transform: scale(1.3); |
| 473 | transform: scale(1.3); |
| 474 | } |
| 475 | |
| 476 | 70% { |
| 477 | -webkit-transform: scale(1); |
| 478 | transform: scale(1); |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | .mysticky-welcomebar-attention-heartbeat.animation-start .mysticky-welcomebar-btn a { |
| 483 | -webkit-animation-name: heartBeat; |
| 484 | animation-name: heartBeat; |
| 485 | -webkit-animation-duration: 1.3s; |
| 486 | animation-duration: 1.3s; |
| 487 | -webkit-animation-timing-function: ease-in-out; |
| 488 | animation-timing-function: ease-in-out; |
| 489 | } |
| 490 | |
| 491 | @-webkit-keyframes wobble { |
| 492 | from { |
| 493 | -webkit-transform: translate3d(0, 0, 0); |
| 494 | transform: translate3d(0, 0, 0); |
| 495 | } |
| 496 | |
| 497 | 15% { |
| 498 | -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); |
| 499 | transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); |
| 500 | } |
| 501 | |
| 502 | 30% { |
| 503 | -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); |
| 504 | transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); |
| 505 | } |
| 506 | |
| 507 | 45% { |
| 508 | -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); |
| 509 | transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); |
| 510 | } |
| 511 | |
| 512 | 60% { |
| 513 | -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); |
| 514 | transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); |
| 515 | } |
| 516 | |
| 517 | 75% { |
| 518 | -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); |
| 519 | transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); |
| 520 | } |
| 521 | |
| 522 | to { |
| 523 | -webkit-transform: translate3d(0, 0, 0); |
| 524 | transform: translate3d(0, 0, 0); |
| 525 | } |
| 526 | } |
| 527 | |
| 528 | @keyframes wobble { |
| 529 | from { |
| 530 | -webkit-transform: translate3d(0, 0, 0); |
| 531 | transform: translate3d(0, 0, 0); |
| 532 | } |
| 533 | |
| 534 | 15% { |
| 535 | -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); |
| 536 | transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); |
| 537 | } |
| 538 | |
| 539 | 30% { |
| 540 | -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); |
| 541 | transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); |
| 542 | } |
| 543 | |
| 544 | 45% { |
| 545 | -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); |
| 546 | transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); |
| 547 | } |
| 548 | |
| 549 | 60% { |
| 550 | -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); |
| 551 | transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); |
| 552 | } |
| 553 | |
| 554 | 75% { |
| 555 | -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); |
| 556 | transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); |
| 557 | } |
| 558 | |
| 559 | to { |
| 560 | -webkit-transform: translate3d(0, 0, 0); |
| 561 | transform: translate3d(0, 0, 0); |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | .mysticky-welcomebar-attention-wobble.animation-start .mysticky-welcomebar-btn a { |
| 566 | -webkit-animation-name: wobble; |
| 567 | animation-name: wobble; |
| 568 | } |
| 569 | </style> |
| 570 | </div> |