1
2
3
4
5
6
<a href="javascript:void(0)" class="m-hero-feature">
<span class="m-hero-feature__title">
<span>Advanced Management Program 2x2 Option</span>
</span>
<span class="m-hero-feature__action">Learn more</span>
</a>
1
2
3
4
5
{
"href": "javascript:void(0)",
"title": "Advanced Management Program 2x2 Option",
"action": "Learn more"
}
1
2
3
4
5
6
<a href="{{ href }}" class="m-hero-feature">
<span class="m-hero-feature__title">
<span>{{ title }}</span>
</span>
<span class="m-hero-feature__action">{{ action | default("Learn more") }}</span>
</a>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.m-hero-feature {
display: block;
max-width: 320px;
@include link-focus;
&__title {
display: block;
@include f-subhead-1;
}
&__action {
display: none;
@include f-heading-1;
color: var(--color--nav-link--hover);
@include spacing(
(
xsmall: 4px,
)
);
}
@include breakpoint("large+") {
margin-top: -24px;
&:focus,
&:hover {
transform: none;
}
&__title {
transition: transform $timing--medium $bezier--ease-out;
transform: translateY(24px);
}
&:focus[data-focus-method="key"] &__title,
&:hover &__title {
transform: none;
}
&__action {
display: block;
opacity: 0;
transition: opacity $timing--medium $bezier--ease-out;
}
&:focus[data-focus-method="key"] &__action,
&:hover &__action {
opacity: 1;
}
}
}