animation Boolean|Object
Configures the opening and closing animations of the popup. Setting the animation
option to false
will disable the opening and closing animations. As a result the popup will open and close instantly.
animation:true
is not a valid configuration.
Example - disable open and close animations
<div id="popup">CONTENT</div>
<script>
$("#popup").kendoPopup({
animation: false
}).data("kendoPopup").open();
</script>
Example - configure the animation
<div id="popup">CONTENT</div>
<script>
$("#popup").kendoPopup({
animation: {
close: {
effects: "fadeOut zoom:out",
duration: 300
},
open: {
effects: "fadeIn zoom:in",
duration: 300
}
}
}).data("kendoPopup").open();
</script>
animation.close Object
The animation played when the popup is closed.
Example - configure the close animation
<div id="popup">CONTENT</div>
<script>
$("#popup").kendoPopup({
animation: {
close: {
effects: "zoom:out",
duration: 300
}
}
}).data("kendoPopup").open();
</script>
animation.close.effects String
The effect(s) to use when playing the close animation. Multiple effects should be separated with a space.
Complete list of available animations
animation.close.duration Number
The duration of the close animation in milliseconds.
animation.open Object
The animation played when the calendar popup is opened.
Example - configure the open animation
<div id="popup">CONTENT</div>
<script>
$("#popup").kendoPopup({
animation: {
open: {
effects: "zoom:in",
duration: 300
}
}
}).data("kendoPopup").open();
</script>
animation.open.effects String
The effect(s) to use when playing the open animation. Multiple effects should be separated with a space.
Complete list of available animations
animation.open.duration Number
The duration of the open animation in milliseconds.