[{"data":1,"prerenderedAt":331},["ShallowReactive",2],{"component-before-after-picture":3,"related-components-before-after-picture":297},{"id":4,"title":5,"body":6,"categories":244,"createdAt":247,"description":232,"download_url":248,"extension":249,"faq":250,"featured":263,"features":264,"hasGradient":263,"iframe":279,"image":280,"isFree":263,"isNew":263,"lemonsqueezy_variant_id":232,"license":248,"meta":281,"navigation":283,"path":284,"polar_product_id":285,"polar_sandbox_product_id":248,"previewImage":286,"price":287,"published":283,"robots":248,"seo":288,"seoDescription":248,"seoTitle":248,"slug":289,"stem":290,"tagline":291,"tags":292,"__hash__":296},"components/components/before-after-picture.md","Before After Picture",{"type":7,"value":8,"toc":231},"minimark",[9,14,18,21,25,32,38,44,50,56,60,66,72,78,84,90,101,105,108,113,123,128,133,138,152,157,171,176,184,189,195,201,207,211,214,218],[10,11,13],"h2",{"id":12},"a-beforeafter-image-comparison-slider-for-framer","A before/after image comparison slider for Framer",[15,16,17],"p",{},"Before After Picture stacks two images and splits them with a divider. Visitors drag the round handle, click anywhere, or simply move the cursor to reveal more of one image or the other. It is the clearest way to show a change: a retouched photo, a renovated room, a redesigned interface, a product result.",[15,19,20],{},"You upload the two images, choose the interaction mode, and style the divider, handle, icons and labels in Framer's properties panel. Images are served responsively with srcSet, so phones download smaller files.",[10,22,24],{"id":23},"features","Features",[15,26,27,31],{},[28,29,30],"strong",{},"Three interaction modes."," Drag the handle, click to jump the divider, or let it follow the cursor on hover.",[15,33,34,37],{},[28,35,36],{},"Clear handle."," A circular handle with arrows (or your own icons) that grows on hover so people know it moves.",[15,39,40,43],{},[28,41,42],{},"Touch support."," Drag and click work with fingers on phones and tablets.",[15,45,46,49],{},[28,47,48],{},"Labels."," Optional Before and After labels with position, colors, border, radius and backdrop blur.",[15,51,52,55],{},[28,53,54],{},"Responsive images."," Automatic srcSet so each device gets a suitably sized image.",[10,57,59],{"id":58},"where-before-after-picture-works-best","Where Before After Picture works best",[15,61,62,65],{},[28,63,64],{},"Retouching and color-grading portfolios."," Put each edit in its own slider with labels \"Original\" and \"Edited\". Prospective clients see the skill directly, which a gallery of finished images cannot show.",[15,67,68,71],{},[28,69,70],{},"Renovation, interior and landscaping businesses."," Use Drag mode with the divider starting at 50% on project pages. Pair each slider with a short line on scope and timeline.",[15,73,74,77],{},[28,75,76],{},"SaaS redesign case studies."," Compare the old and new interface at the same screen size. Click mode lets readers jump between states quickly while they read the text beside it.",[15,79,80,83],{},[28,81,82],{},"Product results."," Skincare, cleaning, photo filters or AI image tools can show the result of the product in one interactive frame, often the strongest proof on a landing page.",[15,85,86,89],{},[28,87,88],{},"Presentations and demos."," Hover mode needs no clicking, which helps when you are screen-sharing a site to a client.",[15,91,92],{},[93,94],"img",{"alt":95,"className":96,"src":100},"Before After Picture Preview",[97,98,99],"w-full","mb-6","rounded-[20px]","/framerhub/img/components/control/before-after-picture.jpg",[10,102,104],{"id":103},"how-to-use","How to Use",[15,106,107],{},"Everything is in Framer's properties panel:",[15,109,110],{},[28,111,112],{},"Images",[114,115,116,120],"ul",{},[117,118,119],"li",{},"Before and after images (responsive, with srcSet)",[117,121,122],{},"Initial divider position (0 to 100%)",[15,124,125],{},[28,126,127],{},"Interaction",[114,129,130],{},[117,131,132],{},"Mode: Drag, Click or Hover",[15,134,135],{},[28,136,137],{},"Labels",[114,139,140,143,146,149],{},[117,141,142],{},"On or off, with custom text",[117,144,145],{},"Position: top or bottom",[117,147,148],{},"Background color with opacity, text color",[117,150,151],{},"Border radius (0 to 50px) and optional border",[15,153,154],{},[28,155,156],{},"Icons",[114,158,159,162,165,168],{},[117,160,161],{},"On or off",[117,163,164],{},"One uploaded image with both left and right icons",[117,166,167],{},"Icon height (12 to 40px)",[117,169,170],{},"Arrow color for the built-in arrows",[15,172,173],{},[28,174,175],{},"Styling",[114,177,178,181],{},[117,179,180],{},"Divider color and width (1 to 10px)",[117,182,183],{},"Handle size (32 to 72px)",[185,186,188],"h3",{"id":187},"starting-settings","Starting settings",[15,190,191,194],{},[28,192,193],{},"Case study."," Drag mode, divider at 50%, labels on at the bottom with a semi-transparent dark background, 2px white divider, 48px handle.",[15,196,197,200],{},[28,198,199],{},"Product proof."," Click mode, divider at 30% so the \"after\" result dominates, labels on at the top.",[15,202,203,206],{},[28,204,205],{},"Client demo."," Hover mode, labels off, a thin divider for a clean look.",[10,208,210],{"id":209},"performance-and-mobile","Performance and mobile",[15,212,213],{},"Export both images at the same size and compress them; the component already serves smaller versions to smaller screens. Choose a divider and handle color that contrasts with both images, and test touch dragging in preview on a real phone. Hover mode has nothing to follow on touch screens, so use Drag or Click on pages with mobile traffic.",[10,215,217],{"id":216},"compared-with-similar-components","Compared with similar components",[15,219,220,225,226,230],{},[221,222,224],"a",{"href":223},"/components/portfolio-reveal-hero","Portfolio Reveal Hero"," reveals a second image through an organic blob mask that follows the cursor, which is more decorative than comparative. ",[221,227,229],{"href":228},"/components/scroll-image-reveal","Scroll Image Reveal"," reveals a single image as the page scrolls. Choose Before After Picture when the point is to compare two states side by side and let the visitor control the reveal.",{"title":232,"searchDepth":233,"depth":233,"links":234},"",2,[235,236,237,238,242,243],{"id":12,"depth":233,"text":13},{"id":23,"depth":233,"text":24},{"id":58,"depth":233,"text":59},{"id":103,"depth":233,"text":104,"children":239},[240],{"id":187,"depth":241,"text":188},3,{"id":209,"depth":233,"text":210},{"id":216,"depth":233,"text":217},[245,246],"Interactive","Picture","2025-11-27T00:00:00.000Z",null,"md",[251,254,257,260],{"question":252,"answer":253},"Does the before/after slider work on touch screens?","Yes. Drag and click modes work with touch, so visitors on phones can move the divider with a finger. Hover mode follows the cursor, so it is best kept for desktop presentations.",{"question":255,"answer":256},"Do both images need to be the same size?","For the cleanest comparison, yes. Use two images with the same dimensions and the subject in the same position, so only the change you want to show moves.",{"question":258,"answer":259},"Can I change the arrow icons on the handle?","Yes. Upload one image that contains both the left and right icons side by side, or keep the built-in arrows and set their color.",{"question":261,"answer":262},"Can I add Before and After labels?","Yes. Labels can be switched on, renamed, placed at the top or bottom, and styled with background color, opacity, text color, border and radius. They include a backdrop blur.",false,[265,266,267,268,269,270,271,272,273,274,275,276,277,278],"Three interaction modes (drag, click, or hover)","Smooth drag interaction with touch support","Click anywhere to jump divider position","Hover for automatic follow-cursor interaction","Circular handle with customizable icons","Upload one image containing both left and right icons","Responsive images with srcSet support","Fully customizable label styling (position, colors, border)","Adjustable initial divider position","Optional before/after labels with backdrop blur","Label position control (top or bottom)","Works on any layout or screen size","Hover scale effect on handle","No coding required","https://lime-expectations-304728.framer.app/","/framerhub/img/components/before-after-picture.jpg",{"variants":282},1,true,"/components/before-after-picture","4f7ab02b-9d14-4769-b037-b4763006bc9a","/framerhub/img/components/large/before-after-picture.jpg",12,{"title":5,"description":232},"before-after-picture","components/before-after-picture","A before-and-after image slider with arrow handles.",[246,112,293,294,245,295],"Comparison","Before After","Drag","6LadqhE6Wk0YtFXoO7EXOBrU_jquxCB2vQghQmXS1ac",[298,311,323],{"slug":299,"title":300,"image":301,"tagline":302,"price":303,"isFree":283,"hasGradient":263,"tags":304,"categories":310},"bouncing-balls","Gravity Bouncing Balls","/framerhub/img/components/physics-gravity.jpg","Interactive 2D physics simulation with gravity, collisions, and mouse repulsion.",0,[305,306,307,245,308,309],"Physics","Gravity","Collision","2D","Animation",[245],{"slug":312,"title":313,"image":314,"tagline":315,"price":316,"isFree":263,"hasGradient":263,"tags":317,"categories":321},"bouncing-image-trail","Bouncing Image Trail","/framerhub/img/components/bouncing-image-trail.jpg","A GSAP-powered trail of images that bounce behind your cursor.",9,[318,319,320],"GSAP","Mouse Effect","Cursor",[127,322],"Gallery",{"slug":324,"title":325,"image":326,"tagline":327,"price":303,"isFree":283,"hasGradient":263,"tags":328,"categories":330},"bubble-burst","BubbleBurst","/framerhub/img/components/bubble-burst.jpg","Interactive 3D physics simulation with colorful bouncing bubbles.",[329,305,309,245],"3D",[245],1794241449196]