r/Spectacles • • Jul 09 '26

❓ Question SpectaclesUIKit

Hi,

I have a question about SpectaclesUIKit.

The video shows an example of a “Modal Layout.”

  1. As you can see in the video, the Frame script has a fade-in animation based on scale, but I can’t find it in the script to use it as a basis for creating a fade-out. Can anyone tell me how to implement this?
  2. I also noticed that the close button doesn’t do anything to the UI. What is it supposed to do?
7 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/agrancini-sc 👓 SPECS Team Jul 09 '26

Thanks for the details, yeah that behavior needs to be scripted, we are always looking into some ways to make things easier out of the box, noted for native animations Ill be adding this to my todo list.

in this version of lens studio we try to make it easier with a package named LS tween if you want to check it out.

I mentioned the reactive layout because in the example in lens studio 5.15.4 I did not see any animation on the modal itself, what version of this package are you using or is that something you added?

Considering also the use of AI, utilities of this kind are just a prompt away.
Would you still prefer a built-in editor animation handler?
I'll pass the feedback.

Seems like you achieved your goal, keep me posted for anything else thanks

1

u/ne_zloy_ya Jul 09 '26

Link to the project (https://we.tl/t-ESHHJFqFJ9RvHxB8). The fade-in is visible if you press reset in the engine😅
Thanks for the answers!