Журнал Тильды
/
Библиотека промптов
/
Список преимуществ с анимацией цифр и кнопкой
Лендинги
Список преимуществ с анимацией цифр и кнопкой
Подходит, чтобы показать ключевые показатели: при прокрутке полосы с крупными цифрами заполняются слева направо, а кнопка в каждой ведёт к подробностям.
Промпт
Вы можете скопировать промпт и вставить его в вайб блок в поле ввода. Подробнее в инструкции.
Создай 3 синие карточки метрик.

Контент в HTML: тексты/числа data-tilda-edit="y", иконки img data-tilda-img="y", ссылки a. Без генерации через JS/массивы/innerHTML/canvas. JS только для анимации. В редакторе всё видно и редактируемо, эффекты/перехват кликов отключены.

Секция #071A49, padding:110px 20px, overflow:hidden. Контейнер max-width:1200px центр, padding:0 20px. Шрифты Тильды: --t-headline-font для заголовка/чисел, --t-text-font для текста; fallback Arial.
Заголовок белый: «Clear, visual proof of your
product's value—easy to scan,
compare, and remember.» 40px regular/1.22, max-width:620px, margin-bottom:78px.

Карточки списком, gap:36px, width:100%, height:170px, radius:17px, overflow:hidden. Фон-слой #22386D. Внутри flex, align-items:center, padding:0 36px 0 44px, gap:40px. Число→иконка→описание→кнопка.
Число 122px regular/.9, трекинг -2px, width:560px, nowrap. Иконка 58×60px, contain. Описание белое 15.5px/1.46, flex:1. Кнопка 108×104px, radius:15px, фон #F2F2F0, в центре SVG-стрелка ↗ 36px, stroke:#071A49 толщиной 2.2px, href="#".

Число | иконка | описание:
128–155 | https://static.tildacdn.com/tild6365-3862-4261-b735-366235346233/1_2.svg | Faster decision-making with
clear benefit highlights
13.5 | https://static.tildacdn.com/tild3361-6133-4430-b835-393162623365/2_3.svg | Higher engagement with
structured visual content
78–145 | https://static.tildacdn.com/tild6232-6534-4164-b735-613738316134/3_2.svg | User actions completed through
optimized journeys
Числа статичные, без счётчика.

При видимости 18% секции однократный вход. Заголовок opacity:0→1, Y:22px→0 за 700ms. Карточка i стартует через 700+i*797.5ms: фон scaleX(0→1) от левого края за 1050ms; Блик 120px, белый .028, проходит слева направо за 900ms, гаснет за 300ms. Число через 80ms за 420ms из Y:10px; иконка через 380ms, описание через 560ms, кнопка через 750ms — за 380ms. Иконка/текст Y:8px, кнопка scale(.96) translateY(6px). Easing cubic-bezier(.22,1,.36,1).

Hover: карточка вверх 6px, соседние opacity:.92, кнопка белеет, стрелка смещается (3px,-3px). После входа параллакс: lerp .08, до 1px заголовок/1.75px карточки; уход обнуляет. Совмещай с hover.

≤1200px: число 100px, ширина 460px; padding ряда 0 28px 0 36px, gap:32px.
≤960px: секция 80px 20px 90px, заголовок 34px, отступ 60px; карточки min-height:150px, height:auto, inner position:relative, padding:28px 24px 28px 28px, gap:24px; число 80px width:auto, описание 14px, кнопка 84×80px, gap:24px.
≤640px: секция 60px 16px 68px, заголовок 28px/1.25, отступ 40px. Карточки auto-height, radius:14px, gap:16px; колонка слева, padding:28px 24px 32px, gap:16px; порядок иконка→число→описание, кнопка скрыта. Число 80px, описание 15px.
≤480px: секция 48px 12px 56px, заголовок 24px, отступ 32px; radius:12px, gap:12px, inner padding:24px 20px 28px; число 64px, описание 14px.
≤360px: заголовок 22px, число 54px, описание 13px, inner padding:20px 16px 24px.
Изолируй CSS/JS. Reduced-motion: всё видно без анимаций.
Скопировать промпт
Код
Вы можете скопировать код и вставить его в вайб блок в раздел код. Подробнее в инструкции.
<style>
/* =========================================================
METRICS BLOCK — BEM PREFIX: mb
========================================================= */
.mb-section,
.mb-section * {
box-sizing: border-box;
}
.mb-section input,
.mb-section textarea,
.mb-section select {
font: inherit;
}

/* ---- Section shell ---- */
.mb-section {
width: 100%;
background-color: #071A49;
padding: 110px 20px;
font-family: var(--t-text-font, Arial, sans-serif);
overflow: hidden;
position: relative;
}

/* ---- Inner container ---- */
.mb-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* ---- Heading ---- */
.mb-heading {
font-family: var(--t-headline-font, Arial, sans-serif);
font-size: 40px;
font-weight: 400;
line-height: 1.22;
color: #ffffff;
max-width: 620px;
margin: 0 0 78px 0;
opacity: 0;
transform: translateY(22px);
transition: opacity 700ms cubic-bezier(0.22,1,0.36,1),
transform 700ms cubic-bezier(0.22,1,0.36,1);
}
.mb-heading.mb--visible {
opacity: 1;
transform: translateY(0);
}

/* ---- Bar list ---- */
.mb-bars {
display: flex;
flex-direction: column;
gap: 36px;
list-style: none;
margin: 0;
padding: 0;
}

/* ---- Single bar ---- */
.mb-bar {
position: relative;
width: 100%;
height: 170px;
border-radius: 17px;
overflow: hidden;
cursor: pointer;
transition: transform 380ms cubic-bezier(0.22,1,0.36,1),
opacity 280ms ease;
}

/* Bar background fill */
.mb-bar__bg {
position: absolute;
inset: 0;
background-color: #22386D;
border-radius: 17px;
transform-origin: left center;
transform: scaleX(0);
transition: transform 1050ms cubic-bezier(0.22,1,0.36,1);
will-change: transform;
}

/* Sweep highlight */
.mb-bar__sweep {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 120px;
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.028) 50%, transparent 100%);
border-radius: 17px;
opacity: 0;
pointer-events: none;
transition: none;
}

/* ---- Inner: desktop = horizontal row ---- */
.mb-bar__inner {
position: absolute;
inset: 0;
display: flex;
flex-direction: row;
align-items: center;
padding: 0 36px 0 44px;
gap: 40px;
}

/* ---- Number ---- */
.mb-bar__number {
font-family: var(--t-headline-font, Arial, sans-serif);
font-size: 122px;
font-weight: 400;
line-height: 0.9;
letter-spacing: -2px;
color: #ffffff;
white-space: nowrap;
flex-shrink: 0;
width: 560px;
opacity: 0;
transform: translateY(10px);
transition: opacity 420ms cubic-bezier(0.22,1,0.36,1),
transform 420ms cubic-bezier(0.22,1,0.36,1);
}

/* ---- Icon — direct child of inner ---- */
.mb-bar__icon {
flex-shrink: 0;
width: 58px;
height: 60px;
opacity: 0;
transform: translateY(8px);
transition: opacity 380ms cubic-bezier(0.22,1,0.36,1),
transform 380ms cubic-bezier(0.22,1,0.36,1);
}

/* ---- Desc — direct child of inner ---- */
.mb-bar__desc {
font-family: var(--t-text-font, Arial, sans-serif);
font-size: 15.5px;
font-weight: 400;
line-height: 1.46;
color: #ffffff;
margin: 0;
flex: 1;
min-width: 0;
opacity: 0;
transform: translateY(8px);
transition: opacity 380ms cubic-bezier(0.22,1,0.36,1),
transform 380ms cubic-bezier(0.22,1,0.36,1);
}

/* ---- Button ---- */
.mb-bar__btn {
flex-shrink: 0;
width: 108px;
height: 104px;
background: #F2F2F0;
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
opacity: 0;
transform: scale(0.96) translateY(6px);
transition: opacity 380ms cubic-bezier(0.22,1,0.36,1),
transform 380ms cubic-bezier(0.22,1,0.36,1),
background 200ms ease;
}
.mb-bar__btn:focus-visible {
outline: 2px solid #ffffff;
outline-offset: 3px;
}

.mb-bar__arrow {
display: block;
width: 36px;
height: 36px;
transition: transform 260ms cubic-bezier(0.22,1,0.36,1);
}

/* ---- Animated states ---- */
.mb-bar.mb--filled .mb-bar__bg { transform: scaleX(1); }
.mb-bar.mb--num-visible .mb-bar__number { opacity: 1; transform: translateY(0); }
.mb-bar.mb--icon-visible .mb-bar__icon { opacity: 1; transform: translateY(0); }
.mb-bar.mb--desc-visible .mb-bar__desc { opacity: 1; transform: translateY(0); }
.mb-bar.mb--btn-visible .mb-bar__btn { opacity: 1; transform: scale(1) translateY(0); }

/* ---- Hover ---- */
@media (hover: hover) {
.mb-bars:has(.mb-bar:hover) .mb-bar:not(:hover) { opacity: 0.92; }
.mb-bar:hover { transform: translateY(-6px); }
.mb-bar:hover .mb-bar__btn { background: #ffffff; }
.mb-bar:hover .mb-bar__arrow { transform: translate(3px, -3px); }
}

/* =========================================================
RESPONSIVE
========================================================= */

/* 1200px → 960px */
@media (max-width: 1200px) {
.mb-bar__inner { padding: 0 28px 0 36px; gap: 32px; }
.mb-bar__number { font-size: 100px; width: 460px; letter-spacing: -1.5px; }
}

/* 960px → 640px */
@media (max-width: 960px) {
.mb-section { padding: 80px 20px 90px; }
.mb-heading { font-size: 34px; margin-bottom: 60px; max-width: 520px; }
.mb-bar { height: auto; min-height: 150px; }
.mb-bar__inner {
position: relative;
inset: auto;
padding: 28px 24px 28px 28px;
gap: 24px;
}
.mb-bar__number { font-size: 80px; width: auto; letter-spacing: -1px; flex-shrink: 0; }
.mb-bar__icon { width: 48px; height: 50px; }
.mb-bar__desc { font-size: 14px; }
.mb-bar__btn { width: 84px; height: 80px; }
.mb-bar__arrow { width: 30px; height: 30px; }
.mb-bars { gap: 24px; }
}

/* =========================================================
MOBILE ≤ 640px
Вертикальный стек: иконка → цифра → описание
========================================================= */
@media (max-width: 640px) {
.mb-section { padding: 60px 16px 68px; }
.mb-heading { font-size: 28px; line-height: 1.25; margin-bottom: 40px; max-width: 100%; }
.mb-bars { gap: 16px; }

/* Карточка растягивается по контенту */
.mb-bar { height: auto; min-height: 0; border-radius: 14px; }
.mb-bar__bg { border-radius: 14px; }

/* Переключаемся в колонку */
.mb-bar__inner {
position: relative;
inset: auto;
flex-direction: column;
align-items: flex-start;
padding: 28px 24px 32px;
gap: 16px;
}

/* Порядок: иконка → цифра → описание */
.mb-bar__icon { order: 1; width: 52px; height: 54px; flex-shrink: 0; }
.mb-bar__number { order: 2; font-size: 80px; width: auto; white-space: nowrap; letter-spacing: -1.5px; line-height: 0.92; flex-shrink: 0; }
.mb-bar__desc { order: 3; font-size: 15px; line-height: 1.44; max-width: 100%; flex: none; }

/* Кнопка на мобайле скрыта */
.mb-bar__btn { display: none; }
}

/* ≤ 480px */
@media (max-width: 480px) {
.mb-section { padding: 48px 12px 56px; }
.mb-heading { font-size: 24px; margin-bottom: 32px; }
.mb-bar { border-radius: 12px; }
.mb-bar__bg { border-radius: 12px; }
.mb-bar__inner { padding: 24px 20px 28px; gap: 12px; }
.mb-bar__icon { width: 44px; height: 46px; }
.mb-bar__number { font-size: 64px; letter-spacing: -1px; }
.mb-bar__desc { font-size: 14px; }
.mb-bars { gap: 12px; }
}

/* ≤ 360px */
@media (max-width: 360px) {
.mb-heading { font-size: 22px; }
.mb-bar__inner { padding: 20px 16px 24px; gap: 10px; }
.mb-bar__icon { width: 38px; height: 40px; }
.mb-bar__number { font-size: 54px; letter-spacing: -.5px; }
.mb-bar__desc { font-size: 13px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
.mb-heading,
.mb-bar__bg,
.mb-bar__number,
.mb-bar__icon,
.mb-bar__desc,
.mb-bar__btn {
transition-duration: 1ms !important;
transform: none !important;
}
.mb-bar__number,
.mb-bar__icon,
.mb-bar__desc,
.mb-bar__btn { opacity: 1 !important; }
.mb-heading { opacity: 1 !important; }
}
</style>

<section class="mb-section" aria-label="Product metrics">
<div class="mb-container">

<h2 class="mb-heading">
Clear, visual proof of your<br>
product's value—easy to scan,<br>
compare, and remember.
</h2>

<ul class="mb-bars" role="list">

<!-- Bar 1 -->
<li class="mb-bar" data-bar="">
<div class="mb-bar__bg"></div>
<div class="mb-bar__sweep"></div>
<div class="mb-bar__inner">
<div class="mb-bar__number" aria-label="128 to 150">128–155</div>
<div class="mb-bar__icon" aria-hidden="true" style="display:inline-block;width:58px;height:60px;background-image:url('https://static.tildacdn.com/tild6365-3862-4261-b735-366235346233/1_2.svg');background-repeat:no-repeat;background-position:center;background-size:contain;"></div>
<p class="mb-bar__desc">Faster decision-making with<br>clear benefit highlights</p>
<a href="#" class="mb-bar__btn" aria-label="Learn more about decision-making metric">
<svg class="mb-bar__arrow" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<line x1="10" y1="26" x2="26" y2="10" stroke="#071A49" stroke-width="2.2" stroke-linecap="round"></line>
<polyline points="14,10 26,10 26,22" stroke="#071A49" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" fill="none"></polyline>
</svg>
</a>
</div>
</li>

<!-- Bar 2 -->
<li class="mb-bar" data-bar="1">
<div class="mb-bar__bg"></div>
<div class="mb-bar__sweep"></div>
<div class="mb-bar__inner">
<div class="mb-bar__number" aria-label="13.5">13.5</div>
<div class="mb-bar__icon" aria-hidden="true" style="display:inline-block;width:58px;height:60px;background-image:url('https://static.tildacdn.com/tild3361-6133-4430-b835-393162623365/2_3.svg');background-repeat:no-repeat;background-position:center;background-size:contain;"></div>
<p class="mb-bar__desc">Higher engagement with<br>structured visual content</p>
<a href="#" class="mb-bar__btn" aria-label="Learn more about engagement metric">
<svg class="mb-bar__arrow" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<line x1="10" y1="26" x2="26" y2="10" stroke="#071A49" stroke-width="2.2" stroke-linecap="round"></line>
<polyline points="14,10 26,10 26,22" stroke="#071A49" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" fill="none"></polyline>
</svg>
</a>
</div>
</li>

<!-- Bar 3 -->
<li class="mb-bar" data-bar="2">
<div class="mb-bar__bg"></div>
<div class="mb-bar__sweep"></div>
<div class="mb-bar__inner">
<div class="mb-bar__number" aria-label="78 to 145">78–145</div>
<div class="mb-bar__icon" aria-hidden="true" style="display:inline-block;width:58px;height:60px;background-image:url('https://static.tildacdn.com/tild6232-6534-4164-b735-613738316134/3_2.svg');background-repeat:no-repeat;background-position:center;background-size:contain;"></div>
<p class="mb-bar__desc">User actions completed through<br>optimized journeys</p>
<a href="#" class="mb-bar__btn" aria-label="Learn more about user actions metric">
<svg class="mb-bar__arrow" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<line x1="10" y1="26" x2="26" y2="10" stroke="#071A49" stroke-width="2.2" stroke-linecap="round"></line>
<polyline points="14,10 26,10 26,22" stroke="#071A49" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" fill="none"></polyline>
</svg>
</a>
</div>
</li>

</ul>
</div>
</section>

<script>
(function () {
'use strict';

var BAR_FILL_DURATION = 1050;
var BAR_STAGGER_DELAY = 220;
var NUM_DELAY = 80;
var ICON_DELAY = 380;
var DESC_DELAY = 560;
var BTN_DELAY = 750;
var SWEEP_DURATION = 900;

var reducedMotion = window.matchMedia &&
window.matchMedia('(prefers-reduced-motion: reduce)').matches;

var section = document.querySelector('.mb-section');
var heading = section.querySelector('.mb-heading');
var bars = Array.prototype.slice.call(section.querySelectorAll('.mb-bar'));

function delay(fn, ms) {
return setTimeout(fn, reducedMotion ? 0 : ms);
}

function runSweep(bar) {
if (reducedMotion) return;
var sweep = bar.querySelector('.mb-bar__sweep');
var barW = bar.offsetWidth;
sweep.style.transition = 'none';
sweep.style.opacity = '1';
sweep.style.left = '-120px';
void sweep.offsetWidth;
sweep.style.transition = 'left ' + SWEEP_DURATION + 'ms cubic-bezier(0.22,1,0.36,1)';
sweep.style.left = (barW + 20) + 'px';
delay(function () {
sweep.style.opacity = '0';
sweep.style.transition = 'opacity 300ms ease';
}, SWEEP_DURATION);
}

function animateBar(bar, startTime) {
delay(function () {
bar.classList.add('mb--filled');
runSweep(bar);
delay(function () { bar.classList.add('mb--num-visible'); }, NUM_DELAY);
delay(function () { bar.classList.add('mb--icon-visible'); }, ICON_DELAY);
delay(function () { bar.classList.add('mb--desc-visible'); }, DESC_DELAY);
delay(function () { bar.classList.add('mb--btn-visible'); }, BTN_DELAY);
}, startTime);
}

function startSequence() {
heading.classList.add('mb--visible');
var headingIntro = reducedMotion ? 0 : 700;
bars.forEach(function (bar, i) {
animateBar(bar, headingIntro + i * (BAR_FILL_DURATION * 0.55 + BAR_STAGGER_DELAY));
});
}

if ('IntersectionObserver' in window) {
var triggered = false;
var observer = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
if (entry.isIntersecting && !triggered) {
triggered = true;
observer.disconnect();
startSequence();
}
});
}, { threshold: 0.18 });
observer.observe(section);
} else {
startSequence();
}

if (!reducedMotion && window.matchMedia('(hover: hover)').matches) {
var mx = 0, my = 0, tw = 0, ty = 0;

section.addEventListener('mousemove', function (e) {
var rect = section.getBoundingClientRect();
tw = (e.clientX - (rect.left + rect.width / 2)) / rect.width * 5;
ty = (e.clientY - (rect.top + rect.height / 2)) / rect.height * 5;
});
section.addEventListener('mouseleave', function () { tw = 0; ty = 0; });

function tick() {
mx += (tw - mx) * 0.08;
my += (ty - my) * 0.08;
heading.style.transform =
'translate(' + (mx * 0.4).toFixed(2) + 'px,' + (my * 0.4).toFixed(2) + 'px)';
bars.forEach(function (bar) {
bar.style.transform =
'translate(' + (mx * 0.7).toFixed(2) + 'px,' + (my * 0.7).toFixed(2) + 'px)';
});
requestAnimationFrame(tick);
}

var pDelay = 700 + bars.length * (BAR_FILL_DURATION * 0.55 + BAR_STAGGER_DELAY) + BTN_DELAY + 500;
setTimeout(tick, pDelay);
}

})();
</script>
Скопировать код
Что выбрать, промпт или код?
Копируйте промпт, если хотите получить похожий результат, но ввести информацию о своём бизнесе и задать свои требования. Например, изменить кнопки, тексты, цвета, фотографии или другие элементы.
Копируйте код, если хотите получить точно такой же блок. Чтобы его изменить, придётся отредактировать html-код.
Начните создание сайта на Тильде с простой регистрации на платформе
Made on
Tilda