-
In jsPanel v3 home page, can V4 do those slidingbetween multiple panel? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Sure, it's just a matter of combining options jsPanel.create({
theme: 'success',
animateIn: 'animate__animated animate__bounceInLeft',
animateOut: 'animate__animated animate__bounceOutRight',
onclosed: () => {
jsPanel.create({
theme: 'primary',
animateIn: 'animate__animated animate__bounceInLeft',
animateOut: 'animate__animated animate__bounceOutRight',
onclosed: () => {
jsPanel.create({
theme: 'warning',
animateIn: 'animate__animated animate__bounceInLeft',
animateOut: 'animate__animated animate__bounceOutRight'
});
}
});
}
}); Of course you can create more sophisticated behaviour with some more code depending on your intentions. Extra buttons for example to move forward and/or backward. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello, I want integrate it on a multi language Drupal site dynamically, it’s working fine so far but based on the implementation above, I can only display one single popup/panel. Let me know if you need more information to fix this issue |
Beta Was this translation helpful? Give feedback.
-
@4goodapp |
Beta Was this translation helpful? Give feedback.
Sure, it's just a matter of combining options
animateIn
,animateOut
andonclosed
as in the following simple example where I use the close control to slide in the next panel (animations come from animate.css):