-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: Add full screen preview feature #898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add full screen preview feature #898
Conversation
|
Someone is attempting to deploy a commit to the formbricks Team on Vercel. A member of the Team first needs to authorize it. |
|
Thank you for following the naming conventions for pull request titles! 🙏 |
|
Hey @yatharth1706 - thanks a lot for picking this up and welcome to the FormTribe 🔥 Technically, it works. However, it doesn't feel slick, it actually feels a bit broken 🫠
It would help already if:
What we're actually looking for is the window to smoothly scale up and down with the button 🤓 Wanna rework your submission? |
|
Sure, I will try to work on points you suggested and improve the animation as well |
I improved animation and background blur. Is it looking fine now ? Screen.Recording.2023-10-02.at.6.04.52.PM.mov |
…l-screen-link-survey-preview
|
Ok @jobenjada , I will work on all these points you suggested, also for animation, i will think more about it how we can make sure same window grows to full screen instead of new window coming from left to right. Will analyse this more |
|
Hi @jobenjada , I have fixed all the points you suggested.
Attaching a small demo of how it looks now Screen.Recording.2023-10-03.at.10.49.08.PM.mov |
|
Thanks a lot for your presistence, really appreciated :)) This is pretty good! I know someone who could help actually, let me reach out and follow up with you! |
Sure @jobenjada , Although I will try again in the evening to improve this more. Will analyse it again how to make animation look more slick and natural. |
|
Hi @jobenjada , I was trying to improve the animation. I am attaching two demo videos. Do let me know which one do you prefer. Although they might not be perfect, but want to know what you think and which one is good from user perspective, so that i will improve that one. In this, i added a little delay while changing position from relative to fixed, so that it looks like the screen is becoming full screen from its original position, as you can see in demo. And it does not appear like a new window opening. Only one problem in this is that while changing from relative to fixed, its not smooth. I am trying to figure out any way to make that smooth, but stuck in that. Screen.Recording.2023-10-05.at.10.35.22.PM.movIn this i am not adding any delay between fixed and relative position, so it might look like a new window is opening although this one is smoother. Only drawback i guess its not looking natural and looking like a new window is opening Screen.Recording.2023-10-05.at.10.32.47.PM.movDo let me know what you think. I will try to still improve it. |
|
The first one is verrrry close already! Any idea, why its not animating the scale up? I think you're 95% there 🫶 Great work! You're a strong candidate for the +500 points award as Pixel Picasso :D |
Yes, in the first one, i have added a little delay of around 300ms. After that i am making it position fixed, so that it covers the whole screen. From position relative to fixed when its going, its not animating. Will check framer motion docs for this, if i can find anything for this scenario |
|
Hi @jobenjada , I tried making it look more natural. But still its not 100% smooth. But i would request you to once use this locally so that you can get a feel of how maximize is working currently and what is your user experience. I tried finding some solution in framer motion. It said to use layout keyword for change in position layouts, but its not giving me super smooth animation. Let me know if you have any ideas. |
|
@yatharth1706 I think its fine, from the last 2 options you presented, please commit the first one and resolve the merge conflicts. Happy to get it merged then! :) Thanks for your good work! Really appreciated 🙏 |
…cut in the top because of navigation bar
|
Hi @jobenjada, i have resolved the merge conflicts. Can you review this. Also if you could check the animation manually, that would be great. I have made a slight change as there was width and height inconsistency with the actual production app. Also decreased the bottom margin a little when maximizing as it was getting cut with top nav bar when its in relative state. Do let me know if this works fine. Screen.Recording.2023-10-07.at.8.04.09.AM.mov |
…l-screen-link-survey-preview
|
@yatharth1706 thanks a lot!! :) |
|
Welcome @jobenjada And thanks for merging this. Also, it might not be 100% according to what you would have wanted. But i will rework on it in future and improve the animation for sure. |





What does this PR do?
Added the feature of Viewing Full Screen Preview
Fixes #886
FullScreenPreview.Demo.mp4
Type of change
How should this be tested?
Manual testing did on localhost
Checklist
pnpm buildconsole.logsgit pull origin main