-
Notifications
You must be signed in to change notification settings - Fork 6.7k
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Event "stepleave", How can I get the ID of the next step before arriving there? #375
Comments
At the moment events don't have any additional impress-specific data, so you only know the step that is a target of the event (so the step you are leaving). But I think you may be able to achieve your per-slide background using CSS only. Every step has an ID and there is a class being set on Let's assume you have a step with ID |
Thank you! @bartaz , I didn't know that. |
I think I will publish an Impress.js plugin to set a body background-color for each step slide with CSS Transition based ot its data-attributes. |
Refer to #206 for an implementation example. |
Hi @eduardrock, in an effort to clear up older issues/PRs we are pinging back to know if you are still tracking this request. To give a little bit of context, recently a decision was made in the project to make the development more active and the first task is to clear up older issues like this one to see if the OP is still interested in keep it going. |
Closing due to the lack of feedback from the OP. Feel free to comment here to open up the discussion again |
I'm writing a plugin for assigning a document.body backgroun color for every slide.
When I use the event impress:stepleave, I need to know the ID of the next step where is moving in the moment, because I need to start a CSS-transform with transition for changing the background color according to the target step color.
The text was updated successfully, but these errors were encountered: