-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
All animations are removed whenever an element is removed #78
Comments
Hi! I'm sorry, animations are not yet supported. I'll take a look! |
Huh, that's complicated... There is What about <p:sp>
<p:nvSpPr>
<p:cNvPr id="11" name="Drum" hidden="1">
<a:extLst>
/// What do yo think? This will be the same effect as |
I thought about that but I didn't saw the function in the documentation but yes it would work that would be great :) |
This should do the job: pres.addSlide('animations', 1, (slide) => {
slide.modifyElement('Drum', (shape) => {
// You need to update the 'hidden' attribute with a callback:
shape.getElementsByTagName('p:cNvPr').item(0).setAttribute('hidden', '1');
// XmlHelper.dump(shape);
});
}); Feel free to create a helper & PR from this! 😄 |
It works really well thank you a lot you're the best 😀 |
I'm happy to help 😄 |
Hello,
I've noticed that whenever I want to remove an element that has an animation on it, Powerpoint makes me repair the pptx and remove all of the animations in the slide.
Do I do something wrong here? Is there already a workaround for this issue?
Otherwise, would it be possible to reorganize the animations while removing the element?
I have this issue with this code for example:
My temporary solution would be to have a slightly different template for each time I have to remove an element, but it's not handy nor maintainable.
The text was updated successfully, but these errors were encountered: