Stagger Button
Step 1: Create | Choose your button and adapt attributes.
Choose and adapt the buttons as you like.
Stagger Button
anm-direction: up
anm-reverse: true
anm-stagger: 0.0075
anm-ease: expo.inOut
anm-custom: opacity: 0.5
anm-duration: 1
Stagger Button
anm-direction: up
anm-reverse: false
Stagger Button
anm-direction: down
anm-reverse: true
Stagger Button
anm-direction: down
anm-reverse: true
Step 2: Copy and paste Javascript code
Copy this javascript code and insert before the </body> tag of your project.
Step 3: Include or adapt attributes
Add, delete or edit attributes as needed. You can find an overview of all attributes related to this animation here:
Selector attributes
All selector attributes are mandatory and need to be present for the animation to work.
Name (This element wraps the entire animation.)
Name tooltip goes here
anm-stagger-btn
Value
wrap
Name (Add this to the text element of the animation.)
Name tooltip goes here
anm-stagger-btn
Value
text
Configurable attributes
Add this to the anm-stagger-btn=wrap element.
Name (Defines the direction of the animation.)
Name tooltip goes here
anm-direction
Value (Options: up, down
Value tooltip goes here
up
Add this to the anm-stagger-btn=wrap element.
Name (Defines if the animation should reverse on hover)
Name tooltip goes here
anm-reverse
Value (Options: true, false.)
Value tooltip goes here
false
Add this to the anm-stagger-btn=wrap element.
Name (Defines the duration of the animation.)
Name tooltip goes here
anm-duration
Value (A value in seconds (e.g., 1) that controls the duration of the animation.)
Value tooltip goes here
1
Add this to the anm-stagger-btn=wrap element.
Name (Defines the ease of the animation.)
Name tooltip goes here
anm-ease
Value tooltip goes here
1
Add this to the anm-stagger-btn=wrap element.
Name (Defines the delay of the animation.)
Name tooltip goes here
anm-delay
Value (A value in seconds (e.g., 0) that controls the delay of the animation.)
Value tooltip goes here
0
Add this to the anm-stagger-btn=wrap element.
Name (Defines the delay of the animation.)
Name tooltip goes here
anm-custom
Value (A custom animation gsap string (e.g., 'scale: 1.2' or 'rotate: 360', etc.))
Value tooltip goes here
opacity: 0.5
There are no configurable attributes