reactour icon indicating copy to clipboard operation
reactour copied to clipboard

Make tour start transition animation from specific point of the screen

Open ramusus opened this issue 4 years ago • 9 comments

I'm looking the way to tweak tour appearing behavior.

What I see now:

When tour appears for first time, it always starts from left top corner of the screen and with some transition animation move to the position of the first step. If I close in on N step and open it again, it moves from the position of N step to position of 1 step (thanks to startAt={0} prop).

What I want:

I need transition animation to start from specific point of the screen. In my case it's the icon to enable tour mode.

I see state vars responsible for positioning, but if I change them on componentDidMount to some other values this.tourRef.current.setState({ top: 500, left: 500 }); it still appears in the top left corner instead of my desired 500x500 point.

What am I missing? Is there another way to achieve what I want?

ramusus avatar Oct 01 '19 15:10 ramusus

Hi @ramusus, thanks for open the Issue. Interesting, let me dig deep in to it and back to you asap.

elrumordelaluz avatar Oct 02 '19 07:10 elrumordelaluz

Hi, any update on this?

asile12 avatar Apr 23 '21 00:04 asile12

same here..

edwindelbosque avatar May 27 '21 22:05 edwindelbosque

Anyone able to figure this out?

Rahulkr204 avatar Jun 30 '21 10:06 Rahulkr204

Have the same issue. Any updates on to how deal with it?

emma-adams-machine avatar Oct 21 '21 05:10 emma-adams-machine

@emma-adams-machine did you tried using the last version of @reactour/tour?

Should be solved there. Let me know in any case. Thanks,

elrumordelaluz avatar Oct 21 '21 11:10 elrumordelaluz

@elrumordelaluz I tested with both versions but it's not working properly :(

emma-adams-machine avatar Oct 25 '21 07:10 emma-adams-machine

@emma-adams-machine can you pleae share a minimal reproduction sandbox?

elrumordelaluz avatar Oct 25 '21 08:10 elrumordelaluz

@emma-adams-machine can you pleae share a minimal reproduction sandbox?

https://docs.react.tours/tour/examples

all of exp

ZowieTao avatar Apr 16 '24 13:04 ZowieTao