# Comparison carousel

> A five-page 1080 × 1350 carousel for a mortgage broker that compares a fixed and a variable rate on four measures, then gives a verdict. The lanes, cars and footer tally are components, so changing the figures or the verdict means editing a few text lines.

- The design, as a .vd file: https://getv.design/library/comparison-carousel.vd
- Its page: https://getv.design/library/comparison-carousel

## How it was made

Drafted from this prompt:

> A five slide carousel from Gatehouse Advice: fixed rate against variable rate mortgages on a £200,000 loan. Compare monthly cost, risk, flexibility and certainty, then end with a plain verdict for first time buyers.

Then refined:

- Showed the monthly payment as a number in each lane, as the brief suggested.
- Made the lanes and cars larger and added a score tally in the footer.
- Extended the chequered finish line across both lanes and shortened labels that ran into the start line.

## Make it yours

- "Make a fixed vs variable mortgage carousel with new rates."
- "Change the verdict to suit a buyer who plans to move in three years."
- "Use our colours and add our logo to the footer."

## The source

```vd
version 12
kind design
title "Comparison carousel"
$tarmac = #2B2F36
$lane = #F5F5F0
$fixed = #2F6FDE
$variable = #F28C28
$muted = #B9BCC2
$m = 72
$step = 1180
$laneH = 260
$trackY = 500
$glass = #CFE3F2

font display = "League Spartan"
  fallback "Arial, sans-serif"
  face asset=league-spartan-700 weight=700

font body = Sintony
  fallback "system-ui, sans-serif"
  face asset=sintony-400 weight=400
  face asset=sintony-700 weight=700

asset league-spartan-700 = font/woff2 hash=sha256-c53c80ed16b2ec8a8be3fefb51ff257646aaf62a8ff8489d8cadaeea3a4bf1fa bytes=12888 license=OFL
asset sintony-400 = font/woff2 hash=sha256-663df0d94b1c52684d2943b0dc1454eefef8e17b98a80c8d997eda06901d6cac bytes=8536 license=OFL
asset sintony-700 = font/woff2 hash=sha256-62d9677e1cab571817f6eba7b4049477a251e1321112e78595cff375409f32c2 bytes=8348 license=OFL

frame car x=0 y=1500 w=200 h=100 component
  rect car.wheel.fl x=128 y=2 w=44 h=16 radius=6 fill=#14161A
  rect car.wheel.fr x=128 y=82 w=44 h=16 radius=6 fill=#14161A
  rect car.wheel.rl x=24 y=2 w=44 h=16 radius=6 fill=#14161A
  rect car.wheel.rr x=24 y=82 w=44 h=16 radius=6 fill=#14161A
  rect car.body x=0 y=10 w=(100%) h=80 radius=36 fill=lane
  rect car.shade x=56 y=20 w=96 h=60 radius=20 fill=#0000003A
  vector car.glass x=118 y=24 w=36 h=52 view="0 0 36 52" d="M0 6 L28 0 Q36 0 36 8 L36 44 Q36 52 28 52 L0 46 Z" fill=glass
  vector car.rear x=44 y=28 w=16 h=44 view="0 0 16 44" d="M16 0 L4 4 Q0 6 0 10 L0 34 Q0 38 4 40 L16 44 Z" fill=glass
  rect car.roof x=64 y=28 w=52 h=44 radius=10 fill=#0000002A
  ellipse car.lamp.t x=182 y=22 w=12 h=16 fill=#FFF3B8
  ellipse car.lamp.b x=182 y=62 w=12 h=16 fill=#FFF3B8
  rect car.tail.t x=4 y=24 w=8 h=14 radius=3 fill=#FF5A4D
  rect car.tail.b x=4 y=62 w=8 h=14 radius=3 fill=#FF5A4D

frame foot x=0 y=1700 w=1080 h=110 component
  connector foot.rule x1=$m y1=0 x2=(100% - $m) y2=0 stroke=#F5F5F033 strokeWidth=2
  text foot.brand x=$m y=30 w=380 h=40 font=body size=28 fill=muted
    "Gatehouse Advice, Chester"
  rect foot.sw.f x=470 y=40 w=22 h=22 radius=6 fill=fixed
  text foot.fixed x=504 y=28 w=116 h=44 font=body size=32 weight=700 fill=lane
    "Fixed 0"
  rect foot.sw.v x=(@foot.fixed.right + 24) y=40 w=22 h=22 radius=6 fill=variable
  text foot.var x=(@foot.sw.v.right + 14) y=28 w=260 h=44 font=body size=32 weight=700 fill=lane
    "Variable 0"

frame s1 x=0 y=0 w=1080 h=1350 background=tarmac
  text s1.title x=$m y=88 w=936 h=228 font=display weight=700 size=72 lineHeight=1.05 fill=lane
    "Monthly cost:\nvariable is £34 a\nmonth cheaper"
  text s1.sub x=$m y=(@s1.title.bottom + 20) w=936 h=130 font=body size=32 lineHeight=1.3 fill=muted
    "A £200,000 mortgage over 25 years: a five year fixed rate of 4.4% against a variable rate of 4.1%. Swipe for four measures."
  rect s1.laneA x=0 y=$trackY w=(100%) h=$laneH fill=#2F6FDE24
  rect s1.laneB x=0 y=(@s1.laneA.bottom) w=(100%) h=$laneH fill=#F28C2824
  connector s1.edgeT x1=0 y1=@s1.laneA.top x2=(100%) y2=@s1.laneA.top stroke=lane strokeWidth=6
  connector s1.edgeB x1=0 y1=@s1.laneB.bottom x2=(100%) y2=@s1.laneB.bottom stroke=lane strokeWidth=6
  connector s1.mid x1=0 y1=@s1.laneB.top x2=(100%) y2=@s1.laneB.top stroke=lane strokeWidth=4 dash="40 30"
  connector s1.start x1=410 y1=$trackY x2=410 y2=@s1.laneB.bottom stroke=lane strokeWidth=4
  rect s1.barA x=$m y=(@s1.laneA.cy - 56) w=10 h=112 radius=5 fill=fixed
  text s1.numA x=(@s1.barA.right + 20) y=(@s1.barA.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "£1,100"
  text s1.capA x=@s1.numA.x y=(@s1.numA.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Fixed 4.4% a month"
  instance s1.carA component=car x=470 y=(@s1.laneA.cy - 65) w=260 h=130
    override car.body fill=fixed
  rect s1.barB x=$m y=(@s1.laneB.cy - 56) w=10 h=112 radius=5 fill=variable
  text s1.numB x=(@s1.barB.right + 20) y=(@s1.barB.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "£1,067"
  text s1.capB x=@s1.numB.x y=(@s1.numB.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Variable 4.1% a month"
  instance s1.carB component=car x=700 y=(@s1.laneB.cy - 65) w=260 h=130
    override car.body fill=variable
  text s1.note x=$m y=(@s1.laneB.bottom + 44) w=936 h=130 font=body size=40 lineHeight=1.3 fill=lane
    "The variable deal is ahead on the day one payment, by £34 a month."
  instance s1.foot component=foot x=0 y=1240
    override foot.fixed
      "Fixed 0"
    override foot.var
      "Variable 1"

frame s2 x=1180 y=0 w=1080 h=1350 background=tarmac
  text s2.title x=$m y=88 w=936 h=228 font=display weight=700 size=72 lineHeight=1.05 fill=lane
    "Risk: fixed stays\nput when rates rise"
  text s2.sub x=$m y=(@s2.title.bottom + 20) w=936 h=130 font=body size=32 lineHeight=1.3 fill=muted
    "If rates go up by one percentage point, the variable payment rises and the fixed payment does not."
  rect s2.laneA x=0 y=$trackY w=(100%) h=$laneH fill=#2F6FDE24
  rect s2.laneB x=0 y=(@s2.laneA.bottom) w=(100%) h=$laneH fill=#F28C2824
  connector s2.edgeT x1=0 y1=@s2.laneA.top x2=(100%) y2=@s2.laneA.top stroke=lane strokeWidth=6
  connector s2.edgeB x1=0 y1=@s2.laneB.bottom x2=(100%) y2=@s2.laneB.bottom stroke=lane strokeWidth=6
  connector s2.mid x1=0 y1=@s2.laneB.top x2=(100%) y2=@s2.laneB.top stroke=lane strokeWidth=4 dash="40 30"
  connector s2.start x1=410 y1=$trackY x2=410 y2=@s2.laneB.bottom stroke=lane strokeWidth=4
  rect s2.barA x=$m y=(@s2.laneA.cy - 56) w=10 h=112 radius=5 fill=fixed
  text s2.numA x=(@s2.barA.right + 20) y=(@s2.barA.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "£1,100"
  text s2.capA x=@s2.numA.x y=(@s2.numA.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Fixed, after a 1 point rise"
  instance s2.carA component=car x=700 y=(@s2.laneA.cy - 65) w=260 h=130
    override car.body fill=fixed
  rect s2.barB x=$m y=(@s2.laneB.cy - 56) w=10 h=112 radius=5 fill=variable
  text s2.numB x=(@s2.barB.right + 20) y=(@s2.barB.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "£1,181"
  text s2.capB x=@s2.numB.x y=(@s2.numB.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Variable, up £114 a month"
  instance s2.carB component=car x=470 y=(@s2.laneB.cy - 65) w=260 h=130
    override car.body fill=variable
  text s2.note x=$m y=(@s2.laneB.bottom + 44) w=936 h=130 font=body size=40 lineHeight=1.3 fill=lane
    "Fixed is ahead: the extra £114 a month is the price of the variable gamble."
  instance s2.foot component=foot x=0 y=1240
    override foot.fixed
      "Fixed 1"
    override foot.var
      "Variable 1"

frame s3 x=2360 y=0 w=1080 h=1350 background=tarmac
  text s3.title x=$m y=88 w=936 h=228 font=display weight=700 size=72 lineHeight=1.05 fill=lane
    "Flexibility:\nvariable lets you\nleave for free"
  text s3.sub x=$m y=(@s3.title.bottom + 20) w=936 h=130 font=body size=32 lineHeight=1.3 fill=muted
    "Move, remortgage or overpay in the first five years and a fixed deal can charge you for it."
  rect s3.laneA x=0 y=$trackY w=(100%) h=$laneH fill=#2F6FDE24
  rect s3.laneB x=0 y=(@s3.laneA.bottom) w=(100%) h=$laneH fill=#F28C2824
  connector s3.edgeT x1=0 y1=@s3.laneA.top x2=(100%) y2=@s3.laneA.top stroke=lane strokeWidth=6
  connector s3.edgeB x1=0 y1=@s3.laneB.bottom x2=(100%) y2=@s3.laneB.bottom stroke=lane strokeWidth=6
  connector s3.mid x1=0 y1=@s3.laneB.top x2=(100%) y2=@s3.laneB.top stroke=lane strokeWidth=4 dash="40 30"
  connector s3.start x1=410 y1=$trackY x2=410 y2=@s3.laneB.bottom stroke=lane strokeWidth=4
  rect s3.barA x=$m y=(@s3.laneA.cy - 56) w=10 h=112 radius=5 fill=fixed
  text s3.numA x=(@s3.barA.right + 20) y=(@s3.barA.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "Up to 5%"
  text s3.capA x=@s3.numA.x y=(@s3.numA.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Fee to leave in year one"
  instance s3.carA component=car x=470 y=(@s3.laneA.cy - 65) w=260 h=130
    override car.body fill=fixed
  rect s3.barB x=$m y=(@s3.laneB.cy - 56) w=10 h=112 radius=5 fill=variable
  text s3.numB x=(@s3.barB.right + 20) y=(@s3.barB.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "£0"
  text s3.capB x=@s3.numB.x y=(@s3.numB.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Fee to leave or overpay"
  instance s3.carB component=car x=700 y=(@s3.laneB.cy - 65) w=260 h=130
    override car.body fill=variable
  text s3.note x=$m y=(@s3.laneB.bottom + 44) w=936 h=130 font=body size=40 lineHeight=1.3 fill=lane
    "Variable is ahead: on £200,000 a fixed rate fee could be as much as £10,000."
  instance s3.foot component=foot x=0 y=1240
    override foot.fixed
      "Fixed 1"
    override foot.var
      "Variable 2"

frame s4 x=3540 y=0 w=1080 h=1350 background=tarmac
  text s4.title x=$m y=88 w=936 h=228 font=display weight=700 size=72 lineHeight=1.05 fill=lane
    "Certainty: fixed is\nsettled for five years"
  text s4.sub x=$m y=(@s4.title.bottom + 20) w=936 h=130 font=body size=32 lineHeight=1.3 fill=muted
    "You can budget with a payment that cannot move, which is why many first time buyers value it."
  rect s4.laneA x=0 y=$trackY w=(100%) h=$laneH fill=#2F6FDE24
  rect s4.laneB x=0 y=(@s4.laneA.bottom) w=(100%) h=$laneH fill=#F28C2824
  connector s4.edgeT x1=0 y1=@s4.laneA.top x2=(100%) y2=@s4.laneA.top stroke=lane strokeWidth=6
  connector s4.edgeB x1=0 y1=@s4.laneB.bottom x2=(100%) y2=@s4.laneB.bottom stroke=lane strokeWidth=6
  connector s4.mid x1=0 y1=@s4.laneB.top x2=(100%) y2=@s4.laneB.top stroke=lane strokeWidth=4 dash="40 30"
  connector s4.start x1=410 y1=$trackY x2=410 y2=@s4.laneB.bottom stroke=lane strokeWidth=4
  rect s4.barA x=$m y=(@s4.laneA.cy - 56) w=10 h=112 radius=5 fill=fixed
  text s4.numA x=(@s4.barA.right + 20) y=(@s4.barA.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "60 months"
  text s4.capA x=@s4.numA.x y=(@s4.numA.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Same payment, guaranteed"
  instance s4.carA component=car x=700 y=(@s4.laneA.cy - 65) w=260 h=130
    override car.body fill=fixed
  rect s4.barB x=$m y=(@s4.laneB.cy - 56) w=10 h=112 radius=5 fill=variable
  text s4.numB x=(@s4.barB.right + 20) y=(@s4.barB.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "Any time"
  text s4.capB x=@s4.numB.x y=(@s4.numB.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Your lender can change it"
  instance s4.carB component=car x=470 y=(@s4.laneB.cy - 65) w=260 h=130
    override car.body fill=variable
  text s4.note x=$m y=(@s4.laneB.bottom + 44) w=936 h=130 font=body size=40 lineHeight=1.3 fill=lane
    "Fixed is ahead: you know the payment until the end of the deal."
  instance s4.foot component=foot x=0 y=1240
    override foot.fixed
      "Fixed 2"
    override foot.var
      "Variable 2"

frame s5 x=4720 y=0 w=1080 h=1350 background=tarmac
  text s5.title x=$m y=88 w=936 h=228 font=display weight=700 size=72 lineHeight=1.05 fill=lane
    "For most first time\nbuyers, fixed gets\nthere first"
  text s5.sub x=$m y=(@s5.title.bottom + 20) w=936 h=130 font=body size=32 lineHeight=1.3 fill=muted
    "Two measures each, but a first mortgage leaves little room for a payment that moves."
  rect s5.laneA x=0 y=$trackY w=(100%) h=$laneH fill=#2F6FDE24
  rect s5.laneB x=0 y=(@s5.laneA.bottom) w=(100%) h=$laneH fill=#F28C2824
  connector s5.edgeT x1=0 y1=@s5.laneA.top x2=(100%) y2=@s5.laneA.top stroke=lane strokeWidth=6
  connector s5.edgeB x1=0 y1=@s5.laneB.bottom x2=(100%) y2=@s5.laneB.bottom stroke=lane strokeWidth=6
  connector s5.mid x1=0 y1=@s5.laneB.top x2=(100%) y2=@s5.laneB.top stroke=lane strokeWidth=4 dash="40 30"
  rect s5.finish.base x=900 y=$trackY w=40 h=(@s5.laneB.bottom - $trackY) fill=lane
  vector s5.finish.checks x=900 y=$trackY w=40 h=520 view="0 0 40 520" d="M0 0h20v20h-20zM20 20h20v20h-20zM0 40h20v20h-20zM20 60h20v20h-20zM0 80h20v20h-20zM20 100h20v20h-20zM0 120h20v20h-20zM20 140h20v20h-20zM0 160h20v20h-20zM20 180h20v20h-20zM0 200h20v20h-20zM20 220h20v20h-20zM0 240h20v20h-20zM20 260h20v20h-20zM0 280h20v20h-20zM20 300h20v20h-20zM0 320h20v20h-20zM20 340h20v20h-20zM0 360h20v20h-20zM20 380h20v20h-20zM0 400h20v20h-20zM20 420h20v20h-20zM0 440h20v20h-20zM20 460h20v20h-20zM0 480h20v20h-20zM20 500h20v20h-20z" fill=tarmac
  rect s5.barA x=$m y=(@s5.laneA.cy - 56) w=10 h=112 radius=5 fill=fixed
  text s5.numA x=(@s5.barA.right + 20) y=(@s5.barA.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "£1,100"
  text s5.capA x=@s5.numA.x y=(@s5.numA.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Our pick for first homes"
  instance s5.carA component=car x=770 y=(@s5.laneA.cy - 65) w=260 h=130
    override car.body fill=fixed
  rect s5.barB x=$m y=(@s5.laneB.cy - 56) w=10 h=112 radius=5 fill=variable
  text s5.numB x=(@s5.barB.right + 20) y=(@s5.barB.y - 4) w=300 h=72 font=display weight=700 size=62 fill=lane lineHeight=1.1
    "£1,067"
  text s5.capB x=@s5.numB.x y=(@s5.numB.bottom - 2) w=290 h=68 font=body size=26 lineHeight=1.2 fill=muted
    "Better if you may move soon"
  instance s5.carB component=car x=420 y=(@s5.laneB.cy - 65) w=260 h=130
    override car.body fill=variable
  text s5.note x=$m y=(@s5.laneB.bottom + 44) w=936 h=56 font=body size=40 lineHeight=1.3 fill=lane
    "Moving in three years? Ask us before you fix."
  text s5.legal x=$m y=(@s5.note.bottom + 20) w=936 h=70 font=body size=24 lineHeight=1.3 fill=muted
    "Example figures only. Your home may be repossessed if you do not keep up repayments on your mortgage."
  instance s5.foot component=foot x=0 y=1240
    override foot.brand
      "Book a free call"
    override foot.fixed
      "Fixed 2"
    override foot.var
      "Variable 2"
```
