Show Animation
A plugin to make boring show/hide blocks elegant with the opening/closing animation effects.
How to use?
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Basic example
Scroll the area below the navbar or click on the menu to watch the smooth scrolling in action. It can also be used in the dropdowns.
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 a key point.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-hs-show-animation-options='{}'
.
Parameters | Description | Default value |
---|---|---|
|
Setermines which selectors belong to the same group. This definition is necessary, since selectors can be in different parent blocks, without which it would be impossible to remove/add the necessary classes to selectors based on only the parent | null |
|
Defines the ID of the block to be displayed | null |
|
Asset class for invokers |
classMap: {
active: 'active'
}
|
|
Animation appearing type:
|
'simple' |
|
Class initializing css animation | 'animated' |
|
Revealing animation effect | null |
|
Animation duration | null |
|
Executes code inside the function body each time a block appears | - |