PageSourceSearch

https://driveberry.fr/wp-content/themes/drive-berry/dist/assets/js/block-8-2-safety-anim-BAZ2mpyz.js

js driveberry.fr collected 2026-10-06 13:35:56 UTC 1,719 bytes, 1 lines download raw bytes

1import{g as r,S as p}from"./gsap-core-ogJG83vu.js";import{b as S,r as h}from"./blur-reveal-DkObYyps.js";import{r as b}from"./main-DQv_NHdM.js";import"./lenis-CZHgqTAH.js";r.registerPlugin(p);function A(t){if(!t)return;const g=window.matchMedia("(prefers-reduced-motion: reduce)").matches,d=t.querySelector('[data-anim="title"]'),i=t.querySelector('[data-anim="desc"]'),l=t.querySelectorAll('[data-anim="card"]'),u=t.querySelectorAll(".block-8-2-safety__stat-value"),a=t.querySelector('[data-anim="media"]'),n=t.querySelector('[data-anim="cta"]'),s=t.querySelector('[data-anim="cta-mobile"]'),c=t.querySelector(".block-8-2-safety__glow"),y=[d,i,...l,a,n,s].filter(Boolean);if(g){r.set(y,{autoAlpha:1,y:0});return}r.set([i,...l,n,s].filter(Boolean),{autoAlpha:0,y:24});const o=r.timeline({scrollTrigger:{trigger:t,start:"top 80%",end:"bottom 60%",scrub:.8}});if(d&&o.splitReveal(d,{duration:1.2},0),i&&o.fadeSlideUp(i,{y:20,duration:.8},"<0.3"),l.length&&o.fadeSlideUp(l,{y:40,stagger:.15,duration:.8},"<0.2"),n&&o.fadeSlideUp(n,{y:20,duration:.6},"<0.2"),s&&o.fadeSlideUp(s,{y:20,duration:.6},"<"),u.length&&u.forEach(e=>{const f=parseInt(e.textContent,10);if(isNaN(f))return;const m={value:0};e.textContent="0%",p.create({trigger:t,start:"top 60%",once:!0,onEnter:()=>{r.to(m,{value:f,duration:1.6,ease:"power2.out",snap:{value:1},onUpdate:()=>{e.textContent=`${Math.round(m.value)}%`}})}})}),a){const e=window.matchMedia("(max-width: 768px)").matches;S(a),r.to(a,{...h(),ease:"none",scrollTrigger:{trigger:a,start:"top 70%",end:e?"top 30%":"center center",scrub:.6}})}if(c){const e=r.to(c,{x:40,y:-30,duration:6,ease:"sine.inOut",repeat:-1,yoyo:!0});b({el:t,tweens:[e]})}}export{A as init,A as initBlock82SafetyAnim};

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.