feat: animazioni stile template prowess (reveal, parallax, marquee, hero, hover)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user