Rafael Reis
  • Projects
  • Stack
  • About
  • Notes

Language

  • PortuguêsPT
  • English
  • EspañolES
Contact
  • Projects
  • Stack
  • About
  • Notes
Contact
  • Português
  • English
  • Español

// Let's talk?

Reach out to exchange ideas and share experiences. It'll be a pleasure to talk with you!

Click to copyTap to copy · or open your mail app

Sections

  • Projects
  • Stack
  • About
  • Notes
  • Contact

Elsewhere

  • LinkedIn
  • GitHub
  • WhatsApp

Language

  • Português
  • English
  • Español

Local time · São Paulo

--:--GMT−3

© Rafael Reis·404 page

rReis
Back to projects

// Project

Banco Neon

A scroll-driven landing page where a single card takes the visitor from the hero all the way into the app.

  • HTML
  • CSS
  • JavaScript
  • Swiper
  • AOS
View live site
Company
Personal project
Role
Frontend, QA Engineer & UI Design
Team
Solo project
Banco Neon
  • 100012345678901234567890123456789012345678901234567890123456789

    across all 4 PageSpeed categories (desktop)

  • 0 ms01234567890123456789 ms

    Total Blocking Time

  • 120123456789012345678901234567890123456789

    sections in a single narrative

  • 001234567890123456789

    build dependencies

// On this page

  1. 01TL;DR
  2. 02Context
  3. 03Problem
  4. 04Process
  5. 05Solution
  6. 06Trade-offs
  7. 07Results
  8. 08Learnings
On this page
  1. 01TL;DR
  2. 02Context
  3. 03Problem
  4. 04Process
  5. 05Solution
  6. 06Trade-offs
  7. 07Results
  8. 08Learnings
// 01

TL;DR

  • Problem01

    Explain a digital bank on a landing page without it becoming a list of disconnected sections, with scroll-driven animations that work on mobile without losing performance or accessibility.

  • What I did02

    A scroll-driven narrative: a single card is born in the hero, travels through the benefits and lands in the app, with 4 custom interactions in plain HTML, CSS and JavaScript.

  • Result03

    12 sections, a 100 score in all four PageSpeed categories on desktop, 0 ms of main-thread blocking and zero build dependencies.

// 02

Context

Personal project: a landing page for Banco Neon built from scratch, with no framework and no build step.

The goal was to go beyond copying a layout and turn the page into a scroll-driven experience, with interactions that explain the product (3D card, savings simulator, journey into the app) without giving up accessibility or mobile performance.

Who uses it

  • Visitors from an adUnderstand in a few seconds what the account is and why it is free.
  • People comparing returnsSee how much their money earns at Neon versus a savings account, with clear assumptions.
  • Mobile visitorsA page that doesn't jump, doesn't overflow sideways and fits above the fold.
  • Keyboard and screen reader usersMenu, card and FAQ usable without a mouse, plus a calm version with reduced motion.
// 03

Problem

Digital bank landing pages tend to be a list of disconnected sections: card, app and benefits sit side by side without showing how one leads to the next. The challenge was to tell that story on a single page and let the interactions explain the product.

And to do it under real constraints: scroll-driven animations that work on mobile (the browser bar changes the screen height, some screens are short and libraries apply transform), many animated layers without taxing the CPU, and everything usable by keyboard, screen reader and people who prefer less motion.

// 04

Process

I started from the page order, from first contact to conversion: loader, hero, card journey, numbers, app, testimonials, card, digital account, 3 steps, simulator, FAQ and final CTA. Every new interaction had to explain a part of the product.

Hypotheses

  1. 01

    A single card traveling through the page explains the product better than repeating the card in every section.

  2. 02

    For a single-route page, the native web is enough: plain HTML, CSS and JavaScript keep the code small and the deploy direct.

  3. 03

    If the base CSS is the mobile one and breakpoints only add to it, mobile stops being an adaptation and becomes the main case.

Discarded

  • A framework and a build stepFor a static single-route page, it would add weight and configuration with no benefit for visitors.
  • Repeating the card across sectionsIt broke the sense of continuity; a single sticky element tells the story from the hero to the app.
  • Building the carousel and entrances from scratchSwiper and AOS already handle them well. I pinned their versions and adjusted their behavior on mobile.
// 05

Solution

The core decision was to use a single card as the common thread. It is born tilted in the hero, follows the mouse, moves down the page highlighting 6 benefits and lands in the slot of a phone drawn in HTML and CSS. The video below shows the whole journey.

The other interactions (loader, 3D card, counters, steps line and simulator) were built around that idea, all updated by a single animation loop and paused when they leave the screen.

The card leaves the hero, travels through the benefits and lands in the app

Card journey

Scroll progress becomes three variables normalized from 0 to 1: leaving the hero (q), moving through the benefits (p) and landing in the app (m). Each phase has its own easing, and the result goes into CSS custom properties that drive position, scale, rotation and glow.

To measure accurately, positions add up offsetTop/offsetLeft: AOS applies transform to elements and skews getBoundingClientRect.

  1. 01Scrollpassive listener
  2. 02One frameguarded rAF
  3. 030-to-1 phaseswith easing
  4. 04CSS variablesposition, scale, glow
  5. 05CSS transformon the sticky card
From scroll to card: a passive listener schedules a single frame, which computes each phase's progress and writes custom properties read by CSS.
js/sections.js· JavaScript
// q: saída do hero (0 = cartão no hero, 1 = cartão no centro da jornada)var q = clamp(-fr.top / (J.heroH * (mobile ? 0.45 : 0.7)), 0, 1);var qe = ease(q);// p: progresso pelas linhas de benefíciosvar p = clamp((mid - (fr.top + J.rowsTop)) / Math.max(J.slotCY - J.rowsTop, 1), 0, 1);// m: pouso no appvar dist = fr.top + J.slotCY - mid;var m = clamp(1 - dist / Math.min(vh * 0.7, 560), 0, 1);var me = ease(m);var s = J.heroScale + (1 - J.heroScale) * qe;s += (J.finalScale - s) * me;var tx = (J.txHero + (J.tx0 - J.txHero) * qe) * (1 - me);var b = J.body.style;b.setProperty('--tx', tx.toFixed(1) + 'px');b.setProperty('--s', s.toFixed(4));b.setProperty('--glow', (1 - me).toFixed(3));
The journey's three phases become 0-to-1 variables, then custom properties.

Loader with real progress

The arc of Neon's "n" is drawn with a stroke while the bar shows actual loading: images and fonts take it up to 90%, and the load event closes it at 100%. A time curve keeps the bar from jumping when everything comes from cache.

On exit, the loader shrinks into the hero's box. Returning visits get a shorter intro, there is a 6 s cap and, without JavaScript, the site opens straight away.

Loader drawing the brand arc and shrinking into the hero

A hero that follows the mouse

In the hero, the tilted card follows the mouse with smoothing, while the brand arc and the badges (purchase approved, R$ 0 annual fee, earnings) move at different depths to create parallax. Tilt and parallax only turn on with a mouse (pointer: fine).

Hero card tilting with the mouse, with parallax on the badges

Two-sided 3D card

The Neon card is a button with aria-pressed: the mouse tilts the card and moves its shine, and a click (or Enter) flips it front to back.

3D card tilting with the mouse and flipping on click
js/sections.js· JavaScript
stage.addEventListener('pointermove', function (e) {  var r = card.getBoundingClientRect();  var px = clamp((e.clientX - r.left) / r.width, -0.25, 1.25);  var py = clamp((e.clientY - r.top) / r.height, -0.25, 1.25);  card.classList.add('is-tilting');  card.style.setProperty('--ry', ((px - 0.5) * 26).toFixed(2) + 'deg');  card.style.setProperty('--rx', ((0.5 - py) * 26).toFixed(2) + 'deg');  card.style.setProperty('--mx', (px * 100).toFixed(1) + '%');  card.style.setProperty('--my', (py * 100).toFixed(1) + '%');});
The mouse position becomes angles and the position of the shine.

By the numbers

Four counters animate as they enter the screen (100% digital, R$ 480 → R$ 0 annual fee, 24h, 3 steps), and a spotlight follows the mouse on each card. With reduced motion, the numbers appear already final.

Counters animating and a spotlight following the mouse on the cards

The 3-step line

The line connecting the steps draws itself as you scroll. JavaScript measures the center of the first and last bubbles and picks the orientation on its own: horizontal on desktop, vertical on mobile.

The three-step line drawing itself with the scroll

An honest simulator

Two sliders (amount and term) compare returns at Neon against a savings account. The math uses compound interest with an equivalent monthly rate, and the assumptions stay visible: 100% of CDI at 10% p.a., savings at 6.17% p.a., illustrative values, before taxes.

Simulator sliders changing amount and term, with the result updating
Simulator with amount and term sliders on the left and the result in a white card on the right
  1. 1
    UI decisionTwo questions, two slidersHow much to save and for how long. The result answers instantly, with no calculate button.
  2. 2
    UI decisionNeon and savings side by sideTwo bars with each one's earnings make the difference visible before reading the numbers.
  3. 3
    UI decisionThe difference up frontThe "more than savings" badge sums up the comparison in a single value.
  4. 4
    UI decisionAssumptions in plain sightReference rates and the illustrative-only notice sit next to the controls, not hidden in the footer.
js/sections.js· JavaScript
var CDI_YEAR = 0.10;var POUP_YEAR = 0.0617;function monthlyRate(yearly) { return Math.pow(1 + yearly, 1 / 12) - 1; }var neonGain = value * Math.pow(1 + monthlyRate(CDI_YEAR), m) - value;var poupGain = value * Math.pow(1 + monthlyRate(POUP_YEAR), m) - value;
Equivalent monthly rate derived from the annual rate, applied month by month.

Accessibility and reduced motion

The mobile menu traps focus, closes with Esc, returns focus to the button and marks the rest of the page as inert. The FAQ uses aria-expanded, the simulator shows its result in an output and focus only shows for keyboard users (:focus-visible).

With prefers-reduced-motion, JavaScript skips entrances, floating effects and counters, and the CSS has its own reduced-motion block.

js/sections.js· JavaScript
document.addEventListener('keydown', function (e) {  if (!menuOpen) return;  if (e.key === 'Escape') { e.preventDefault(); closeMenu(true); return; }  if (e.key !== 'Tab') return;  var items = focusables();  var i = items.indexOf(document.activeElement);  if (e.shiftKey && (i <= 0)) { e.preventDefault(); items[items.length - 1].focus(); }  else if (!e.shiftKey && i === items.length - 1) { e.preventDefault(); items[0].focus(); }  else if (i === -1) { e.preventDefault(); items[0].focus(); }});
Focus trapped in the open menu: Tab and Shift+Tab cycle through the items, Esc closes it.

Performance and SEO

A single requestAnimationFrame updates the progress bar, header, steps line and journey. An IntersectionObserver pauses auroras, shines and floating effects in off-screen sections. On mobile, the screen height is frozen in --vh so the browser bar doesn't make the layout jump.

For SEO, the page is indexable (index, follow) and ships robots.txt, sitemap.xml, JSON-LD with FAQPage and authorship, Open Graph and Twitter Cards, plus an h1 → h2 → h3 heading hierarchy with no gaps.

Moodboard

  • Hero with headline, buttons and the tilted Neon card with floating badges
  • Neon card section on a dark background with the 3D card
  • Simulator with amount and term sliders and the result in a white card
  • From card to app section with the card moving through the list of benefits
  • 100% digital account section with benefits and mockups
  • 3 steps section with the line connecting each step
// 06

Trade-offs

  • Dilemma

    How to build a single-route page with lots of interactions?

    Options
    • Framework with a build step
    • Plain HTML, CSS and JavaScript
    Choice
    Plain HTML, CSS and JavaScript
    Why
    Small bundle, direct deploy to Netlify and code that reads easily for anyone opening the repository. The cost was hand-writing what a framework would provide.
  • Dilemma

    How to update several scroll-linked animations?

    Options
    • One listener per effect
    • A single requestAnimationFrame loop
    Choice
    A single requestAnimationFrame loop
    Why
    Progress bar, header, steps and journey read the same scroll in the same frame, with a guard against repeated calls. Less work per frame and no effect out of sync.
  • Dilemma

    How to measure elements that AOS animates?

    Options
    • getBoundingClientRect
    • Add up offsetTop and offsetLeft
    Choice
    Add up offsetTop and offsetLeft
    Why
    AOS applies transforms to elements and skews getBoundingClientRect. Offsets ignore transforms and give the real layout position.
  • Dilemma

    How to handle the mobile browser bar?

    Options
    • Read innerHeight on every scroll
    • Freeze the height in --vh
    Choice
    Freeze the height in --vh
    Why
    The bar shows and hides and changes innerHeight, making the layout jump. The height is only recalculated when the width changes or the height shifts by 150 px or more.
  • Dilemma

    AOS side entrances on mobile

    Options
    • Keep fade-left and fade-right
    • Switch to fade-up below 992 px
    Choice
    Switch to fade-up below 992 px
    Why
    Side entrances pushed content off screen. With fade-up and delays capped at 150 ms, nothing overflows and the page feels faster.
// 07

Results

The page has 12 sections and 4 custom interactions (card journey, 3D card, simulator and a loader with real progress) in 7 text files, about 5,950 lines and no build dependencies.

On PageSpeed Insights, it scored 100 in all four categories on desktop (report from Nov 21, 2026). Even with a loader, a 3D card and scroll-driven animations, the page does not block the main thread and barely shifts its layout.

MetricResult
Performance100
Accessibility100
Best Practices100
SEO100
First Contentful Paint0.4 s
Largest Contentful Paint0.7 s
Total Blocking Time0 ms
Cumulative Layout Shift0.023
Speed Index0.6 s
Agentic Browsing2/2
// 08

Learnings

What I'd do differently

  • Test on mobile from the first prototype of the journey: the browser bar, AOS transforms and short screens took more code than the effect itself on desktop.

What I took with me

  • Scroll-driven animation is progress math. Splitting the scroll into 0-to-1 phases, each with its own easing, made the journey predictable and easy to tune.
  • Performance is a design decision. Pausing what isn't visible and running everything in one loop keeps the page smooth even with many animated layers.
  • Accessibility fits in rich interfaces. Menu, card and FAQ stay usable by keyboard and screen reader, and people who prefer less motion get a calm version of the same page.
// Next projects

Next projects

  • Grupo Size

    at Insany
    Grupo Size
    View project
  • Prata Digital

    at Insany
    Prata Digital
    View project
See all projects
// Contact

Have a similar project in mind?

Tell me what you're building: an idea, a defined scope or just a rough draft.

Or find me on
  • LinkedIn
  • GitHub
  • WhatsApp
Back to top