Javascript Interaction Question

I’m busy creating an event where the element is hidden on loading and floats in on clicking a button. Here is the code I am using below, so “FloatIn” is by default floating in from the right. How do I get it to float in from the left, the top, the bottom etc. Is there a link you can direct me to where these code shortcuts are all listed in one place for our reference?

export function viewWebsiteButton_onClick(event) {
//Add your code for this event here:
$w(“#websiteScreen”).show(“FloatIn”);

I’ll move it to the Feature Requests. We will need extend the API and accept attributes of animations that same as you can set in the regular editor panels.

Okay thanks Shay that would be great

I second the motion: need to edit the parameters for direction, timing, and delay.
Thanks!

I also would like to be able to edit the parameters

Me as well

We are working on extending the show/hide API. It is coming soon.