PageSourceSearch

https://adriasolapastor.com/wp-content/plugins/nextbricks/elements/js/bc_image_reveal.min.js?ver=1.10.1

js adriasolapastor.com collected 2026-10-04 13:27:14 UTC 2,980 bytes, 7 lines download raw bytes

1function image_reveal(){let e={};var t=window.location.href.includes("brickspreview");document.querySelectorAll(".bc-img-reveal").forEach((imageReveal,i)=>{var r=imageReveal.querySelector(".bc-img-reveal__element");var a=r.querySelector(".bc-img-reveal__img"),l=r.getAttribute("data-disable-builder"),o=!1;if((t&&"1"==l&&((o=!0),r.style.setProperty("visibility","visible"),r.style.setProperty("transform","unset"),a.style.setProperty("transform","unset")),!o)){let g=r.getAttribute("data-direction"),s=parseFloat(r.getAttribute("data-duration")),c=parseFloat(r.getAttribute("data-delay")),n=r.getAttribute("data-ease"),u=r.getAttribute("data-toggleActions");varStart=r.getAttribute("data-start");var varContainerAnimation=isInsideHorizontalScrollElement(r);if(((animationType=r.getAttribute("data-animationtype")),(classTriggerClick=r.getAttribute("data-classtriggerclick")),(classTriggerHover=r.getAttribute("data-classtriggerhover")),"this"==(vartrigger=r.getAttribute("data-trigger"))&&(vartrigger=imageReveal),"top"==g||"bottom"==g)){let d=r.querySelector(".bc-img-reveal__img");(e[`g${i}`]=gsap.timeline({scrollTrigger:{trigger:imageReveal,containerAnimation:varContainerAnimation?window[varContainerAnimation]:undefined,toggleActions:u,start:varStart},delay:c})).set(r,{autoAlpha:1}).to(r,{duration:s,y:0,ease:n}).to(d,{duration:s,y:0,scale:1,delay:-s,ease:n})}else if("left"==g||"right"==g){let b=r.querySelector(".bc-img-reveal__img");(e[`g${i}`]=gsap.timeline({scrollTrigger:{trigger:vartrigger,containerAnimation:varContainerAnimation?window[varContainerAnimation]:undefined,toggleActions:u,start:varStart},delay:c})).set(r,{autoAlpha:1}).to(r,{duration:s,x:0,ease:n}).to(b,{duration:s,x:0,scale:1,delay:-s,ease:n})}
2if(r.getAttribute('data-remove-scroll')=='1'){e[`g${i}`].progress(1)}
3var y=r.closest(".bc-core-menu");if(y&&y.contains(r)){var v=y.querySelector(".bc-core-burguer").querySelector("button");e[`g${i}`].pause(!0);new MutationObserver(function(e){for(var t of e)"attributes"===t.type&&("true"===v.getAttribute("aria-expanded")?f():A())}).observe(v,{attributes:!0})}
4function f(){e[`g${i}`].isActive()?e[`g${i}`].play():e[`g${i}`].restart()}
5function A(){e[`g${i}`].reverse()}
6"Click"==animationType&&0!=parseFloat(classTriggerClick)&&document.querySelectorAll(classTriggerClick).forEach(function(t){t.addEventListener("click",function(){e[`g${i}`].restart()})});"Hover"==animationType&&0!=parseFloat(classTriggerHover)&&document.querySelectorAll(classTriggerHover).forEach(function(t){t.addEventListener("mouseover",function(){e[`g${i}`].restart()})})}});function isInsideHorizontalScrollElement(element){let containerName=null;document.querySelectorAll(".next-horizontal-scroll").forEach((horizontalScroll,index)=>{if(horizontalScroll.contains(element)){containerName=`NextHorizontalScroll${index}`}});return containerName}}
7document.addEventListener("DOMContentLoaded",function(e){document.fonts.ready.then(function(){bricksIsFrontend&&image_reveal()})})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.