# Flash sale video

> A 6 second feed video, 1080 × 1350 on one page, for a 24 hour sale at an online candle shop. A roller shutter with the hours left on its slats rolls up to reveal the offer while a clock ring draws once; change the 25% on the bottom slat, the slat labels and the date lines to make the next sale.

- The design, as a .vd file: https://getv.design/library/flash-sale-video.vd
- Its page: https://getv.design/library/flash-sale-video

## How it was made

Drafted from this prompt:

> An eight second flash sale video for Cotswold Candle Co: 25% off for 24 hours starting 9 am on Friday 26 November, with a countdown clock sweeping once.

Then refined:

- Moved the shutter slats below the housing rail so the first label is no longer cut off at the start.
- Made the discount on the bottom slat smaller and moved the handle so the two no longer touch.
- Shortened the clip and used flat colours instead of transparent ones so the GIF stays small.

## Make it yours

- "Make a flash sale video for 30% off."
- "Change the date and end time to our sale."
- "Make a 24 hour sale video template in our brand colours."

## The source

```vd
version 12
kind design
title "Flash sale video"
$wax = #FFF3DC
$ember = #E8590C
$charcoal = #2D2A26
$gold = #E9B44C
$deep = #1E1C19
$pad = 90
$slat = 104
font display = Titan One
  face asset=titan-one-400 weight=400
font body = Puritan
  face asset=puritan-400 weight=400
  face asset=puritan-700 weight=700

asset titan-one-400 = font/woff2 hash=sha256-2f15f138af309ad659b62246999cccc2da21759ec8619d7e6ea759e8eb5a7a53 bytes=10752 license=OFL
asset puritan-400 = font/woff2 hash=sha256-521deb35549cc4e7d949e791357b8ae66d3e3b8b333c959c2f281246369b6ec8 bytes=15812 license=OFL
asset puritan-700 = font/woff2 hash=sha256-93d72c10c46d506a5475a9efb06efe470f73c31cc44102d7be5a6b2b0291cc61 bytes=16184 license=OFL

frame flash x=0 y=0 w=1080 h=1350 background=wax
  text brand x=$pad y=64 w=(100% - $pad * 2) h=64 size=52 font=display fill=charcoal
    "Cotswold Candle Co"
  frame win x=$pad y=(@brand.bottom + 40) w=(100% - $pad * 2) h=780 clip radius=28 background=charcoal
    text win.title x=60 y=340 w=(100% - 120) h=170 size=76 lineHeight=1.05 font=display align=center fill=wax
      para "Every candle"
      para "in the shop"
    text win.ends x=60 y=(@win.title.bottom + 10) w=(100% - 120) h=48 size=38 font=body align=center fill=gold
      "Ends 9 am Saturday 27 November"
    rect win.shelf x=0 y=(100% - 40) w=(100%) h=40 fill=ember
    instance win.c1 component=candle x=(parent.cx - 60 - 200) y=(@win.shelf.y - 160)
      override candle.jar fill=wax
      override candle.band fill=ember
    instance win.c2 component=candle x=(parent.cx - 60) y=(@win.shelf.y - 160)
      override candle.jar fill=gold
      override candle.band fill=charcoal
    instance win.c3 component=candle x=(parent.cx - 60 + 200) y=(@win.shelf.y - 160)
      override candle.jar fill=ember
      override candle.band fill=wax
    frame shutter x=0 y=62 w=(100%) h=718
      instance s1 component=slat x=0 y=0
        override slat.label
          "24 hours left"
      instance s2 component=slat x=0 y=(prev.bottom)
        override slat.label
          "20 hours left"
      instance s3 component=slat x=0 y=(prev.bottom)
        override slat.label
          "16 hours left"
      instance s4 component=slat x=0 y=(prev.bottom)
        override slat.label
          "12 hours left"
      instance s5 component=slat x=0 y=(prev.bottom)
        override slat.label
          "8 hours left"
      rect shutter.last x=0 y=(prev.bottom) w=(100%) h=(100% - 5 * $slat) fill=ember
      rect shutter.lastlight x=0 y=@shutter.last.y w=(100%) h=6 fill=#F08A4B
      text shutter.discount x=0 y=(@shutter.last.y + 2) w=(100%) h=172 size=140 font=display align=center valign=top fill=wax
        "25% off"
      rect shutter.handle x=(parent.cx - 60) y=(100% - 28) w=120 h=14 radius=7 fill=deep
    rect win.rail x=0 y=0 w=(100%) h=56 fill=deep
    rect win.railedge x=0 y=@win.rail.bottom w=(100%) h=6 fill=gold
  ellipse clock.track x=(@win.x + 8) y=(@win.bottom + 70) w=204 h=204 fill=none stroke=#E8DCC0 strokeWidth=16
  vector clock.arc x=@win.x y=(@win.bottom + 62) w=220 h=220 view="0 0 220 220" d="M110 8 A102 102 0 0 1 110 212 A102 102 0 0 1 110 8" fill=none stroke=ember strokeWidth=16 cap=round
  text clock.num x=@clock.arc.x y=(@clock.arc.y + 52) w=@clock.arc.w h=108 size=88 font=display align=center fill=charcoal
    "24"
  text clock.unit x=@clock.arc.x y=(@clock.num.bottom - 4) w=@clock.arc.w h=40 size=32 font=body weight=700 align=center fill=charcoal
    "hours"
  text sale.date x=(@clock.arc.right + 56) y=(@clock.arc.y + 50) w=(100% - @clock.arc.right - 56 - $pad) h=68 size=54 font=display fill=charcoal
    "Friday 26 November"
  text sale.time x=@sale.date.x y=(@sale.date.bottom + 14) w=@sale.date.w h=50 size=36 font=body weight=700 fill=ember
    "9 am Friday to 9 am Saturday"
  rect shutter.stop x=@win.x y=(@win.y - 461) w=@win.w h=718 fill=none
frame slat x=0 y=1450 w=900 h=104 component
  rect slat.body x=0 y=0 w=(100%) h=(100%) fill=gold
  rect slat.light x=0 y=0 w=(100%) h=6 fill=#F2CD7C
  rect slat.shade x=0 y=(100% - 10) w=(100%) h=10 fill=#B58A2E
  text slat.label x=60 y=0 w=(100% - 120) h=(100%) size=54 font=display valign=middle fill=charcoal
    "24 hours left"
frame candle x=1000 y=1450 w=120 h=160 component
  vector candle.flame x=40 y=0 w=40 h=48 view="0 0 40 48" d="M20 0C32 14 40 26 40 34C40 42 31 48 20 48C9 48 0 42 0 34C0 26 8 14 20 0Z" fill=gold
  rect candle.wick x=58 y=44 w=4 h=22 fill=wax
  rect candle.jar x=0 y=60 w=120 h=100 radius=12 fill=wax
  rect candle.band x=0 y=96 w=120 h=28 fill=ember
motion flash length=5500
  brand enter=fade duration=400
  shutter move to=shutter.stop duration=2000 delay=400 ease=inout
  clock.arc enter=draw duration=2000 ease=linear together
  sale.date enter=fade duration=400 after=shutter
  sale.time enter=fade duration=500
```
