Журнал Тильды
/
Библиотека промптов
/
Обложка сайта агентства недвижимости с бегущими карточками
Обложки, Анимация
Обложка сайта агентства недвижимости с бегущими карточками
Бегущая строка из карточек объектов на сайте агентства недвижимости: две ленты едут навстречу, при наведении видны тип и цена.
Промпт
Вы можете скопировать промпт и вставить его в вайб блок в поле ввода. Подробнее в инструкции.
Обложка недвижимости.

10 карточек в HTML: текст data-tilda-edit="y",img data-tilda-img="y". Без динамического контента/клонов/canvas; JS двигает оригиналы. База/reduced-motion: статика; редактор: всё видно. IIFE после HTML,root ищи в document.currentScript?.getRootNode()||document; init сразу. Изолируй CSS/JS.

Белый фон,Arial,grid54% 1fr,padding/gap20px. Обе части h=100vh-40px. Слева #5367ff,radius20px,padding0 96px,центр по вертикали.
New Developments:uppercase,13px,белый .65.
Exceptional / places to live, / work, belong: H1 в3 строки,clamp(42px,4.2vw,72px),700/1.02,tracking:-.04em,белый.
We create thoughtfully designed properties in some of the world's most inspiring cities — places made for everyday life and built to last.
Описание18px/1.6,белый .52,max-width460px. Отступы после eyebrow/H1/описания48/36/54px.
Explore Properties: белая кнопка,синий15px/600,h54px,padding0 40px,radius8px.

Справа2 колонки,gap20px,overflow:hidden,белые фейды100px/160px сверху/снизу. Карточка h240px,radius16px,cover,снизу тёмный градиент,padding16px,город20px/700,мета14px белая .6. Hover: фото×1.11,brightness.72,pill типа/цены сверху,деталь и синий круг40px с→ снизу,переход .4с.
Левая лента вверх28px/с,правая вниз22px/с. rAF+dt,перенос вне окна по модулю N*(h+20). Hover/focus: плавная пауза обеих,уход: продолжение. Пересчёт resize/правок.

768–1199px:grid48% 1fr,padding/gap16px,слева padding0 48px,h210px.
≤767px: 1 колонка,padding/gap12px,слева padding52px 28px 44px,h:auto,H1 clamp(40px,11vw,56px). Галерея2 колонки,h=(100vw-44px)/2,окно2h+20px,фейды40/60px. Тип/цена/деталь скрыты,стрелка32px видна. ≤479px: город16px,мета12px.

Все href="#". Первые5 слева. Город|тип|цена с from|beds/baths/особенность|деталь|путь. Тексты EN. Префикс https://static.tildacdn.com/; src в HTML:
Shoreditch, London|Apartment|$890K|2/2/1,100 sqft|Rooftop deck|tild3231-3430-4232-b833-303362373636/Rectangle_240653965.png
Côte d'Azur, France|Villa|$3.2M|5/4/Private pool|Sea views|tild3930-6563-4839-b736-653766326666/Rectangle_240653964.png
Le Marais, Paris|Townhouse|$1.6M|3/2/Private courtyard|Parquet|tild3537-3538-4331-a338-643632306335/photo-1565363887735-.jpg
Navigli, Milan|Penthouse|$2.1M|3/2/Wraparound terrace|Marble|tild3763-6630-4334-b434-383364633635/Rectangle_240653966.png
Bairro Alto, Lisbon|Residence|$780K|2/1/Tagus view|Azulejos|tild6164-6530-4636-b637-663864343230/Rectangle_240653968.png
SoHo, New York|Loft|$1.1M|3/2/1,800 sqft|14 ft ceilings|tild3633-3834-4438-a366-353734323735/photo-1515263487990-.jpg
Prenzlauer Berg, Berlin|Duplex|$1.9M|4/3/Roof terrace|Stucco|tild6333-6366-4162-b539-653830353438/6461.jpg
Eixample, Barcelona|Residence|$650K|2/1/Interior garden|Mosaic|tild3931-3531-4938-b333-343266643338/26979.jpg
Marina Bay, Singapore|Sky Home|$4.2M|5/4/Sky pool|Infinity pool|tild6237-3364-4462-a663-613332393331/photo-1571236673892-.jpg
Verbier, Switzerland|Chalet|$2.7M|6 beds · Ski-in/out · Private spa|Mont Blanc|tild3137-6531-4163-b334-373935653139/Rectangle_240653967.png
Скопировать промпт
Код
Вы можете скопировать код и вставить его в вайб блок в раздел код. Подробнее в инструкции.
<section class="vbx-property-hero" aria-labelledby="vbx-property-title-uwdvt">
<style>
.vbx-property-hero,
.vbx-property-hero * { box-sizing: border-box; }

.vbx-property-hero {
--blue: #5367ff;
--gap: 20px;
position: relative;
width: 100%;
min-height: 100vh;
background: #fff;
overflow: hidden;
}

.vbx-property-hero__layout {
min-height: 100vh;
display: grid;
grid-template-columns: 54% 1fr;
gap: var(--gap);
padding: 20px;
}

/* ── LEFT ── */
.vbx-property-hero__intro {
min-height: calc(100vh - 40px);
border-radius: 20px;
background: var(--blue);
display: flex;
align-items: center;
overflow: hidden;
padding: 0 90px 0 96px;
}

.vbx-property-hero__intro-inner {
width: 100%;
transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

.vbx-property-hero__intro-inner--animate {
opacity: 0;
transform: translateY(18px);
}
.vbx-property-hero__intro-inner--animate.vbx-property-hero__intro-inner--in {
opacity: 1;
transform: none;
}

.vbx-property-hero__eyebrow {
margin: 0 0 48px;
font-family: Arial, sans-serif;
font-size: 13px; font-weight: 500;
line-height: 1; letter-spacing: .1em;
text-transform: uppercase;
color: rgba(255,255,255,.65);
}

.vbx-property-hero__title {
max-width: 600px; margin: 0 0 36px;
font-family: Arial, sans-serif;
font-size: clamp(42px, 4.2vw, 72px);
font-weight: 700; line-height: 1.02;
letter-spacing: -.04em; color: #fff;
text-wrap: balance;
}

.vbx-property-hero__description {
max-width: 480px; width: 460px; margin: 0 0 54px;
font-family: Arial, sans-serif;
font-size: clamp(15px, 1.3vw, 18px);
font-weight: 400; line-height: 1.6;
color: rgba(255,255,255,.52);
}

.vbx-property-hero__cta {
display: inline-flex; align-items: center; justify-content: center;
min-height: 54px; padding: 0 40px;
border: 0; border-radius: 8px;
background: #fff; color: var(--blue);
font-family: Arial, sans-serif;
font-size: 15px; font-weight: 600; line-height: 1;
text-decoration: none; white-space: nowrap;
transition: transform .25s ease, opacity .25s ease;
}
.vbx-property-hero__cta:hover { transform: translateY(-2px); opacity: .9; }

/* ══════════════════════════════════════════
SOURCE — static HTML cards
══════════════════════════════════════════ */
.vbx-property-hero__source {
position: relative;
display: flex;
gap: 20px;
max-height: calc(100vh - 40px);
overflow-y: auto;
scrollbar-width: none;
}
.vbx-property-hero__source::-webkit-scrollbar { display: none; }

.vbx-property-hero--live .vbx-property-hero__source {
display: none;
}

.vbx-property-hero__source-col {
flex: 1 1 0; min-width: 0;
display: flex; flex-direction: column; gap: 20px;
}

/* ══════════════════════════════════════════
CANVAS — JS-only animation layer
══════════════════════════════════════════ */
.vbx-property-hero__canvas {
display: none;
position: relative;
gap: 20px;
}

.vbx-property-hero--live .vbx-property-hero__canvas {
display: flex;
height: calc(100vh - 40px);
overflow: hidden;
opacity: 0;
transition: opacity .9s .2s cubic-bezier(.16,1,.3,1);
}

.vbx-property-hero--live.vbx-property-hero--visible .vbx-property-hero__canvas { opacity: 1; }

.vbx-property-hero__canvas::before,
.vbx-property-hero__canvas::after {
content: "";
position: absolute; left: 0; right: 0;
z-index: 20; pointer-events: none;
}
.vbx-property-hero__canvas::before {
top: 0; height: 100px;
background: linear-gradient(to bottom, #fff, transparent);
}
.vbx-property-hero__canvas::after {
bottom: 0; height: 160px;
background: linear-gradient(to top, #fff 0%, rgba(255,255,255,.8) 30%, transparent 100%);
}

.vbx-property-hero__canvas-col {
flex: 1 1 0; min-width: 0;
position: relative;
overflow: hidden;
}

.vbx-property-hero__canvas-col .vbx-property-hero__card {
position: absolute;
left: 0; right: 0; top: 0;
transform: translate3d(0,0,0);
will-change: transform;
}

/* ── CARDS shared styles ── */
.vbx-property-hero__card {
position: relative;
width: 100%; height: 240px;
overflow: hidden; border-radius: 16px;
background: #111; cursor: pointer;
isolation: isolate; flex-shrink: 0;
}

.vbx-property-hero__image {
position: absolute; inset: 0;
display: block; width: 100%; height: 100%;
object-fit: cover; object-position: center;
transform: scale(1.04);
transition: transform .75s cubic-bezier(.16,1,.3,1), filter .55s ease;
pointer-events: none; user-select: none;
-webkit-user-drag: none;
}

.vbx-property-hero__card:hover .vbx-property-hero__image { transform: scale(1.11); filter: brightness(.72); }
.vbx-property-hero__card--no-text:hover .vbx-property-hero__image { filter: none; transform: scale(1.07); }

.vbx-property-hero__img-shield {
position: absolute; inset: 0; z-index: 2;
pointer-events: all; background: transparent;
}
.vbx-property-hero__source .vbx-property-hero__img-shield { display: none; }

.vbx-property-hero__gradient {
position: absolute; inset: 0; z-index: 3;
pointer-events: none;
background: linear-gradient(to top, rgba(10,10,26,.88) 0%, rgba(10,10,26,.3) 42%, transparent 70%);
transition: opacity .4s ease;
}
.vbx-property-hero__card:hover .vbx-property-hero__gradient { opacity: .75; }
.vbx-property-hero__card--no-text .vbx-property-hero__gradient { opacity: 0 !important; }
.vbx-property-hero__card--no-text:hover .vbx-property-hero__gradient { opacity: 0 !important; }

.vbx-property-hero__badge,
.vbx-property-hero__price {
position: absolute; top: 14px; z-index: 5;
padding: 5px 11px; border-radius: 999px;
border: 1px solid rgba(255,255,255,.18);
color: #fff; white-space: nowrap;
opacity: 0; transform: translateY(-5px);
transition: opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1);
backdrop-filter: blur(8px);
}
.vbx-property-hero__source .vbx-property-hero__badge,
.vbx-property-hero__source .vbx-property-hero__price { opacity: 1; transform: none; }

.vbx-property-hero__badge {
left: 14px; background: rgba(83,103,255,.88);
font-family: Arial, sans-serif;
font-size: 10px; font-weight: 700;
letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.vbx-property-hero__price {
right: 14px; background: rgba(0,0,0,.48);
font-family: Arial, sans-serif;
font-size: 12px; font-weight: 700; line-height: 1;
}
.vbx-property-hero__card:hover .vbx-property-hero__badge,
.vbx-property-hero__card:hover .vbx-property-hero__price { opacity: 1; transform: translateY(0); }

.vbx-property-hero__card--no-text .vbx-property-hero__badge,
.vbx-property-hero__card--no-text .vbx-property-hero__price,
.vbx-property-hero__card--no-text:hover .vbx-property-hero__badge,
.vbx-property-hero__card--no-text:hover .vbx-property-hero__price {
display: none !important;
}

.vbx-property-hero__bottom {
position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
display: grid; grid-template-columns: minmax(0,1fr) 40px;
gap: 12px; align-items: end; padding: 16px;
}

.vbx-property-hero__card--no-text .vbx-property-hero__bottom,
.vbx-property-hero__card--no-text:hover .vbx-property-hero__bottom {
display: none !important;
}

.vbx-property-hero__text { min-width: 0; }

.vbx-property-hero__city {
display: block; margin: 0 0 4px;
font-family: Arial, sans-serif;
font-size: 20px; font-weight: 700;
line-height: 1.12; letter-spacing: -.02em; color: #fff;
}

.vbx-property-hero__meta {
display: block;
font-family: Arial, sans-serif;
font-size: 14px; font-weight: 400;
line-height: 1.3; color: rgba(255,255,255,.6);
}

.vbx-property-hero__detail-wrap {
max-height: 0; overflow: hidden;
opacity: 0; transform: translateY(5px);
transition: max-height .48s cubic-bezier(.16,1,.3,1), opacity .3s ease, transform .4s cubic-bezier(.16,1,.3,1);
}
.vbx-property-hero__source .vbx-property-hero__detail-wrap { max-height: 62px; opacity: 1; transform: none; }

.vbx-property-hero__card:hover .vbx-property-hero__detail-wrap { max-height: 62px; opacity: 1; transform: translateY(0); }

.vbx-property-hero__detail {
margin-top: 7px; padding-top: 7px;
border-top: 1px solid rgba(255,255,255,.14);
font-family: Arial, sans-serif;
font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.8);
display: -webkit-box; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; overflow: hidden;
}

.vbx-property-hero__card-link {
width: 40px; height: 40px; align-self: end;
display: inline-flex; align-items: center; justify-content: center;
border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
background: rgba(83,103,255,.94); color: #fff;
text-decoration: none;
opacity: 0; transform: scale(.72) rotate(-32deg);
transition: opacity .3s ease, transform .42s cubic-bezier(.16,1,.3,1), background .2s ease;
}
.vbx-property-hero__source .vbx-property-hero__card-link { opacity: 1; transform: scale(1) rotate(0); }

.vbx-property-hero__card:hover .vbx-property-hero__card-link { opacity: 1; transform: scale(1) rotate(0); }
.vbx-property-hero__card-link:hover { background: #3d40c8; }
.vbx-property-hero__card-link svg { width: 16px; height: 16px; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1199px) and (min-width: 768px) {
.vbx-property-hero__layout { grid-template-columns: 48% 1fr; gap: 16px; padding: 16px; }
.vbx-property-hero__intro { min-height: calc(100vh - 32px); padding: 0 48px; }
.vbx-property-hero--live .vbx-property-hero__canvas { height: calc(100vh - 32px); }
.vbx-property-hero__card { height: 210px; }
}

@media (max-width: 767px) {
.vbx-property-hero__layout { min-height: auto; grid-template-columns: 1fr; gap: 12px; padding: 12px; }
.vbx-property-hero__intro { min-height: auto; padding: 52px 28px 44px; border-radius: 18px; }
.vbx-property-hero__title { font-size: clamp(40px, 11vw, 56px); }
.vbx-property-hero__description { width: auto; }
.vbx-property-hero__card { height: calc((100vw - 44px) / 2); border-radius: 13px; }
.vbx-property-hero--live .vbx-property-hero__canvas { height: calc(2 * (100vw - 44px) / 2 + 20px); }
.vbx-property-hero__canvas::before { height: 40px; }
.vbx-property-hero__canvas::after { height: 60px; }
.vbx-property-hero__badge, .vbx-property-hero__price, .vbx-property-hero__detail-wrap { display: none; }
.vbx-property-hero__card-link { opacity: 1; transform: scale(1) rotate(0); width: 32px; height: 32px; }
.vbx-property-hero__card-link svg { width: 14px; height: 14px; }
}

@media (max-width: 479px) {
.vbx-property-hero__card { height: calc((100vw - 44px) / 2); }
.vbx-property-hero--live .vbx-property-hero__canvas { height: calc(2 * (100vw - 44px) / 2 + 20px); }
.vbx-property-hero__description { width: auto; }
.vbx-property-hero__city { font-size: 16px; }
.vbx-property-hero__meta { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
.vbx-property-hero__intro-inner { transition: none !important; }
.vbx-property-hero--live .vbx-property-hero__canvas { opacity: 1 !important; transition: none !important; }
}
</style>

<div class="vbx-property-hero__layout">

<!-- LEFT -->
<div class="vbx-property-hero__intro">
<div class="vbx-property-hero__intro-inner">
<p class="vbx-property-hero__eyebrow">New Developments</p>
<h1 class="vbx-property-hero__title" id="vbx-property-title-uwdvt">
Exceptional<br>places to live,<br>work, belong
</h1>
<p class="vbx-property-hero__description">
We create thoughtfully designed properties in some of the world's most inspiring cities — places made for everyday life and built to last.
</p>
<a class="vbx-property-hero__cta" href="#">Explore Properties</a>
</div>
</div>

<!-- RIGHT: source (editable) + canvas (animation, aria-hidden) -->
<div style="position:relative; min-width:0;">

<!-- ══ SOURCE ══ -->
<div class="vbx-property-hero__source">

<!-- Column 0 — scrolls UP -->
<div class="vbx-property-hero__source-col" data-vbx-col="0" data-vbx-dir="up">

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild3231-3430-4232-b833-303362373636/Rectangle_240653965.png" alt="Shoreditch, London" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Apartment</span>
<span class="vbx-property-hero__price">from $890K</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Shoreditch, London</span>
<span class="vbx-property-hero__meta">2 beds · 2 baths · 1,100 sqft</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Open-plan living with steel-framed windows, original brick walls and a private rooftop deck.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild3930-6563-4839-b736-653766326666/Rectangle_240653964.png" alt="Côte d'Azur, France" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Villa</span>
<span class="vbx-property-hero__price">from $3.2M</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Côte d'Azur, France</span>
<span class="vbx-property-hero__meta">5 beds · 4 baths · Private pool</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Sun-drenched Provençal villa with terraced gardens, infinity pool and panoramic views of the Mediterranean.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild3537-3538-4331-a338-643632306335/photo-1565363887735-.jpg" alt="Le Marais, Paris" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Townhouse</span>
<span class="vbx-property-hero__price">from $1.6M</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Le Marais, Paris</span>
<span class="vbx-property-hero__meta">3 beds · 2 baths · Private courtyard</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">17th-century hôtel particulier with parquet floors, carved ceilings and walled garden.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild3763-6630-4334-b434-383364633635/Rectangle_240653966.png" alt="Navigli, Milan" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Penthouse</span>
<span class="vbx-property-hero__price">from $2.1M</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Navigli, Milan</span>
<span class="vbx-property-hero__meta">3 beds · 2 baths · Wraparound terrace</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Top-floor residence above the canal district — Italian marble, bespoke joinery, city skyline views.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild6164-6530-4636-b637-663864343230/Rectangle_240653968.png" alt="Bairro Alto, Lisbon" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Residence</span>
<span class="vbx-property-hero__price">from $780K</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Bairro Alto, Lisbon</span>
<span class="vbx-property-hero__meta">2 beds · 1 bath · Tagus view</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Lovingly restored 19th-century building with hand-painted azulejos, timber ceilings and river panoramas.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

</div><!-- /col 0 -->

<!-- Column 1 — scrolls DOWN -->
<div class="vbx-property-hero__source-col" data-vbx-col="1" data-vbx-dir="down">

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild3633-3834-4438-a366-353734323735/photo-1515263487990-.jpg" alt="SoHo, New York" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Loft</span>
<span class="vbx-property-hero__price">from $1.1M</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">SoHo, New York</span>
<span class="vbx-property-hero__meta">3 beds · 2 baths · 1,800 sqft</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Landmark cast-iron building, 14 ft ceilings, floor-to-ceiling windows and polished concrete floors.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild6333-6366-4162-b539-653830353438/6461.jpg" alt="Prenzlauer Berg, Berlin" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Duplex</span>
<span class="vbx-property-hero__price">from $1.9M</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Prenzlauer Berg, Berlin</span>
<span class="vbx-property-hero__meta">4 beds · 3 baths · Roof terrace</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Restored Wilhelminian-era Altbau with stucco details, double-height lounge and private rooftop garden.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild3931-3531-4938-b333-343266643338/26979.jpg" alt="Eixample, Barcelona" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Residence</span>
<span class="vbx-property-hero__price">from $650K</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Eixample, Barcelona</span>
<span class="vbx-property-hero__meta">2 beds · 1 bath · Interior garden</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Classic Modernista block with original hydraulic mosaic floors, ornate balcony and lush interior courtyard.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild6237-3364-4462-a663-613332393331/photo-1571236673892-.jpg" alt="Marina Bay, Singapore" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Sky Home</span>
<span class="vbx-property-hero__price">from $4.2M</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Marina Bay, Singapore</span>
<span class="vbx-property-hero__meta">5 beds · 4 baths · Sky pool</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Gleaming 54th-floor residence with panoramic bay views, infinity pool and white-glove concierge service.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

<div class="vbx-property-hero__card">
<img class="vbx-property-hero__image" src="https://static.tildacdn.com/tild3137-6531-4163-b334-373935653139/Rectangle_240653967.png" alt="Verbier, Switzerland" draggable="false">
<div class="vbx-property-hero__img-shield" aria-hidden="true"></div>
<div class="vbx-property-hero__gradient"></div>
<span class="vbx-property-hero__badge">Chalet</span>
<span class="vbx-property-hero__price">from $2.7M</span>
<div class="vbx-property-hero__bottom">
<div class="vbx-property-hero__text">
<span class="vbx-property-hero__city">Verbier, Switzerland</span>
<span class="vbx-property-hero__meta">6 beds · Ski-in/out · Private spa</span>
<div class="vbx-property-hero__detail-wrap"><div class="vbx-property-hero__detail">Traditional alpine chalet with vaulted timber ceilings, stone fireplace and sweeping Mont Blanc panorama.</div></div>
</div>
<a class="vbx-property-hero__card-link" href="#" aria-label="View property"><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg></a>
</div>
</div>

</div><!-- /col 1 -->

</div><!-- /source -->

<!-- ══ CANVAS ══ -->
<div class="vbx-property-hero__canvas" aria-hidden="true">
<div class="vbx-property-hero__canvas-col" data-vbx-anim-col="0"></div>
<div class="vbx-property-hero__canvas-col" data-vbx-anim-col="1"></div>
</div>

</div><!-- /right wrapper -->

</div><!-- /layout -->

<script>
(function () {

var root = document.querySelector('.vbx-property-hero');
if (!root || root.dataset.vbxInit === '1') return;
root.dataset.vbxInit = '1';

function hasText(el) {
return el && el.textContent.trim().length > 0;
}

var sourceCards = Array.prototype.slice.call(
root.querySelectorAll('.vbx-property-hero__source .vbx-property-hero__card')
);

sourceCards.forEach(function (card) {
var city = card.querySelector('.vbx-property-hero__city');
var meta = card.querySelector('.vbx-property-hero__meta');
var details = Array.prototype.slice.call(card.querySelectorAll('.vbx-property-hero__detail'));
var badge = card.querySelector('.vbx-property-hero__badge');
var price = card.querySelector('.vbx-property-hero__price');

var hasCity = hasText(city);
var hasMeta = hasText(meta);
var hasDetail = details.some(function (d) { return hasText(d); });
var hasBadge = hasText(badge);
var hasPrice = hasText(price);

if (!hasCity && !hasMeta && !hasDetail && !hasBadge && !hasPrice) {
card.classList.add('vbx-property-hero__card--no-text');
}
});

var b = document.body;
var isEditorClass =
b.classList.contains('vibe-editor') ||
b.classList.contains('t-editor') ||
b.classList.contains('t-editor_mode') ||
b.classList.contains('t-blockpreview') ||
document.documentElement.classList.contains('vibe-editor');

var isEditorUrl =
/[?&](editmode|tildaeditor|vibe|edit|mode)=/i.test(location.search) ||
/[?&]mode=edit/i.test(location.search);

var isIframe = (function () {
try { return window.self !== window.top; } catch (e) { return true; }
}());

if (isEditorClass || isEditorUrl || isIframe) {
return;
}

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

var introInner = root.querySelector('.vbx-property-hero__intro-inner');
if (introInner && !reducedMotion) {
introInner.classList.add('vbx-property-hero__intro-inner--animate');
requestAnimationFrame(function () {
requestAnimationFrame(function () {
introInner.classList.add('vbx-property-hero__intro-inner--in');
});
});
}

root.classList.add('vbx-property-hero--live');

requestAnimationFrame(function () {
root.classList.add('vbx-property-hero--visible');
});

var canvasEl = root.querySelector('.vbx-property-hero__canvas');
var animCols = Array.prototype.slice.call(root.querySelectorAll('.vbx-property-hero__canvas-col[data-vbx-anim-col]'));
var sourceCols = Array.prototype.slice.call(root.querySelectorAll('.vbx-property-hero__source-col[data-vbx-col]'));

if (!canvasEl || !animCols.length || !sourceCols.length) return;

var SPEEDS = [28, 22];
var tracks = [];
var lastTs = null;
var speedFactor = 1;
var targetFactor= 1;

function setY(el, y) {
el.style.top = '0px';
el.style.transform = 'translate3d(0,' + y.toFixed(3) + 'px,0)';
}

function getH() {
return canvasEl.getBoundingClientRect().height || window.innerHeight;
}

function buildTracks() {
var old = canvasEl.querySelectorAll('.vbx-property-hero__card');
for (var i = 0; i < old.length; i++) {
old[i].parentNode.removeChild(old[i]);
}

var galleryH = getH();

tracks = animCols.map(function (animCol) {

var colIdx = animCol.getAttribute('data-vbx-anim-col');
var srcCol = root.querySelector('.vbx-property-hero__source-col[data-vbx-col="' + colIdx + '"]');
if (!srcCol) return null;

var dir = srcCol.getAttribute('data-vbx-dir') || 'up';
var originals = Array.prototype.slice.call(srcCol.querySelectorAll('.vbx-property-hero__card'));
if (!originals.length) return null;

var CARD_H = 240;
var GAP = 20;
var STEP = CARD_H + GAP;
var N = originals.length;
var loopLen = N * STEP;
var isDown = dir === 'down';

var copies = Math.ceil((galleryH + loopLen * 2) / loopLen) + 1;
var totalSlots = copies * N;
var slots = [];

for (var s = 0; s < totalSlots; s++) {
var clone = originals[s % N].cloneNode(true);
clone.setAttribute('aria-hidden', 'true');
clone.removeAttribute('data-vbx-init');
var focusable = clone.querySelectorAll('a,button,input');
for (var f = 0; f < focusable.length; f++) {
focusable[f].setAttribute('tabindex', '-1');
}
animCol.appendChild(clone);
clone.style.left = '0';
clone.style.right = '0';
clone.style.height = CARD_H + 'px';
var y = isDown ? s * STEP - loopLen : s * STEP;
setY(clone, y);
slots.push({ el: clone, y: y });
}

return { slots: slots, isDown: isDown, speed: SPEEDS[animCols.indexOf(animCol)] || 26,
CARD_H: CARD_H, STEP: STEP, loopLen: loopLen };

}).filter(Boolean);

lastTs = null;
}

var hoverOk = window.matchMedia('(hover: hover) and (pointer: fine)').matches;
if (hoverOk) {
canvasEl.addEventListener('pointerenter', function () { targetFactor = 0; });
canvasEl.addEventListener('pointerleave', function () { targetFactor = 1; });
}

var started = false;

function tick(ts) {
if (lastTs === null) { lastTs = ts; requestAnimationFrame(tick); return; }
var dt = Math.min((ts - lastTs) / 1000, 0.05);
lastTs = ts;
speedFactor += (targetFactor - speedFactor) * (1 - Math.exp(-10 * dt));

for (var ti = 0; ti < tracks.length; ti++) {
var t = tracks[ti];
var n = t.slots.length;
var move = t.speed * speedFactor * dt;

if (t.isDown) {
for (var i = 0; i < n; i++) { t.slots[i].y += move; }
for (var i = 0; i < n; i++) { if (t.slots[i].y >= t.loopLen) t.slots[i].y -= t.loopLen; }
} else {
for (var i = 0; i < n; i++) { t.slots[i].y -= move; }
for (var i = 0; i < n; i++) { if (t.slots[i].y + t.CARD_H < -t.STEP) t.slots[i].y += t.loopLen; }
}
for (var r = 0; r < n; r++) { setY(t.slots[r].el, t.slots[r].y); }
}
requestAnimationFrame(tick);
}

var resizeTimer;
window.addEventListener('resize', function () {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(buildTracks, 140);
});
if ('ResizeObserver' in window) {
var _lastH = 0;
new ResizeObserver(function () {
var h = Math.round(getH());
if (Math.abs(h - _lastH) < 2) return;
_lastH = h; clearTimeout(resizeTimer);
resizeTimer = setTimeout(buildTracks, 140);
}).observe(canvasEl);
}

buildTracks();
if (!reducedMotion && !started) { started = true; requestAnimationFrame(tick); }

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