* Add style transition-delay for animated el with [data-animate-order]
1615 * @param {HTMLElement} curBlock - currentl element 1616 * @param {number} sectionHeadDelay - delay 1618function t_animate__assignOrderedElemsDelay(curBlock, sectionHeadDelay) { 1620 if (sectionHeadDelay) { 1621 animDelay = sectionHeadDelay; 1624 var elem1 = curBlock.querySelectorAll('.t-animate[data-animate-order="1"]'); 1625 var elem2 = curBlock.querySelectorAll('.t-animate[data-animate-order="2"]'); 1626 var elem3 = curBlock.querySelectorAll('.t-animate[data-animate-order="3"]'); 1627 var elem4 = curBlock.querySelectorAll('.t-animate[data-animate-order="4"]'); 1628 var elem5 = curBlock.querySelectorAll('.t-animate[data-animate-order="5"]'); 1629 var elem6 = curBlock.querySelectorAll('.t-animate[data-animate-order="6"]'); 1630 var elem7 = curBlock.querySelectorAll('.t-animate[data-animate-order="7"]'); 1631 var elem8 = curBlock.querySelectorAll('.t-animate[data-animate-order="8"]'); 1632 var elem9 = curBlock.querySelectorAll('.t-animate[data-animate-order="9"]'); 1634 Array.prototype.forEach.call(elem1, function (el) { 1635 el.style.transitionDelay = animDelay + 's'; 1638 if (elem1.length && elem2.length) { 1639 animDelay = animDelay + t_animate__getAttrByResBase(elem2[0], 'delay') * 1; 1640 Array.prototype.forEach.call(elem2, function (el) { 1641 el.style.transitionDelay = animDelay + 's'; 1644 if ((elem1.length || elem2.length) && elem3.length) { 1645 animDelay = animDelay + t_animate__getAttrByResBase(elem3[0], 'delay') * 1; 1646 Array.prototype.forEach.call(elem3, function (el) { 1647 el.style.transitionDelay = animDelay + 's'; 1650 if ((elem1.length || elem2.length || elem3.length) && elem4.length) { 1651 animDelay = animDelay + t_animate__getAttrByResBase(elem4[0], 'delay') * 1; 1652 Array.prototype.forEach.call(elem4, function (el) { 1653 el.style.transitionDelay = animDelay + 's'; 1656 if ((elem1.length || elem2.length || elem3.length || elem4.length) && elem5.length) { 1657 animDelay = animDelay + t_animate__getAttrByResBase(elem5[0], 'delay') * 1; 1658 Array.prototype.forEach.call(elem5, function (el) { 1659 el.style.transitionDelay = animDelay + 's'; 1662 if ((elem1.length || elem2.length || elem3.length || elem4.length || elem5.length) && elem6.length) { 1663 animDelay = animDelay + t_animate__getAttrByResBase(elem6[0], 'delay') * 1; 1664 Array.prototype.forEach.call(elem6, function (el) { 1665 el.style.transitionDelay = animDelay + 's'; 1669 (elem1.length || elem2.length || elem3.length || elem4.length || elem5.length || elem6.length) && 1672 animDelay = animDelay + t_animate__getAttrByResBase(elem7[0], 'delay') * 1; 1673 Array.prototype.forEach.call(elem7, function (el) { 1674 el.style.transitionDelay = animDelay + 's'; 1687 animDelay = animDelay + t_animate__getAttrByResBase(elem8[0], 'delay') * 1; 1688 Array.prototype.forEach.call(elem8, function (el) { 1689 el.style.transitionDelay = animDelay + 's';