{"action":"created","issue":{"url":"https://api.github.com/repos/carlganz/rintrojs/issues/27","repository_url":"https://api.github.com/repos/carlganz/rintrojs","labels_url":"https://api.github.com/repos/carlganz/rintrojs/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/carlganz/rintrojs/issues/27/comments","events_url":"https://api.github.com/repos/carlganz/rintrojs/issues/27/events","html_url":"https://github.com/carlganz/rintrojs/issues/27","id":292600537,"number":27,"title":"Transparency Issues","user":{"login":"dchen71","id":4143686,"avatar_url":"https://avatars3.githubusercontent.com/u/4143686?v=4","gravatar_id":"","url":"https://api.github.com/users/dchen71","html_url":"https://github.com/dchen71","followers_url":"https://api.github.com/users/dchen71/followers","following_url":"https://api.github.com/users/dchen71/following{/other_user}","gists_url":"https://api.github.com/users/dchen71/gists{/gist_id}","starred_url":"https://api.github.com/users/dchen71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchen71/subscriptions","organizations_url":"https://api.github.com/users/dchen71/orgs","repos_url":"https://api.github.com/users/dchen71/repos","events_url":"https://api.github.com/users/dchen71/events{/privacy}","received_events_url":"https://api.github.com/users/dchen71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-29T23:34:55Z","updated_at":"2018-02-26T18:00:35Z","closed_at":null,"author_association":"NONE","body":"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?"},"comment":{"url":"https://api.github.com/repos/carlganz/rintrojs/issues/comments/368591505","html_url":"https://github.com/carlganz/rintrojs/issues/27#issuecomment-368591505","issue_url":"https://api.github.com/repos/carlganz/rintrojs/issues/27","id":368591505,"user":{"login":"carlganz","id":11653794,"avatar_url":"https://avatars2.githubusercontent.com/u/11653794?v=4","gravatar_id":"","url":"https://api.github.com/users/carlganz","html_url":"https://github.com/carlganz","followers_url":"https://api.github.com/users/carlganz/followers","following_url":"https://api.github.com/users/carlganz/following{/other_user}","gists_url":"https://api.github.com/users/carlganz/gists{/gist_id}","starred_url":"https://api.github.com/users/carlganz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlganz/subscriptions","organizations_url":"https://api.github.com/users/carlganz/orgs","repos_url":"https://api.github.com/users/carlganz/repos","events_url":"https://api.github.com/users/carlganz/events{/privacy}","received_events_url":"https://api.github.com/users/carlganz/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T18:00:35Z","updated_at":"2018-02-26T18:00:35Z","author_association":"OWNER","body":"So you want to include a javascript callback function like this:\r\n\r\n```r\r\nintrojs(session, options = list(steps = steps, events = list(onbeforechange=I(\"\r\n// this is javascript\r\nif (this._currentStep == *theIndexNumberOfStepWhereYouWantToChangeOpacity*) {\r\n $('*selector*').css('opacity', *whateverYouWantToChangeOpacityTo*);\r\n} else {\r\n// change opacity back\r\n$('*selector*').css('opacity', *whateverYouWantToChangeOpacityTo*);\r\n}\r\n\"))))\r\n```\r\n\r\nYou might want to add another callback to put opacity back on exit in case person exits during the step you change the opacity."}}
{"actor":{"display_login":"carlganz"}}