The sds-scaleInteraction defines the background scale on interaction with the component.
The data-sds-move-with-shadow attribute defines the animation og the child element sticking to the scaled shape's edge.
Should the component not be interacted with, remove sds-scaleInteraction and replace it with sds-boxShadowActive. Remove the data attribute on any children that have it.
Classes for various variants include:
<article class="sds-product sds-box sds-scaleInteraction -insetLg -textTop">
<div class="sds-product__inner sds-stackXl">
<div class="sds-product__mainContent">
<div class="sds-box__outOfBoundsLg sds-product__img sds-product__imgInlineEnd" data-sds-move-with-shadow>
<img src="../../media/spuerkeess-site/components/product/cards/sdsillu-product-card-classic.png" alt="" class="img-fluid">
</div>
<div class="sds-stackLg">
<div class="sds-product__header">
<div class="sds-product__meta sds-textHelperSmall">La classqiue</div>
<div class="sds-product__headerBtnGroup sds-btnGroup -wrap justify-content-end">
<div class="sds-badge badge -badgeHighlight -badgeMuted">
badge
</div>
</div>
</div>
<div class="sds-stackXs">
<h3 class="h3">Prêt personnel</h3>
<p class="sds-product__description">Empruntez au meilleur taux pour financer vos dépenses importantes</p>
</div>
</div>
</div>
<div class="sds-product__revealAction">
<div class="sds-product__revealActionInner sds-btnGroup">
<a href="" class="sds-btn -btnSecondary stretched-link">
<span class="sds-btn__text">Découvrir</span>
</a>
<div class="sds-aboveClickArea">
<a href="" class="sds-btn -btnPrimary">
<span class="sds-btn__text">Faire une demande</span>
</a>
</div>
</div>
</div>
</div>
</article>
{% extends "@spk-product-frame" %}
{% block header %}
<div class="{{ namespace }}box__outOfBoundsLg {{ namespace }}product__img {{ namespace }}product__imgInlineEnd"{% if interaction %} data-{{ namespace }}move-with-shadow{% endif %}>
<img src="{{ (mediaPath + "/spuerkeess-site/components/product/cards/sdsillu-product-card-classic.png") | path }}" alt="" class="img-fluid">
</div>
<div class="{{ namespace }}stackLg">
<div class="{{ namespace }}product__header">
<div class="{{ namespace }}product__meta {{ namespace }}textHelperSmall">{{ meta }}</div>
<div class="{{ namespace }}product__headerBtnGroup {{ namespace }}btnGroup -wrap justify-content-end">
{% render "@badge--highlight-muted" %}
</div>
</div>
<div class="{{ namespace }}stackXs">
<h3 class="h3">{{ title }}</h3>
<p class="{{ namespace }}product__description">{{ text }}</p>
</div>
</div>
{% endblock %}
{% block body %}
<div class="{{ namespace }}product__revealAction">
<div class="{{ namespace }}product__revealActionInner {{ namespace }}btnGroup">
{% render "@btn-secondary",{
classes: ["stretched-link"],
eltType: "a",
text: "Découvrir"
},true %}
<div class="{{ namespace }}aboveClickArea">
{% render "@btn-primary",{
eltType: "a",
text: "Faire une demande"
},true %}
</div>
</div>
</div>
{% endblock %}
{% block footer %}
{% endblock %}