Skip to Content

JavaScript File

URL: https://static.tildacdn.com/js/tilda-animation-sbs-1.0.min.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 16 Feb 2023 10:41:51 GMT
Download Time: Less than a second
Cookies: None
Size: 30 KB
HTTP Headers:  9 headers
Links In:  1 pages
OK Issues: No issues found

1function t_animationSBS__checkVisibilityPage(){"visible"===document.visibilityState&&(t_onReady(t_animationSBS__init),document.removeEventListener("visibilitychange",t_animationSBS__checkVisibilityPage))}

2function t_animationSBS__init(){var t=document.getElementById("allrecords"),e=(e=t?"edit"===t.getAttribute("data-tilda-mode"):null)||Boolean(document.getElementById("for_redactor_toolbar"));/Bot/i.test(navigator.userAgent)||document.documentMode<11||e||(document.querySelector('[data-animate-sbs-event="scroll"]')&&(t.style.overflowX="hidden"),t_animationSBS__isZeroBlocksRendered(function(){t_animationSBS_isInstagramRendered(function(){t_animationSBS__wrapAndUpdateEls(),t_animationSBS__initAllRes(e)}

3)}

4))}

5function t_animationSBS__isZeroBlocksRendered(e){var n,a,i=t_animationSBS__getArtboards("396");i.length||(i=t_animationSBS__getArtboards("121")),i.length&&(n=!1,i.every(function(t){return t.classList.contains("rendered")}

6)?e():document.querySelectorAll('script[src*="tilda-blocks-2"], script[src*="tilda-blocks-1"]').length?t_animationSBS__backwardCompatibilityWait(i,Date.now(),e):(a=i.filter(function(t){return t.classList.contains("rendered")}

7),i.forEach(function(t){t.classList.contains("rendered")||t.addEventListener("artBoardRendered",function(){a.push(t),a.length!==i.length||n||e()}

8)}

9),setTimeout(function(){n=!0,a.length!==i.length&&e()}

10,3e3)))}

11function t_animationSBS__getArtboards(t){t='.r[data-record-type="'+t+'"]:not(.t397__off):not(.t395__off):not(.t400__off) .t396__artboard';return Array.prototype.slice.call(document.querySelectorAll(t))}

12function t_animationSBS__backwardCompatibilityWait(t,e,n){t.every(function(t){return t.classList.contains("rendered")}

13)?n():1e4<Date.now()-e?console.warn("all zero-blocks can't be rendered"):setTimeout(function(){t_animationSBS__backwardCompatibilityWait(t,e,n)}

14,500)}

15function t_animationSBS_isInstagramRendered(t){var e;window.animationSBS__isIOS&&-1!==navigator.userAgent.indexOf("Instagram")?e=setTimeout(function(){window.innerWidth!==screen.width&&window.innerHeight>window.innerWidth?t_animationSBS_isInstagramRendered(t):(clearTimeout(e),t())}

16,100):t()}

17function t_animationSBS__wrapAndUpdateEls(){Array.prototype.slice.call(document.querySelectorAll("[data-animate-sbs-event]")).forEach(function(t){var e,n,a=t.querySelector(".tn-atom");a&&(-1===navigator.userAgent.indexOf("Chrome")&&(a.style.WebkitBackfaceVisibility="hidden",a.style.backfaceVisibility="hidden"),e=a.closest(".tn-atom__sbs-anim-wrapper"),n=t_animationSBS__getAnimOptions(t,"published",null),!e&&n&&(t_animationSBS__wrapEl(a.closest(".tn-atom__scale-wrapper")||a,"tn-atom__sbs-anim-wrapper"),e=(a=t.querySelector(".tn-atom")).closest(".tn-atom__sbs-anim-wrapper"),t_animationSBS__updateStylesAfterWrapping(a,e)))}

18)}

19function t_animationSBS__updateStylesAfterWrapping(e,n){var a=e.closest(".t396__elem"),t=a?a.getAttribute("data-elem-type"):"",i=window.getComputedStyle(a).getPropertyValue("border-radius");"shape"===t&&parseInt(i,10)&&(n.style.borderRadius=i);i=["filter","backdrop-filter"];i=(i=i.map(function(t){var e="-webkit-"+t,n=window.getComputedStyle(a).getPropertyValue(t);if("none"!==n&&""!==n||(n=window.getComputedStyle(a).getPropertyValue(e)),"none"!==n&&""!==n)return{filter:t,webkitFilter:e,value:n}

20}

21)).filter(function(t){return t}

22);var r=window.getComputedStyle(e).transform;i.forEach(function(t){window.t_animationSBS__isFirefox&&(n.style.backfaceVisibility="visible"),n.style[t.webkitFilter]=t.value,n.style[t.filter]=t.value,a.style[t.webkitFilter]="none",(a.style[t.filter]="none")===r&&(e.style.transform="translateZ(0)")}

23),t_animationSBS__chromeFixBackdropFilter(e,n,i)}

24function t_animationSBS__chromeFixBackdropFilter(t,e,n){var a=n.some(function(t){return"backdrop-filter"===t.filter}

25);-1!==navigator.userAgent.indexOf("Chrome")&&a&&(n=window.getComputedStyle(t).getPropertyValue("background-color"),a=window.getComputedStyle(t).getPropertyValue("opacity"),"rgba(0, 0, 0, 0)"!==n&&"1"!==a&&(n=n.substring(n.indexOf("(")+1,n.indexOf(")")),e.style.backgroundColor="rgba("+n+","+a+")",t.style.opacity="1",t.style.backgroundColor="transparent"))}

26function t_animationSBS__initAllRes(t){var e,n,a={elements:Array.prototype.slice.call(document.querySelectorAll("[data-animate-sbs-event]")),scrollTop:window.pageYOffset,isEditMode:t}

27;function i(){clearTimeout(n),n=setTimeout(function(){a.elements=Array.prototype.slice.call(document.querySelectorAll("[data-animate-sbs-event]")),t_animationSBS__cacheAndSetData(a),t_animationSBS__triggerScrollAnim(a),t_animationSBS__updateIntoViewElsState(e),t_animationSBS__generateKeyframes(a)}

28,500)}

29a.elements.length&&(t_animationSBS__cacheAndSetData(a),t_animationSBS__generateKeyframes(a),t=!!(t=document.getElementById("allrecords"))&&"yes"===t.getAttribute("data-tilda-lazy"),"y"!==window.lazy&&!t||t_onFuncLoad("t_lazyload_update",function(){t_lazyload_update()}

30),e=a.elements.filter(function(t){var e="data-animate-sbs-event";return"intoview"===t.getAttribute(e)||"blockintoview"===t.getAttribute(e)}

31),"ResizeObserver"in window?t_animationSBS__createResizeObserver(i):/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?window.addEventListener("orientationchange",function(){setTimeout(function(){i()}

32,300)}

33):window.addEventListener("resize",i),t=document.querySelectorAll(".t396"),Array.prototype.forEach.call(t,function(t){t.addEventListener("displayChanged",i)}

34),window.t_animationSBS__isSafari&&window.addEventListener("scroll",function t(){0!==window.pageYOffset&&i();window.removeEventListener("scroll",t)}

35),t_animationSBS__triggerNoScrollAnimation(a,e),document.querySelectorAll('[data-animate-sbs-event="scroll"]').length&&(t_animationSBS__triggerScrollAnim(a),t_animationSBS__checkFrame(a)),window.addEventListener("load",function(){t_animationSBS__changeElValues(a)}

36),setTimeout(function(){"complete"!==document.readyState&&t_animationSBS__changeElValues(a)}

37,3e3))}

38function t_animationSBS__createResizeObserver(e){var n=document.body.getClientRects(),a=n[0].height;new ResizeObserver(function(t){t.forEach(function(t){t.contentRect.height!==a&&(a=n[0].height,e())}

39)}

40).observe(document.body)}

...

</html>