-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transparency Issues #27
Comments
This is possible using a javascript callback. Please provide a minimal reproducible example |
Below is a reproducible example.
|
So you want to include a javascript callback function like this: introjs(session, options = list(steps = steps, events = list(onbeforechange=I("
// this is javascript
if (this._currentStep == *theIndexNumberOfStepWhereYouWantToChangeOpacity*) {
$('*selector*').css('opacity', *whateverYouWantToChangeOpacityTo*);
} else {
// change opacity back
$('*selector*').css('opacity', *whateverYouWantToChangeOpacityTo*);
}
")))) You might want to add another callback to put opacity back on exit in case person exits during the step you change the opacity. |
In your example, when I do the following for my example I do not get any opacity changes.
Do I have the right syntax for targeting the first step event or am I perhaps targeting the wrong class for the opacity change? |
Hi there, First off, thanks for the excellent package! I have a similar issue with fixedPanels transparency, specifically in Chrome. I'm not sure if it is directly related to this issue or the Chrome position issue #28 that @dchen71 also raised. In Chrome (65.0.3325.181) if I run the example code from the README file it works fine, but changing the sidePanel to a fixed location makes any highlighted elements in the sidePanel disappear during the rintrojs walkthrough:
This code does seem to work without issue on Explorer however (I haven't tried any other browsers). I would like to keep my sidepanel fixed if possible, but don't want to get rid of the rintrojs walkthough, as it's an incredibly useful package and really helps users navigate the app. Thanks so much for any help/insight you can offer. |
I have a sidebar which has a opacity of 0.65 when it is not being hovered upon. The data steps show this element as a giant white box so is it possible to pass in arguments before and after to adjust opacity so the element shows up properly?
The text was updated successfully, but these errors were encountered: