Show Animation
A plugin to make boring show/hide blocks elegant with opening/closing animation effects.
Copy-paste the stylesheet <link>
into your <head>
to load the CSS.
Copy-paste the following <script>
near the end of your pages under JS Space to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Basic example
First content
This is where we sit down, grab a cup of coffee and dial in the details. Understanding the task at hand and ironing out the wrinkles is key.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-link-group=""
.
JavaScript function | Description | Default value |
---|---|---|
|
Determines which selectors belong to the same group. This definition is necessary, since the selectors can be in different parent blocks, without this it would be impossible to remove/add the necessary classes to selectors based only on the parent. | |
|
Defines the block ID to be displayed. | |
|
Determines which blocks belong to the same group. This definition is necessary, since blocks can be located in different parent blocks, otherwise it would be impossible to show/hide the necessary blocks based solely on the parent. | |
|
Revealing effect. Script does not work without animate.css All available animation classes can be found in the site. | no |
|
This function executes the code, inside the body of the function, every time the block appears. |