feat: animazioni stile template prowess (reveal, parallax, marquee, hero, hover)

This commit is contained in:
2026-07-02 13:08:09 +02:00
parent e54daa105f
commit 0d9b645636
15 changed files with 129 additions and 34 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ export const prerender = true;
<div class="container">
{trainings.map((t, i) => (
<div class:list={['tblock', { 'tblock--reverse': i % 2 === 1 }]} id={t.id}>
{imgOf(t.image) && <Image src={imgOf(t.image)!} alt={t.title} widths={[500, 900]} sizes="(max-width:767px) 100vw, 45vw" />}
<div>
{imgOf(t.image) && <Image src={imgOf(t.image)!} alt={t.title} widths={[500, 900]} sizes="(max-width:767px) 100vw, 45vw" data-reveal={i % 2 === 1 ? 'right' : 'left'} />}
<div data-reveal={i % 2 === 1 ? 'left' : 'right'}>
<h2>{t.title.toLowerCase()}</h2>
<p>{t.description}</p>
<a class="btn" href={t.cta.href}>{t.cta.label}</a>