Portrait cards sit on a tilted plane and are flicked along it in two throws, each with a label.
Props
Every prop has a default, so the component renders as it is. Change any of them in Studio or in code.
imageslist
Pictures, as paths under public/ (or full URLs). They repeat when there are fewer than the count.
labelslist = []
A name for each card, in order. Cards past the end of the list use the picture's own name.
countinteger = 16
How many cards are on the rail.
cardWidthnumber = 300
Width of a card, in px on the plane.
cardHeightnumber = 420
Height of a card, in px on the plane.
gapnumber = 34
Space between cards, in px.
tiltXnumber = 52
How far the plane leans back, in degrees.
rollnumber = -16
How far the plane is turned in its own plane, in degrees, so the rail runs on a diagonal.
perspectivenumber = 1500
Camera perspective distance, in px. Lower is more dramatic.
flickslist
Each flick of the rail.
startZoomnumber = 2
Zoom of the opening shot on the first card.
endZoomnumber = 1.45
Zoom of the closing push on the centred card.
motionBlurnumber = 0
Camera motion blur shutter in frames, used while the rail or camera moves fast. 0 turns it off.
liftnumber = 70
How far the centred card rises off the plane, in px.
titlestring = "Card Rail"
Title at the top left. Empty for none.
captionstring = "Flicked, then let go"
Smaller line under the title. Empty for none.
fontstring = "Geist"
Google Fonts family for the label and card numbers.
serifstring = "Instrument Serif"
Google Fonts family for the card names (set in italic).
colors.groundcolour = "#e7e3da"
Background.
colors.inkcolour = "#16150f"
Title.
colors.mutedcolour = "#85806f"
Caption.
colors.cardcolour = "#f7f5ef"
Card colour behind the picture.
colors.cardTextcolour = "#16150f"
Card names.
Compositions
- CardRail