Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQWidgets jqxResponsivePanel animationDirection Property

  • Last Updated : 10 May, 2022

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxResponsivePanel is a jQuery widget that is used to represent a panel widget with responsive behavior. The responsive panel is used to display the content in a responsive manner. This panel collapses when the width of the browser window is less than a set value and after clicking the button, we can access the value.

The animationDirection property is used to set or return the direction of the animation. This property is used when  “animationType” property value is set to ‘slide’. It accepts String type values and its default value is “left”.

Its possible values are –

  • ‘left’
  • ‘right’
  • ‘top’
  • ‘bottom’


Set the animationDirection property.

    animationDirection: String 

Return the animationDirection property.

var animationDirection = $('selector')

Linked Files: Download jQWidgets from the link In the HTML file, locate the script files in the downloaded folder.

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqx-all.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxresponsivepanel.js”></script>

The below example illustrates the jqxResponsivePanel animationDirection property in jQWidgets.



<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet"
          type="text/css" />
    <script type="text/javascript"
    <script type="text/javascript"
    <script type="text/javascript"
    <script type="text/javascript"
        h3 {
            text-align: center;
        #GFG {
            width: 100%;
            margin: 0 auto;
    <h1 style="color: green;">
        jQWidgets jqxResponsivePanel animationDirection Property
    <div id="GFG" style="width:400px;">
        <div style="border: 1px solid #e1e1e1">
            <div id="TRP"></div>
        <div id="jqxRP" style="padding: 5px;">
                HTML stands for HyperText Markup
                Language. It is used to design
                web pages using a markup language.
                HTML is the combination of Hypertext
                and Markup language. Hypertext
                defines the link between the web pages.
    <script type="text/javascript">
        $(document).ready(function() {
                width: 400,
                height: 250,
                toggleButton: $('#TRP'),
                animationType: 'slide',
                animationDirection: 'top'



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!