Is there another way to create an overlay without using a flowComponent? I have a layer that starts off outside of the canvas and on a click event it moves into focus and I want to have the overlay effect on the content behind it.
Hey Dan, I have just begun working in Framer, but I had this question recently. I was given this little bit of code:layer=your layer, also this is putting my object of the right side of the screen.
layer.states.open = x: Screen.width - layer.width
layer.states.closed = x: Screen.width + layer.width
here's a proto with a custom modal and overlay. I created a function to display the modal, which also creates the overlay. I then created a dismiss function, which destroys the overlay when dismissed https://framer.cloud/ZMXOe/
Thanks for the feedback guys. dmBtn.onClick -> overlay.visible = true directDM.animate options: time: 0.8 y: 41 img.ignoreEvents = true
send.onClick -> overlay.visible = false directDM.animate options: time: 0.8 y: 667
didn't mean for that to send like that. I figured it out using the code I provided but its not as clean as what was suggested.