new H_animation()
animate.js, line 30
Methods
-
staticH_animation.check_anim()
animate.js, line 45 -
Checks if there are animations to play and processes them.
Iterates over the _animate array and calls process_anim for each. -
staticH_animation.detect_anime(res)
animate.js, line 100 -
Detects and initializes all animations in the DOM or in a given HTML string.
Recursively scans elements for data-animate attributes and populates H_animation._animate.
it's a bit a heavy process but it automate the detection of all you animations.
instead you can push them in you own script by using new H_anim({params...})Name Type Default Description resstring | boolean false optional Optional HTML string to parse, or false to use document.body. -
staticH_animation.process_anim(a){boolean|void}
animate.js, line 59 -
Processes a single animation object.
Depending on the type, instantiates the appropriate animation class. Actually there is only H_anim type.Name Type Description aObject Animation object to process. Returns:
Type Description boolean | void False if type is unknown. -
staticH_animation.recurse_dom(domElem)
animate.js, line 80 -
Recursively traverses the DOM to find elements with animation attributes.
Calls test_anim_exist on each element.Name Type Description domElemHTMLElement The DOM element to start from. -
staticH_animation.test_anim_exist(domElem)
animate.js, line 118 -
Tests if a DOM element has animation attributes and adds it to the animation queue if so.
Looks for data-animate="H_anim" and parses data-anim_opts.Name Type Description domElemHTMLElement The DOM element to test.