|
7 | 7 | {% if page.page-class != "page--contact" %} |
8 | 8 |
|
9 | 9 | <style> |
10 | | - @media (pointer: fine) { |
11 | | - |
12 | | - @keyframes wobble { |
13 | | - |
14 | | - from { |
15 | | - transform: translate3d(0, 0, 0) scale3d(1, 1, 1); |
16 | | - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); |
17 | | - } |
18 | | - |
19 | | - 15% { |
20 | | - transform: translate3d(-6%, 0, 0) rotate3d(0, 0, 1, -2deg) scale3d(1.05, 1.05, 1); |
21 | | - box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); |
22 | | - } |
23 | | - |
24 | | - 30% { |
25 | | - transform: translate3d(5%, 0, 0) rotate3d(0, 0, 1, 1.5deg) scale3d(1.08, 1.08, 1); |
26 | | - box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35); |
27 | | - } |
28 | | - |
29 | | - 45% { |
30 | | - transform: translate3d(-4%, 0, 0) rotate3d(0, 0, 1, -1.5deg) scale3d(1.06, 1.06, 1); |
31 | | - box-shadow: 0 7px 20px rgba(0, 0, 0, 0.32); |
32 | | - } |
33 | | - |
34 | | - 60% { |
35 | | - transform: translate3d(3%, 0, 0) rotate3d(0, 0, 1, 1deg) scale3d(1.04, 1.04, 1); |
36 | | - box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); |
37 | | - } |
38 | | - |
39 | | - 75% { |
40 | | - transform: translate3d(-1.5%, 0, 0) rotate3d(0, 0, 1, -0.5deg) scale3d(1.02, 1.02, 1); |
41 | | - box-shadow: 0 5px 12px rgba(0, 0, 0, 0.26); |
42 | | - } |
43 | | - |
44 | | - to { |
45 | | - transform: translate3d(0, 0, 0) scale3d(1, 1, 1); |
46 | | - box-shadow: none; |
47 | | - } |
48 | | - |
49 | | - } |
50 | | - |
51 | | - html:has(.u-wobble-trigger:hover) .u-wobble { |
52 | | - animation-name: wobble; |
53 | | - animation-duration: .75s; |
54 | | - animation-fill-mode: both; |
55 | | - } |
56 | | - |
57 | | - .u-wobble { |
58 | | - will-change: transform; |
59 | | - } |
60 | | - |
61 | | - } |
| 10 | +{% include css/components.happy-harry.css %} |
| 11 | +/*# sourceURL=happy-harry.inline.css */ |
62 | 12 | </style> |
63 | 13 |
|
64 | 14 | <p class=text-banner> |
65 | 15 | <a href=https://calendly.com/csswizardry/30min class="btn btn--full |
66 | | - btn--positive u-wobble-trigger" id=cta data-sctrack=cta-sidebar elementtiming=cta-sidebar>{% include cta.md %}</a> |
| 16 | + btn--positive c-happy-harry-trigger" id=cta data-sctrack=cta-sidebar elementtiming=cta-sidebar>{% include cta.md %}</a> |
67 | 17 | </p> |
68 | 18 |
|
69 | 19 | <script> |
|
97 | 47 | style="background-image: url(/img/css/masthead-small-lqip.jpg), url({% include base64/masthead.jpg.html %}); view-transition-name: masthead;" |
98 | 48 | elementtiming=sidebar-image |
99 | 49 | decoding=sync |
100 | | - class=u-wobble> |
| 50 | + class=c-happy-harry> |
101 | 51 | </p> |
102 | 52 | {% endif %} |
103 | 53 |
|
|
0 commit comments