Brightspace API to check if a page is in Edit mode

Arman.V.176
Arman.V.176 Posts: 19 🌱

Hi there,

I was just wondering if one can leverage the Brightspace API or some other way to check if a page (content page) is in edit mode. If so I can use some JavaScript to add a class to the <body> which temporarily disables SAL animations.

I use SAL (Scroll Animation Library) and elements that bear data-sal attributes are not visible when the page is in Edit mode. This is caused by the start opacity which is set to zero. I can of course set the start opacity to a different value, like 0.25, but then the animations do not look that smooth.

Kind regards,

Arman

Tagged:

Answers