Forum Discussion
RayDeRegis
2 years agoCommunity Member
Scroll Into View JavaScript Trigger Not Working
Wondering if anyone has figured out a way to scroll to a specific line in a Storyline scrolling panel?
I have tried the following JS trigger:
var zoneone = document.querySelectorAll(‘[data-acc-text~=”modone”]’);
zoneone[0].scrollIntoView({block: “end”, inline: “nearest”});
...where "modone" is the accessibility name given to the shape located on the target line I wish to scroll to.
Thinking it must be possible????
14 Replies
- RayDeRegisCommunity Member
Thought I'd share how the script is working as intended (note, only the first two links on the left have been programmed properly): https://360.articulate.com/review/content/ea9f84b6-8784-4ff8-9db8-47b3c667abb1/review
- SamHillSuper Hero
You are welcome Ray. I hadn't seen this technique in SL before. Love it.
Related Content
- 9 months ago
- 10 years ago