Comment afficher des notifications de social proof dans Webflow ?
Apprenez à afficher des notifications de social proof animées dans Webflow pour augmenter la confiance des visiteurs.
Dans ce tutoriel, Sandro cofondateur de l'agence Webflow Gemeos vous montre comment afficher des notifications de social proof animées dans Webflow pour augmenter la confiance et réduire l'hésitation des visiteurs.
Exemple
Notifications en rotation — nouvelle toutes les 4 secondes
Chargement...
| Paramètre | Valeur | Description |
|---|---|---|
| notifications | Tableau d'objets | Liste des actions à afficher en rotation |
| Délai d'affichage | 4000ms | Durée d'affichage de chaque notification |
| Délai initial | 3000ms | Attente avant la première notification |
| ID conteneur | social-proof-notif | Élément injecté par le script |
1. Créez le conteneur dans Webflow
Créez un Div avec l'ID social-proof-notif en position Fixed, bottom: 24px, left: 24px, z-index: 9999. Donnez-lui un style : background blanc, border-radius 12px, border, padding, box-shadow légère. Mettez-le en display: none par défaut : le script gère l'affichage.
2. Personnalisez les notifications
Modifiez le tableau notifications avec vos propres données. Pour des données réelles, connectez l'array à votre CRM via un fetch vers votre API ou un webhook Make/Zapier qui alimente un endpoint JSON.
3. Ajoutez le script dans Footer code
(function() {
var notifications = [
{ name: 'Sophie M.', action: 'a demandé une démo', time: 'il y a 2 min', avatar: 'SM' },
{ name: 'Thomas K.', action: 'vient de nous contacter', time: 'il y a 5 min', avatar: 'TK' },
{ name: 'Léa D.', action: 'a téléchargé le guide', time: 'il y a 8 min', avatar: 'LD' },
{ name: 'Marc P.', action: 'a demandé une démo', time: 'il y a 12 min', avatar: 'MP' },
{ name: 'Clara R.', action: 'vient de nous contacter', time: 'il y a 15 min', avatar: 'CR' },
];
var container = document.getElementById('social-proof-notif');
if (!container) return;
var idx = 0;
function showNext() {
var notif = notifications[idx % notifications.length];
idx++;
container.innerHTML =
'<div style="display:flex;align-items:center;gap:12px;">' +
'<div style="width:36px;height:36px;border-radius:50%;background:#a78bfa;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;color:#fff;flex-shrink:0;">' +
notif.avatar + '</div>' +
'<div><p style="font-size:13px;font-weight:500;color:#111;margin:0;">' + notif.name + ' ' + notif.action + '</p>' +
'<p style="font-size:12px;color:#9ca3af;margin:0;">' + notif.time + '</p></div></div>';
container.style.opacity = '1';
container.style.transform = 'translateY(0)';
setTimeout(function() {
container.style.opacity = '0';
container.style.transform = 'translateY(8px)';
setTimeout(showNext, 1500);
}, 4000);
}
container.style.cssText += 'transition:opacity 0.4s,transform 0.4s;opacity:0;transform:translateY(8px);';
setTimeout(showNext, 3000);
})();Conclusion
Les notifications de social proof réduisent l'anxiété d'achat en montrant que d'autres personnes font confiance à votre marque. Cas d'usage :
- Pages pricing avec notifications de demandes de démo
- Pages de téléchargement avec compteur de downloads
- Pages d'inscription avec actions récentes des membres
Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.















