Animations

Animate elements, or sub elements to a container. You can choose from multiple predefined effects, defined by the styleguide. All animations in done with anime-js.

Effects

  • fade
  • fadeUp (Left, Right, Down)
  • bounce

Bind

Two types of bind can be done, they are the following:

  • Scroll: Will animate in and out near the edges of the viewport (compatible with modern browsers)
  • Onload: Will animate on load of the page.

Other

All animations will be triggerd automatically when toggling display: none, display: block.

Library

We have chosen anime.js to create advanced animations swiftly. Like all javascript animation librarys it's always as performant that you would want. Therefore this library should be utilized where css-animations can't create the same effect.

Parameters (Blade)

Key Default value Type Available values Description
scroll/onload string - Event to bind on (onload = init animation, scroll = in view animation)
animate string - Animate keyword for animations.
li.list-element string - A sub element of the bound target, if left blank bound target will be animated. The target element is automatically prefixed by the dom-node of the bound element.
fade/fadeUp/fadeLeft/bounce string - Type of animation
300 string - Stagger (delay) each item in list of items (ms). Use 0 or false to turn off staggering.
50 string - Time to complete animation.
string - The DOM id of the component.
[] array - Array containing wrapping classes array
[] array - Array containing keys and values rendered as attributes