Loading effect…
Loading preview…
intros · react · free
A portfolio hero intro where a row of portraits rises in, spreads apart, wipes away to a single expanding hero shot, and lifts a dark curtain to reveal the name.
npx znverse add portrait-reveal-introInstalls gsap, @gsap/react.
export const PORTRAIT_IMAGES = [
"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22800%22%20viewBox%3D%220%200%20600%20800%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%2384a59d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d8e2dc%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22a%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f28482%22%20stop-opacity%3D%220.6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f28482%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CclipPath%20id%3D%22f%22%3E%3Cellipse%20cx%3D%22286.9%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22k%22%3E%3Crect%20x%3D%2294.9%22%20y%3D%2293.9%22%20width%3D%22384%22%20height%3D%22211.9%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22800%22%20fill%3D%22url(%23g)%22%2F%3E%3Cellipse%20cx%3D%22452.6%22%20cy%3D%22240%22%20rx%3D%22420%22%20ry%3D%22360%22%20fill%3D%22url(%23a)%22%2F%3E%3Crect%20x%3D%22164%22%20y%3D%22203.4%22%20width%3D%22245.8%22%20height%3D%22376.8%22%20rx%3D%22115.2%22%20fill%3D%22%231f1a17%22%2F%3E%3Crect%20x%3D%22246.6%22%20y%3D%22391.5%22%20width%3D%2280.6%22%20height%3D%22140.8%22%20fill%3D%22%23a7775a%22%2F%3E%3Cpath%20d%3D%22M30.1%20802L30.1%20616.3C30.1%20526.3%2094.3%20496.3%20198.2%20496.3L375.6%20496.3C479.5%20496.3%20543.7%20526.3%20543.7%20616.3L543.7%20802Z%22%20fill%3D%22%23cad2c5%22%2F%3E%3Cpath%20d%3D%22M218.4%20496.3Q286.9%20550.3%20355.5%20496.3Z%22%20fill%3D%22%23a7775a%22%2F%3E%3Cpath%20d%3D%22M325.4%20800L428.1%20526.3C505.2%20532.3%20543.7%20568.3%20543.7%20616.3L543.7%20800Z%22%20fill%3D%22%231b2a2f%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%22190.9%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23b17d5d%22%2F%3E%3Cellipse%20cx%3D%22382.9%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23b17d5d%22%2F%3E%3Cellipse%20cx%3D%22286.9%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%20fill%3D%22%23c68863%22%2F%3E%3Cg%20clip-path%3D%22url(%23f)%22%3E%3Cellipse%20cx%3D%22358.9%22%20cy%3D%22343.9%22%20rx%3D%2267.2%22%20ry%3D%22142.8%22%20fill%3D%22%231b2a2f%22%20fill-opacity%3D%220.2%22%2F%3E%3C%2Fg%3E%3Cg%20clip-path%3D%22url(%23k)%22%3E%3Cellipse%20cx%3D%22286.9%22%20cy%3D%22324.9%22%20rx%3D%22102.7%22%20ry%3D%22123.8%22%20fill%3D%22%231f1a17%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",
"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22800%22%20viewBox%3D%220%200%20600%20800%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23c9b48a%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ece4d4%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22a%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23b5651d%22%20stop-opacity%3D%220.6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23b5651d%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CclipPath%20id%3D%22f%22%3E%3Cellipse%20cx%3D%22316.7%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22k%22%3E%3Crect%20x%3D%22124.7%22%20y%3D%2293.9%22%20width%3D%22384%22%20height%3D%22178.6%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22800%22%20fill%3D%22url(%23g)%22%2F%3E%3Cpath%20d%3D%22M88.7%20800L88.7%20368A228%20228%200%200%201%20544.7%20368L544.7%20800Z%22%20fill%3D%22%237a6a44%22%20fill-opacity%3D%220.8%22%2F%3E%3Crect%20x%3D%22276.4%22%20y%3D%22391.5%22%20width%3D%2280.6%22%20height%3D%22140.8%22%20fill%3D%22%23aa7757%22%2F%3E%3Cpath%20d%3D%22M88.2%20802L88.2%20616.3C88.2%20526.3%20145.3%20496.3%20228%20496.3L405.4%20496.3C488%20496.3%20545.2%20526.3%20545.2%20616.3L545.2%20802Z%22%20fill%3D%22%23e0c9a6%22%2F%3E%3Cpath%20d%3D%22M248.1%20496.3Q316.7%20550.3%20385.2%20496.3Z%22%20fill%3D%22%23f7f2e8%22%2F%3E%3Cpath%20d%3D%22M351%20800L442.3%20526.3C510.9%20532.3%20545.2%20568.3%20545.2%20616.3L545.2%20800Z%22%20fill%3D%22%232b2a20%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%22220.7%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23b37d5b%22%2F%3E%3Cellipse%20cx%3D%22412.7%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23b37d5b%22%2F%3E%3Cellipse%20cx%3D%22316.7%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%20fill%3D%22%23c68863%22%2F%3E%3Cg%20clip-path%3D%22url(%23f)%22%3E%3Cellipse%20cx%3D%22388.7%22%20cy%3D%22343.9%22%20rx%3D%2267.2%22%20ry%3D%22142.8%22%20fill%3D%22%232b2a20%22%20fill-opacity%3D%220.2%22%2F%3E%3C%2Fg%3E%3Cg%20clip-path%3D%22url(%23k)%22%3E%3Cellipse%20cx%3D%22316.7%22%20cy%3D%22324.9%22%20rx%3D%22102.7%22%20ry%3D%22123.8%22%20fill%3D%22%233b2a20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",
"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22800%22%20viewBox%3D%220%200%20600%20800%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23c5d86d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f1f7d8%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22a%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23bc4749%22%20stop-opacity%3D%220.6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23bc4749%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CclipPath%20id%3D%22f%22%3E%3Cellipse%20cx%3D%22287%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22k%22%3E%3Crect%20x%3D%2295%22%20y%3D%2293.9%22%20width%3D%22384%22%20height%3D%22178.6%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22800%22%20fill%3D%22url(%23g)%22%2F%3E%3Cellipse%20cx%3D%22304.9%22%20cy%3D%22240%22%20rx%3D%22420%22%20ry%3D%22360%22%20fill%3D%22url(%23a)%22%2F%3E%3Crect%20x%3D%22246.7%22%20y%3D%22391.5%22%20width%3D%2280.6%22%20height%3D%22140.8%22%20fill%3D%22%23cdb59d%22%2F%3E%3Cpath%20d%3D%22M58.2%20802L58.2%20616.3C58.2%20526.3%20115.4%20496.3%20198.3%20496.3L375.7%20496.3C458.6%20496.3%20515.8%20526.3%20515.8%20616.3L515.8%20802Z%22%20fill%3D%22%236a994e%22%2F%3E%3Cpath%20d%3D%22M218.5%20496.3Q287%20550.3%20355.6%20496.3Z%22%20fill%3D%22%23cdb59d%22%2F%3E%3Cpath%20d%3D%22M321.3%20800L412.8%20526.3C481.5%20532.3%20515.8%20568.3%20515.8%20616.3L515.8%20800Z%22%20fill%3D%22%231f3324%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%22191%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23dabfa6%22%2F%3E%3Cellipse%20cx%3D%22383%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23dabfa6%22%2F%3E%3Cellipse%20cx%3D%22287%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%20fill%3D%22%23f3d2b8%22%2F%3E%3Cg%20clip-path%3D%22url(%23f)%22%3E%3Cellipse%20cx%3D%22359%22%20cy%3D%22343.9%22%20rx%3D%2267.2%22%20ry%3D%22142.8%22%20fill%3D%22%231f3324%22%20fill-opacity%3D%220.2%22%2F%3E%3C%2Fg%3E%3Cg%20clip-path%3D%22url(%23k)%22%3E%3Cellipse%20cx%3D%22287%22%20cy%3D%22324.9%22%20rx%3D%22102.7%22%20ry%3D%22123.8%22%20fill%3D%22%23d9c2a0%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",
"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22800%22%20viewBox%3D%220%200%20600%20800%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23adb5bd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e9ecef%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22a%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23e76f51%22%20stop-opacity%3D%220.6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23e76f51%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CclipPath%20id%3D%22f%22%3E%3Cellipse%20cx%3D%22299%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22k%22%3E%3Crect%20x%3D%22107%22%20y%3D%2293.9%22%20width%3D%22384%22%20height%3D%22178.6%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22800%22%20fill%3D%22url(%23g)%22%2F%3E%3Cpath%20d%3D%22M71%20800L71%20368A228%20228%200%200%201%20527%20368L527%20800Z%22%20fill%3D%22%23dee2e6%22%20fill-opacity%3D%220.8%22%2F%3E%3Crect%20x%3D%22258.7%22%20y%3D%22391.5%22%20width%3D%2280.6%22%20height%3D%22140.8%22%20fill%3D%22%23cdb39e%22%2F%3E%3Cpath%20d%3D%22M56.9%20802L56.9%20616.3C56.9%20526.3%20117.5%20496.3%20210.3%20496.3L387.8%20496.3C480.6%20496.3%20541.2%20526.3%20541.2%20616.3L541.2%20802Z%22%20fill%3D%22%23495057%22%2F%3E%3Cpath%20d%3D%22M234.5%20496.3L299%20580.3L363.6%20496.3Z%22%20fill%3D%22%23212529%22%2F%3E%3Cpath%20d%3D%22M335.4%20800L432.2%20526.3C504.8%20532.3%20541.2%20568.3%20541.2%20616.3L541.2%20800Z%22%20fill%3D%22%23212529%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%22203%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23dabda7%22%2F%3E%3Cellipse%20cx%3D%22395%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23dabda7%22%2F%3E%3Cellipse%20cx%3D%22299%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%20fill%3D%22%23f3d2b8%22%2F%3E%3Cg%20clip-path%3D%22url(%23f)%22%3E%3Cellipse%20cx%3D%22371%22%20cy%3D%22343.9%22%20rx%3D%2267.2%22%20ry%3D%22142.8%22%20fill%3D%22%23212529%22%20fill-opacity%3D%220.2%22%2F%3E%3C%2Fg%3E%3Cg%20clip-path%3D%22url(%23k)%22%3E%3Cellipse%20cx%3D%22299%22%20cy%3D%22324.9%22%20rx%3D%22102.7%22%20ry%3D%22123.8%22%20fill%3D%22%23d9c2a0%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",
"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22800%22%20viewBox%3D%220%200%20600%20800%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%2384a59d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d8e2dc%22%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%22a%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f28482%22%20stop-opacity%3D%220.6%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f28482%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3CclipPath%20id%3D%22f%22%3E%3Cellipse%20cx%3D%22282.5%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22k%22%3E%3Crect%20x%3D%2290.5%22%20y%3D%2293.9%22%20width%3D%22384%22%20height%3D%22211.9%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22800%22%20fill%3D%22url(%23g)%22%2F%3E%3Cpath%20d%3D%22M54.5%20800L54.5%20368A228%20228%200%200%201%20510.5%20368L510.5%20800Z%22%20fill%3D%22%23f28482%22%20fill-opacity%3D%220.8%22%2F%3E%3Crect%20x%3D%22159.6%22%20y%3D%22203.4%22%20width%3D%22245.8%22%20height%3D%22376.8%22%20rx%3D%22115.2%22%20fill%3D%22%233b2a20%22%2F%3E%3Crect%20x%3D%22242.2%22%20y%3D%22391.5%22%20width%3D%2280.6%22%20height%3D%22140.8%22%20fill%3D%22%235d3d2d%22%2F%3E%3Cpath%20d%3D%22M50.8%20802L50.8%20616.3C50.8%20526.3%20108.7%20496.3%20193.8%20496.3L371.2%20496.3C456.2%20496.3%20514.1%20526.3%20514.1%20616.3L514.1%20802Z%22%20fill%3D%22%232f3e46%22%2F%3E%3Cpath%20d%3D%22M213.9%20496.3Q282.5%20550.3%20351%20496.3Z%22%20fill%3D%22%231b2a2f%22%2F%3E%3Cpath%20d%3D%22M317.2%20800L409.9%20526.3C479.4%20532.3%20514.1%20568.3%20514.1%20616.3L514.1%20800Z%22%20fill%3D%22%231b2a2f%22%20fill-opacity%3D%220.1%22%2F%3E%3Cellipse%20cx%3D%22186.5%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23613e2c%22%2F%3E%3Cellipse%20cx%3D%22378.5%22%20cy%3D%22341.5%22%20rx%3D%2215.4%22%20ry%3D%2223.8%22%20fill%3D%22%23613e2c%22%2F%3E%3Cellipse%20cx%3D%22282.5%22%20cy%3D%22332%22%20rx%3D%2296%22%20ry%3D%22119%22%20fill%3D%22%236b412c%22%2F%3E%3Cg%20clip-path%3D%22url(%23f)%22%3E%3Cellipse%20cx%3D%22354.5%22%20cy%3D%22343.9%22%20rx%3D%2267.2%22%20ry%3D%22142.8%22%20fill%3D%22%231b2a2f%22%20fill-opacity%3D%220.2%22%2F%3E%3C%2Fg%3E%3Cg%20clip-path%3D%22url(%23k)%22%3E%3Cellipse%20cx%3D%22282.5%22%20cy%3D%22324.9%22%20rx%3D%22102.7%22%20ry%3D%22123.8%22%20fill%3D%22%233b2a20%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E",
] as const;
A portfolio hero intro where a row of portraits rises in, spreads apart, wipes away to a single expanding hero shot, and lifts a dark curtain to reveal the name.
Copy src/ into a React project and render <PortraitRevealIntro />.
Originally published at https://github.com/Hank-D-Tank/alexandra.