Skip to main content
Question

Fixed frame in presentation mode


James_Lawrie

I have made a plugin for watermarking, but I need to some how fix the new frame from scrolling in presentation mode.

Manually I would go to Prototype > Scroll Behaviour > Position: Fixed

But I there a way this be done with javascript and the plugin api code?

This topic has been closed for replies.

3 replies

tank666
  • 4873 replies
  • January 17, 2024

James_Lawrie
  • Author
  • New Participant
  • 17 replies
  • January 18, 2024

This returns the number of children which have a fixed position.
So is there a way then to actually fix a frame in Figma plugin api? As i am creating a new frame and need to fix it so it wont scroll.

const newFrame = figma.createFrame();
//need to fix newFrame

tank666
  • 4873 replies
  • January 18, 2024

Yes, you can. Get the parent of this frame and change its property value, the link to which I left above.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings