🌅 HérosGratuit · 0 NahnahPar NAHNAH AI
Héros Cascade de mots
Grand titre centré dont chaque mot glisse vers le haut l’un après l’autre, sur un halo radial qui respire ; texte et boutons suivent en douceur. Sans image, idéal en ouverture.
Aperçu en direct
Données de démonstration (produits, menus, textes d’exemple) : dans ta boutique, ce sont les tiennes.
Photos : Unsplash / Pexels (exemples de l’aperçu, jamais inclus dans le code).
Code à copier
Fichier complet sections/nahnah-hero-cascade-mots.liquid (Liquid, CSS et JS inclus).
{%- comment -%} NAHNAH AI · Héros Cascade de mots (bibliothèque Sections & effets) {%- endcomment -%}
<div class="nn-hero-cascade-mots" style="--nn-mh: {{ section.settings.marge_haut }}px; --nn-mb: {{ section.settings.marge_bas }}px; --nn-fond: {{ section.settings.couleur_fond }}; --nn-texte: {{ section.settings.couleur_texte }}; --nn-accent: {{ section.settings.couleur_accent }}; --nn-bouton: {{ section.settings.couleur_bouton }}; --nn-texte-bouton: {{ section.settings.couleur_texte_bouton }}; --nn-halo: {{ section.settings.halo }}%;">
<div class="nn-hero-cascade-mots__cadre nn-hero-cascade-mots--h-{{ section.settings.hauteur }} nn-hero-cascade-mots--halo-{{ section.settings.origine }}">
<span class="nn-hero-cascade-mots__fond" aria-hidden="true"></span>
<div class="nn-hero-cascade-mots__contenu">
{%- if section.settings.titre != blank -%}
{%- assign mots = section.settings.titre | split: ' ' -%}
<h2 class="nn-hero-cascade-mots__titre">{%- for mot in mots -%}<span class="nn-hero-cascade-mots__mot" style="--i: {{ forloop.index0 }};">{{ mot | escape }}</span>{%- unless forloop.last %} {% endunless -%}{%- endfor -%}</h2>
{%- endif -%}
{%- if section.settings.texte != blank -%}<div class="nn-hero-cascade-mots__texte">{{ section.settings.texte }}</div>{%- endif -%}
{%- if section.settings.bouton_texte != blank or section.settings.bouton2_texte != blank -%}
<div class="nn-hero-cascade-mots__boutons">
{%- if section.settings.bouton_texte != blank -%}
<a class="nn-hero-cascade-mots__bouton" href="{{ section.settings.bouton_lien | default: routes.all_products_collection_url }}">{{ section.settings.bouton_texte | escape }}</a>
{%- endif -%}
{%- if section.settings.bouton2_texte != blank -%}
<a class="nn-hero-cascade-mots__bouton nn-hero-cascade-mots__bouton--second" href="{{ section.settings.bouton2_lien | default: routes.collections_url }}">{{ section.settings.bouton2_texte | escape }}</a>
{%- endif -%}
</div>
{%- endif -%}
</div>
</div>
</div>
{% schema %}
{
"name": "Héros Cascade de mots",
"tag": "section",
"class": "nn-section-hero-cascade-mots",
"settings": [
{
"type": "text",
"id": "titre",
"label": "Titre (chaque mot glisse tour à tour)",
"default": "Le style qui te ressemble, livré chez toi"
},
{
"type": "richtext",
"id": "texte",
"label": "Texte",
"default": "<p>Des pièces choisies avec soin, des envois soignés et un service à l’écoute : fais-toi plaisir.</p>"
},
{
"type": "header",
"content": "Boutons"
},
{
"type": "text",
"id": "bouton_texte",
"label": "Texte du bouton (vide : masqué)",
"default": "Découvrir"
},
{
"type": "url",
"id": "bouton_lien",
"label": "Lien du bouton (vide : tous les produits)"
},
{
"type": "text",
"id": "bouton2_texte",
"label": "Texte du bouton secondaire (vide : masqué)",
"default": "Nos collections"
},
{
"type": "url",
"id": "bouton2_lien",
"label": "Lien du bouton secondaire (vide : collections)"
},
{
"type": "header",
"content": "Fond"
},
{
"type": "range",
"id": "halo",
"label": "Intensité du halo",
"min": 0,
"max": 100,
"step": 5,
"default": 60,
"unit": "%"
},
{
"type": "select",
"id": "origine",
"label": "Origine du halo",
"options": [
{
"value": "haut",
"label": "En haut"
},
{
"value": "centre",
"label": "Au centre"
},
{
"value": "bas",
"label": "En bas"
}
],
"default": "haut"
},
{
"type": "select",
"id": "hauteur",
"label": "Hauteur",
"options": [
{
"value": "petite",
"label": "Petite"
},
{
"value": "moyenne",
"label": "Moyenne"
},
{
"value": "grande",
"label": "Grande"
},
{
"value": "ecran",
"label": "Plein écran"
}
],
"default": "grande"
},
{
"type": "header",
"content": "Couleurs"
},
{
"type": "color",
"id": "couleur_fond",
"label": "Fond",
"default": "#0E0B1A"
},
{
"type": "color",
"id": "couleur_texte",
"label": "Texte",
"default": "#FFFFFF"
},
{
"type": "color",
"id": "couleur_accent",
"label": "Accent",
"default": "#7C5CFF"
},
{
"type": "color",
"id": "couleur_bouton",
"label": "Bouton",
"default": "#FFFFFF"
},
{
"type": "color",
"id": "couleur_texte_bouton",
"label": "Texte du bouton",
"default": "#0E0B1A"
},
{
"type": "header",
"content": "Espacement"
},
{
"type": "range",
"id": "marge_haut",
"label": "Marge haute",
"min": 0,
"max": 120,
"step": 4,
"unit": "px",
"default": 0
},
{
"type": "range",
"id": "marge_bas",
"label": "Marge basse",
"min": 0,
"max": 120,
"step": 4,
"unit": "px",
"default": 0
}
],
"presets": [
{
"name": "Héros Cascade de mots"
}
]
}
{% endschema %}
{% stylesheet %}
.nn-hero-cascade-mots {
position: relative;
display: block;
padding: var(--nn-mh) 0 var(--nn-mb);
background: var(--nn-fond);
color: var(--nn-texte);
overflow-x: clip;
}
.nn-hero-cascade-mots *, .nn-hero-cascade-mots *::before, .nn-hero-cascade-mots *::after { box-sizing: border-box; }
.nn-hero-cascade-mots :where(a, button):focus-visible { outline: 3px solid var(--nn-accent); outline-offset: 3px; }
.nn-hero-cascade-mots__surtitre { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nn-accent); }
.nn-hero-cascade-mots__titre { margin: 0 0 16px; font-size: clamp(32px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: anywhere; color: inherit; }
.nn-hero-cascade-mots__texte { margin: 0 0 28px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; opacity: 0.88; max-width: 560px; }
.nn-hero-cascade-mots__texte p { margin: 0 0 0.6em; }
.nn-hero-cascade-mots__boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.nn-hero-cascade-mots__bouton {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
max-width: 100%;
padding: 14px 28px;
border-radius: var(--nn-arrondi-bouton, 8px);
background: var(--nn-bouton);
color: var(--nn-texte-bouton);
font-size: 16px;
font-weight: 700;
line-height: 1.2;
text-align: center;
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nn-hero-cascade-mots__bouton--second { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@media (hover: hover) {
.nn-hero-cascade-mots__bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--nn-bouton) 35%, transparent); }
.nn-hero-cascade-mots__bouton--second:hover { box-shadow: inset 0 0 0 2px currentColor, 0 12px 26px rgba(0, 0, 0, 0.12); }
}
.nn-hero-cascade-mots__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nn-hero-cascade-mots__cadre { position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden; padding: clamp(64px, 10vw, 120px) 16px; text-align: center; }
.nn-hero-cascade-mots--h-petite { min-height: 380px; }
.nn-hero-cascade-mots--h-moyenne { min-height: clamp(440px, 62vh, 620px); }
.nn-hero-cascade-mots--h-grande { min-height: clamp(520px, 80vh, 780px); }
.nn-hero-cascade-mots--h-ecran { min-height: 100vh; min-height: 100svh; }
.nn-hero-cascade-mots__fond { --nn-oy: 0%; position: absolute; inset: -10%; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 50% var(--nn-oy), color-mix(in srgb, var(--nn-accent) var(--nn-halo), transparent), transparent 72%); animation: nn-hero-cascade-mots-respire 10s ease-in-out infinite alternate; }
.nn-hero-cascade-mots--halo-centre .nn-hero-cascade-mots__fond { --nn-oy: 50%; }
.nn-hero-cascade-mots--halo-bas .nn-hero-cascade-mots__fond { --nn-oy: 100%; }
@keyframes nn-hero-cascade-mots-respire { from { opacity: 0.75; transform: scale(1); } to { opacity: 1; transform: scale(1.12); } }
.nn-hero-cascade-mots__contenu { width: 100%; max-width: 1000px; }
.nn-hero-cascade-mots__titre { margin: 0 auto 22px; font-size: clamp(38px, 7.5vw, 84px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.nn-hero-cascade-mots__mot { display: inline-block; animation: nn-hero-cascade-mots-glisse 0.75s calc(0.15s + var(--i) * 60ms) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes nn-hero-cascade-mots-glisse { from { opacity: 0; transform: translateY(40px); } }
.nn-hero-cascade-mots__texte { margin-inline: auto; color: color-mix(in srgb, var(--nn-texte) 62%, transparent); opacity: 1; animation: nn-hero-cascade-mots-glisse 0.8s 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nn-hero-cascade-mots__boutons { justify-content: center; animation: nn-hero-cascade-mots-glisse 0.8s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nn-hero-cascade-mots__bouton { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
.nn-hero-cascade-mots, .nn-hero-cascade-mots *, .nn-hero-cascade-mots *::before, .nn-hero-cascade-mots *::after {
animation: none !important;
transition: none !important;
}
}
{% endstylesheet %}
Licence NAHNAH AI : utilisation libre dans tes boutiques (y compris commerciales), modification permise, revente de l’élément seul interdite.
Prompt à copier
À coller dans Claude ou ChatGPT avec le fichier téléchargé (ou le code copié) : l’assistant t’aide à l’installer et à l’adapter à ta marque.
Tu es un expert des thèmes Shopify Online Store 2.0. Aide-moi à installer puis à adapter à ma marque cet élément gratuit de la bibliothèque NAHNAH AI.
Élément : « Héros Cascade de mots » (Héros)
Description : Grand titre centré dont chaque mot glisse vers le haut l’un après l’autre, sur un halo radial qui respire ; texte et boutons suivent en douceur. Sans image, idéal en ouverture.
Page de l’élément (aperçu en direct) : https://ai.nahnah.shop/bibliotheque-shopify/hero-cascade-mots
Fichier : nahnah-hero-cascade-mots.liquid (bouton « Télécharger » de la page) ou le code copié avec le bouton « Copier » : je te le joins ou je le colle après ce message.
Emplacement dans le thème : sections/nahnah-hero-cascade-mots.liquid (Liquid, puis {% stylesheet %} et {% javascript %}, dans ce seul fichier).
Étapes d’installation :
1. Dans Shopify : Boutique en ligne → Thèmes → bouton « … » du thème → Modifier le code.
2. Dossier « sections » → « Ajouter une section » (ou « Nouveau fichier ») → nomme-la « nahnah-hero-cascade-mots ».
3. Efface le contenu proposé, colle le code de l’onglet Liquid (fichier complet), puis Enregistrer.
4. Ouvre Personnaliser → Ajouter une section → choisis-la, règle les textes et les couleurs, puis Enregistrer.
Ce que j’attends de toi :
- Guide-moi pas à pas dans Shopify : Boutique en ligne → Thèmes → « … » → Modifier le code → dossier sections → Ajouter une section, puis Personnaliser → Ajouter une section.
- Propose-moi d’adapter les couleurs, les textes et les liens à ma marque : demande d’abord mes couleurs (codes hexadécimaux), mon ton et mes liens.
- Garde le bloc {% schema %} et tous ses réglages (identifiants, types, presets) : je dois pouvoir tout régler ensuite dans l’éditeur de thème.
- Rends-moi le fichier complet modifié, prêt à coller, sans faux avis, fausse urgence ni chiffre inventé.
Si tu as le connecteur NAHNAH AI (MCP), récupère directement le code exact avec l’outil obtenir_code_element (id : hero-cascade-mots).Installer dans ma boutique
En un clic, la section est ajoutée à un thème de ta boutique Shopify connectée (un thème non publié par défaut).
Chargement de tes boutiques…
Installer dans Shopify
- Dans Shopify : Boutique en ligne → Thèmes → bouton « … » du thème → Modifier le code.
- Dossier « sections » → « Ajouter une section » (ou « Nouveau fichier ») → nomme-la « nahnah-hero-cascade-mots ».
- Efface le contenu proposé, colle le code de l’onglet Liquid (fichier complet), puis Enregistrer.
- Ouvre Personnaliser → Ajouter une section → choisis-la, règle les textes et les couleurs, puis Enregistrer.
Installer via le MCP
Depuis Claude, Claude Code ou ChatGPT connecté à NAHNAH AI, demande : « Donne-moi le code de l’élément hero-cascade-mots de la bibliothèque NAHNAH AI et les étapes pour l’installer ». L’assistant récupère le code et les étapes (outil obtenir_code_element), gratuitement.
Boutique connectée à NAHNAH AI : l’assistant peut aussi l’installer directement (outil installer_element).
Connecter le MCP